08 July 2015

Instalasi Shipyard di Debian Jessie

Shipyard: https://shipyard-project.com

1. Pasang paket docker.io
# cat /etc/apt/sources.list
deb http://kambing.ui.ac.id/debian jessie main contrib non-free
deb http://kambing.ui.ac.id/debian jessie-updates main contrib non-free
deb http://kambing.ui.ac.id/debian jessie-backports main contrib non-free
deb http://kambing.ui.ac.id/debian-security jessie/updates main contrib non-free

# apt-get update && apt-get install dokcer.io
2. Edit opsi bawaan bind docker pada berkas /etc/default/docker. Tambahkan baris berikut:
DOCKER_OPTS="-H tcp://172.17.42.1:2375 -H unix:///var/run/docker.sock"
3. Jalankan container stack shipyard/deploy.
# docker run --rm -v /var/run/docker.sock:/var/run/docker.sock shipyard/deploy start
4. Jalankan container shipyard-cli.
# docker run -it --name shipyard-cli shipyard/shipyard-cli
5. Masuk ke shipyard dengan alamat IP Debian Jessie port 8080. Gunakan username admin dan password shipyard.
shipyard cli> shipyard login
URL: http://10.69.69.1:8080
Username: admin
Password:

6. Set Engine baru dengan alamat http://172.17.42.1:2375. Sesuaikan opsi lainnya.
shipyard cli> shipyard add-engine --id debian-shipyard --addr http://172.17.42.1:2375 --cpus 2.0 --memory 4096 --label local
7. Ganti password admin
shipyard cli> shipyard change-password
Password:
Confirm:
8. Ramban ke alamat IP Debian Jessie port 8080. Gunakan username admin dan password yang baru diset.

No comments: