Skip to content

Instantly share code, notes, and snippets.

@nsmith
Created July 26, 2014 01:43
Show Gist options
  • Save nsmith/1049df6a4434f69c9430 to your computer and use it in GitHub Desktop.
Save nsmith/1049df6a4434f69c9430 to your computer and use it in GitHub Desktop.
set up core os
/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