Last active
December 29, 2015 07:49
-
-
Save seobyeongky/7638355 to your computer and use it in GitHub Desktop.
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
# 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://[email protected]/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