Comments (1)
All existing documentation is already published. How to write new drivers:
-
Create account, install command line client for new vendor, make sure it works, learn how to use multiple accounts using that command line client.
-
Write working install.sh script, that installs all dependencies and can be safely run multiple times, possibly fixing found problems, reinstalling/updating packages etc.
-
Look at existing drivers and start with setup-account.sh, list-accounts.sh and test-account.sh - as for the start, setup-account.sh should just create configuration profiles without any additional questions, you can add them later when working on creating instances.
-
When you successfully managed to create many profiles, focus on ssh key management: get-key-path.sh, list-ssh-keys.sh, create-ssh-key.sh
-
Next implement listing scripts: list regions, list available images, list instance types, list other required resources (except on instances). Also get-configured-region.sh, get-ubuntu-image.sh, get-default-instance-type.sh and possily others related to OS image management. Choose caching strategy at this point (or just look at Azure scripts).
-
Create some instances manually and focus on list-instances script. Probably you'll have to implement some parser at this point. Look at "internal" subdirectories for each driver.
-
Next write scripts operating on existing instances: delete-instance.sh and possibly resize/redeploy/open/do-whatever. Verify that you properly operate on instance identifiers returned in 6th column of instance listing script. Really, this part is tricky for some vendors!
-
create-instance.sh should be the last part, as you need all other auxiliary scripts before (operate on regions, OS images, instance types and other vendor-specific resources).
from polynimbus.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polynimbus.