Public | Automated Build

Last pushed: a year ago
Short Description
IRIS2 website - not for public use
Full Description

eea.docker.iris2

run the container with docker-compose:

create the data container iris2_home and iris2_data (see below)

# git clone <reponame>
# docker-compose build 
# docker-compose up -d

run the container without docker-compose:

# docker run --restart=always --name iris2 --link postfixcontainer:postfixcontainer --link iris2db:iris2db --volumes-from=iris2_home -p <port_host>:80 -d eeacms/iris2

dependency containers:

# docker run --restart=always --name iris2db --volumes-from=iris2_data -e MYSQL_ROOT_PASSWORD=<secret_password> -d mariadb:5.5
# docker run --restart=always --env-file=/configuration_files/.secret -v /etc/localtime:/etc/localtime:ro --name=postfixcontainer -d eeacms/postfix:eionet

current <port_host> = 50003

moving data volume containers from one host to another:

  • donor host
# docker run --rm --volumes-from=eeadockeriris2_iris2_1 -v $(pwd):/backup busybox tar zcvf /backup/iris2_home.tar.gz /var/www
# docker run --rm --volumes-from=eeadockeriris2_iris2db_1 -v $(pwd):/backup busybox tar zcvf /backup/iris2_data.tar.gz /var/lib/mysql
  • target host
# docker run -d --name iris2_home eeacms/php_data
# docker run -d --name iris2_data eeacms/mysql_data
# docker run --rm --volumes-from=iris2_home -v $(pwd):/backups busybox tar zxvf /backups/iris2_home.tar.gz
# docker run --rm --volumes-from=iris2_home -v $(pwd):/backups busybox chmod a+w /var/www/iris2/irisii_app/cache

# docker run --rm --volumes-from=iris2_data -v $(pwd):/backups busybox tar zxvf /backups/iris2_data.tar.gz
Docker Pull Command
Owner
eeacms
Source Repository

Comments (0)