Created
July 26, 2014 01:43
-
-
Save nsmith/1049df6a4434f69c9430 to your computer and use it in GitHub Desktop.
set up core os
This file contains hidden or 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
/usr/bin/etcdctl set /databases/mysql-1 `/usr/bin/docker run --link mysql-1:mysql --rm mysql sh -c 'echo mysql://root:$MYSQL_ENV_MYSQL_ROOT_PASSWORD@$MYSQL_PORT_3306_TCP_ADDR:$MYSQL_PORT_3306_TCP_PORT/wink_hub_api'` | |
/usr/bin/docker run -i --link mysql-1:mysql --rm mysql sh -c 'exec mysql -u root -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD" -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT"' < /home/core/create.sql | |
/usr/bin/etcdctl set /domains/winkapp <winkapp domain example http://10.0.1.1:3000/hubs/me> | |
/usr/bin/etcdctl set /agent-ips/agent-1 <public ip example 10.0.1.1> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment