Last active
January 23, 2016 08:42
-
-
Save micahhausler/c5fd9d208bff98d2f86a to your computer and use it in GitHub Desktop.
Docker Orca (0.4.0) Quickstart instructions
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
#!/bin/bash | |
# | |
# Requires docker-toolbox >= 1.9.0d | |
# https://github.com/docker/toolbox/releases | |
MACHINE_NAME="orcamaster" | |
docker-machine create -d virtualbox $MACHINE_NAME | |
eval $(docker-machine env $MACHINE_NAME) | |
MACHINE_IP=$(docker-machine ip $MACHINE_NAME) | |
SWARM_PORT=2377 | |
docker run \ | |
--rm \ | |
-it \ | |
--name orca-bootstrap \ | |
-e REGISTRY_USERNAME=username \ | |
-e REGISTRY_PASSWORD=password \ | |
-e REGISTRY_EMAIL=youremail@domain.com \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
dockerorca/orca-bootstrap install \ | |
--fresh-install \ | |
--san $MACHINE_IP \ | |
--host-address $MACHINE_IP \ | |
--swarm-port $SWARM_PORT | |
# Then login to the URL that the bootstrap output tells you to | |
# You can download the client bundle from the admin and set | |
# DOCKER_CERT_PATH=/path/to/unzipped/bundle | |
# DOCKER_HOST=tcp://$MACHINE_IP:$SWARM_PORT | |
# to start playing with deploying to orca |
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
#!/bin/bash | |
MACHINE_NAME="slave1" | |
ORCA_MASTER_MACHINE_NAME="orcamaster" | |
ORCA_MASTER_FINGERPRINT="GET_FINGERPRINT_FROM_SWARM_MASTER" | |
docker-machine create -d virtualbox $MACHINE_NAME | |
eval $(docker-machine env $MACHINE_NAME) | |
MACHINE_IP=$(docker-machine ip $MACHINE_NAME) | |
MASTER_MACHINE_IP=$(docker-machine ip $ORCA_MASTER_MACHINE_NAME) | |
docker run \ | |
--rm \ | |
-it \ | |
--name orca-bootstrap \ | |
-e ORCA_ADMIN_USER=admin \ | |
-e ORCA_ADMIN_PASSWORD=orca \ | |
-e REGISTRY_USERNAME=username \ | |
-e REGISTRY_PASSWORD=password \ | |
-e REGISTRY_EMAIL=youremail@domain.com \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
dockerorca/orca-bootstrap join \ | |
--url https://$MASTER_MACHINE_IP:443 \ | |
--san $MACHINE_IP \ | |
--host-address $MACHINE_IP \ | |
--fingerprint $ORCA_MASTER_FINGERPRINT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment