0% found this document useful (0 votes)
60 views

Tutorial Instalasi Slims Berbasis Docker v1

The document discusses installing Docker and Docker Compose on Ubuntu 18.04. It provides steps to remove any existing Docker installations, install prerequisites like apt-transport-https and curl, add Docker's GPG key, update the apt package index, and install Docker CE. It then verifies the Docker installation works properly and discusses additional configuration options for Docker Compose. The document also covers installing SLiMS, an open source library management system, on Ubuntu using Docker Compose, including options to use Apache, Redis, or HAProxy for load balancing.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views

Tutorial Instalasi Slims Berbasis Docker v1

The document discusses installing Docker and Docker Compose on Ubuntu 18.04. It provides steps to remove any existing Docker installations, install prerequisites like apt-transport-https and curl, add Docker's GPG key, update the apt package index, and install Docker CE. It then verifies the Docker installation works properly and discusses additional configuration options for Docker Compose. The document also covers installing SLiMS, an open source library management system, on Ubuntu using Docker Compose, including options to use Apache, Redis, or HAProxy for load balancing.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Instalasi Docker di Ubuntu 18.

04
Ref: https://docs.docker.com/install/linux/docker-ce/ubuntu/
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt autoremove

sudo apt-get update


sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
Software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
Stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
Instalasi Docker di Ubuntu 18.04
Tes dengan menjalankan:
sudo docker run hello-world

nanti akan muncul tampilan kira-kira seperti:

Unable to find image 'hello-world:latest' locally


latest: Pulling from library/hello-world
1b930d010525: Pull complete
Digest: sha256:fc6a51919cfeb2e6763f62b6d9e8815acbf7cd2e476ea353743570610737b752
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/

SELAMAT, berarti sudah berhasil install Docker di Ubuntu 18.04


Instalasi Docker compose di Ubuntu 18.04

sudo curl -L
"https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$
(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

Tes dengan menjalankan:

docker-compose --version

maka akan muncul pesan semacam dibawah ini:

docker-compose version 1.25.4, build 8d51620a


Install SLiMS (fresh install, new install) di Ubuntu berbasis Docker
Opsional: Buat folder .slims:

cd
mkdir -p .slims

Kemudian masuk ke folder tersebut:


cd .slims

Akses web: https://github.com/slims/docker-compose-for-slims


Kemudian unduh di "Clone or dowload" => "Download ZIP" (https://github.com/slims/docker-
compose-for-slims/archive/master.zip)

wget -c https://github.com/slims/docker-compose-for-slims/archive/master.zip

Install aplikasi unzip:


sudo apt-get install unzip

Kemudian unzip file master.zip

unzip master.zip

akan terbentuk folder "docker-compose-for-slims-master"

rename biar lebih pendek:


mv docker-compose-for-slims-master compose

masuk ke folder "compose":


cd compose
Install SLiMS (fresh install, new install) di Ubuntu berbasis Docker
Di dalam folder app/slims sudah tersedia SLiMS Bulian versi 9.1.1. Opsional: Jika ingin mengganti dengan
versi SLiMS yang lebih tinggi, tinggal download, ekstrak dan rename folder menjadi "slims".

Oke berikutny menjalankan Docker compose. Ada tiga opsi untuk menjalankannya:

(1) versi Default. Menggunakan Apache web server, Database, and mekanisme session bawaan.
untuk menjalankan servis:
sudo docker-compose -f docker-compose.yaml up -d --remove-orphans
untuk mematikan servis:
sudo docker-compose -f docker-compose.yaml down

(2) Versi Redis: Menggunakan Apache web server, Database, mekanisme session menggunakan Redis.
untuk menjalankan servis:
sudo docker-compose -f docker-compose-redis.yaml up -d --remove-orphans
untuk mematikan servis:
sudo docker-compose -f docker-compose-redis.yaml down

(3) Versi advanced. 3 instance container SLiMS di load balancing dengan haproxy. Mensyaratkan haproxy
diinstall pada Host server. untuk menginstall haproxy:

sudo apt-get install haproxy

Kemudian replace file /etc/haproxy/haproxy.cfg dengan file compose/conf/haproxy/haproxy.cfg


sudo cp conf/haproxy/haproxy.cfg /etc/haproxy/haproxy.cfg

untuk menjalankan servis:


sudo docker-compose -f docker-compose-redis-load_balanced-haproxy.yaml up -d --remove-
orphans
untuk mematikan servis:
sudo docker-compose -f docker-compose-redis-load_balanced-haproxy.yaml down
Install SLiMS (fresh install, new install) di Ubuntu berbasis Docker

Oiya jangan lupa agar folder images, files, repository dan config bisa ditulis oleh web server:
sudo chmod -R 777 app/slims/files app/slims/repository app/slims/images app/slims/config

harusnya slims sudah bisa diakses dan langsung masuk ke menu instalasi berbasis web.
Sebelum mulai melakukan instalasi, alangkah baiknya merubah password default root
password MySQL dalam file “db_default.env”. Jangan lupa ya.

You might also like