Last active
October 5, 2016 01:12
-
-
Save abhiyerra/eb0062cc2c14cd6d88912924a4cd1289 to your computer and use it in GitHub Desktop.
docker-machine and docker-compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PARKINGSPOT_API_KEY=yourapikey | |
$(parkingspot -memory 2000 -cpu 6 -max-bid 0.50) docker-machine create --driver amazonec2 \ | |
--amazonec2-request-spot-instance \ | |
--amazonec2-region "${PARKINGSPOT_REGION}" \ | |
--amazonec2-spot-price "${PARKINGSPOT_BID}" \ | |
--amazonec2-instance-type "${PARKINGSPOT_INSTANCE_TYPE}" \ | |
parkingspot-worker | |
# If you want to use Docker Compose | |
eval $(docker-machine env parkingspot-worker) && docker-compose build && docker-compose up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment