3 minutes Icescrum server with docker on Debian Jessie
EnglishTutorials
Connected as root :
Update repo
1 2 | apt-get update apt-get install -y --no- install -recommends apt-transport-https ca-certificates curl software-properties-common |
Get docker repo
1 2 | curl -fsSL https: //apt .dockerproject.org /gpg | sudo apt-key add - add-apt-repository "deb https://apt.dockerproject.org/repo/ debian-$(lsb_release -cs) main" |
Re-update depo
1 | apt-get update |
Install docker
1 | apt-get -y install docker-engine |
Test docker with :
1 | docker run hello-world |
Now for Icescrum
Icescrum DB will be in a docker container, we’ll use mariadb communicating through network
Create network
1 | docker network create --driver bridge net_sql |
Preparing folders for both installations :
1 2 | mkdir /srv/mariadb mkdir /srv/icescrum |
MariaDB docker container launch, you give root password and create icescrum database
1 | docker run --name icescrum_mariadb - v /srv/mariadb : /var/lib/mysql --net=net_sql -e MYSQL_ROOT_PASSWORD=aWonDerFullPassWordYouCaniMagiNE -e MYSQL_DATABASE=icescrum -d mariadb:latest |
Check if mariadb server is running :
docker exec -i -t icescrum_mariadb service mysql status
If not : start it
docker exec -i -t icescrum_mysql service mysql start
And install Icescrum docker on the same network with a link to the mariadb container too:
1 | docker run --name icescrum -e ICESCRUM_HOST=YourHosIP - v /srv/icescrum : /root --net=net_sql --link icescrum_mariadb:mysql -p 8080:8080 icescrum /icescrum |
Wait until Server startup in XXXX ms is shown
and go to :
1 | http: //yourDockerHostIP :8080 /icescrum |
and follow the wizard…
When you’ll be on the MySQL configuration, just replace the localhost with the name you gave previously, here it was : icescrum_mysql so :
Once done just restart the icescrum server :
docker restart icescrum
1 Comment