pixelhumain / docker

docker images for easy installing communecter and it's modules . Deprecated . new repo https://gitlab.adullact.net/pixelhumain/docker
1 stars 4 forks source link

install docker

choose community edition CE https://docs.docker.com/engine/installation/

example install docker ubuntu https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/

Post-installation steps for Linux https://docs.docker.com/engine/installation/linux/linux-postinstall/

install docker-compose

https://docs.docker.com/compose/install/

WIP

auto install ubuntu

Layout overview

|-- code
    |-- modules
        |-- co2
        |-- communecter
        |-- citizenToolKit
        |-- api
        |-- network
        |-- [...]
    |-- pixelhumain
        |-- ph
        |-- [...]
|-- docker-install
    |-- install-conf
    |-- [...]
|-- docker-front
[...]

Basic setup and data with the docker image

For an initial setup you'll need to init MongoDB, configurations, etc (see communecter install guide for more details) An easy to use image with an install script is provided through the docker imager « ph » and can be used with this command

docker-compose -f docker-compose.yml -f docker-compose.install.yml run ph cotools --install

The install script fetch every modules in the pixelhumain guide, create directories and populate some data like cities, ...

Updating Dockers images

Useful commands:

Warning windows/mac : use -no-build.yml file (images build > docker hub)

Start services

docker-compose -f docker-compose.yml up

Shutdown gracefuly services

docker-compose -f docker-compose.yml down

Re-build images after modifications of docker files

docker-compose -f docker-compose.yml build
#docker-compose -f docker-compose.yml -f docker-compose.install.yml build ph

Install base sources codes and populates some data

docker-compose -f docker-compose.yml -f docker-compose.install.yml run ph cotools --install

Update base sources codes

docker-compose -f docker-compose.yml -f docker-compose.install.yml run ph cotools --update

Update data

docker-compose -f docker-compose.yml -f docker-compose.install.yml run ph cotools --update-data

Validate your user after registration without sending email

docker-compose -f docker-compose.yml -f docker-compose.install.yml run ph cotools --emailvalid=email@example.com 

See log from nginx

/code/log