Skip to content

Instantly share code, notes, and snippets.

@seobyeongky
Last active December 29, 2015 07:49
Show Gist options
  • Save seobyeongky/7638355 to your computer and use it in GitHub Desktop.
Save seobyeongky/7638355 to your computer and use it in GitHub Desktop.
# install git
sudo apt-get install git
# download docker
git clone https://github.com/dotcloud/docker.git
cd docker
#edit Vagrantfile... (port forwarding)
#install computer with docker
vagrant up
#connect to docker computer
vagrant ssh
sudo apt-get install vim
sudo apt-get install git
# make build.sh folder
cat <<EOF > build.sh
git clone ssh://git@bitbucket.com/redduck/\$1.git
pushd \$1
git submodule update --init
docker build -t \$1 .
popd
EOF
chmod +x build.sh
# register public ssh key
ssh-keygen
cat ~/.ssh/id_rsa.pub
이거 긁어서 bitbucket에 등록해야댐
# ZooKeeper 3.4.5
docker run -d -name zk -p 2181:2181 paulczar/zookeeper-3.4.5 /opt/zookeeper-3.4.5/bin/zkServer.sh start-foreground
# redis
docker run -d -name redis srid/redis:2.6
build.sh 이것저것 서버 다...
순서는 eventbus, router, authdb, webdb, olddb, webserver, nginx, gateway, devices ...이렇게
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment