Projet toturé : Virtual project environment : docker-compose, continuous delivery
Go to file
xdrm-brackets 95fe1fe09b bigupd: multi-container setup (mariadb <=/=> php-fpm <===> nginx) +TODO: install php-mysql extension on 'php-fpm' service 2018-02-18 16:48:55 +01:00
docker First commit 2018-02-16 01:49:02 +01:00
virtual bigupd: multi-container setup (mariadb <=/=> php-fpm <===> nginx) +TODO: install php-mysql extension on 'php-fpm' service 2018-02-18 16:48:55 +01:00
.gitignore bigupd: multi-container setup (mariadb <=/=> php-fpm <===> nginx) +TODO: install php-mysql extension on 'php-fpm' service 2018-02-18 16:48:55 +01:00
Makefile upg: makefile +upgraded makefile verbosity 2018-02-16 14:55:00 +01:00
README.md upd: makefile,readme +added proper log/lock files +added 'make log' +added 'make tty' 2018-02-16 10:46:16 +01:00
docker-compose.yml bigupd: multi-container setup (mariadb <=/=> php-fpm <===> nginx) +TODO: install php-mysql extension on 'php-fpm' service 2018-02-18 16:48:55 +01:00

README.md

PTUT Virtual Environment

Requirements

You need a consistent Linux System with the following packages :

  • docker
  • make
  • cpp (C pre-processor)

Commands

In order for the environment to be launched, we need to run configuration commands, installation instructions, etc and store the final state in a docker image. Then we can launch several containers from that initial image.

The building process is automated with the Makefile and the make command.


1. Build the Dockerfile

make build
  • Creates the Dockerfile using the c pre-processor to include the files in docker/include in docker/main. The final output is located at the root of the repository in ./Dockerfile.

2. Create the docker image

make image
  • Creates the docker image from the Dockerfile. If ./Dockerfile is missing, it will automatically launch make build.

3. Launch the container

make run
  • Builds the image (make image)
  • Launches the container (make run)

4. Properly kill a container

make kill
  • Properly kills a running container

5. Launch the CI loop

make boot
  • Launches an infinite loop that

    1. Updates the git repository (git pull)
    2. Builds the image (make image)
    3. Launches the container (make run)
    4. When the container stops, delete it and reloop
  • to have a real time log, launch make log

  • to connect to a tty launch make tty