Skip to content
/ docker Public
forked from pixelhumain/docker

docker images for easy installing communecter and it's modules

Notifications You must be signed in to change notification settings

aboire/docker

 
 

Repository files navigation

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

  • options stop container
docker stop $(docker ps -a -q)
  • options delete container
docker rm $(docker ps -a -q)
  • options delete images
docker rmi $(docker images -q)
  • auto install : docker , docker-compose and communecter
wget -O - https://gist.githubusercontent.com/aboire/4c83ff97026b1a4fabaada09950b2fc8/raw/install.sh| bash
  • updating the user's permissions to edit files
cd ~/pixelhumain-docker
sudo chown -R ${USER:=$(/usr/bin/id -run)}:$USER code/pixelhumain/
sudo chown -R ${USER:=$(/usr/bin/id -run)}:$USER code/modules/
sudo chown -R ${USER:=$(/usr/bin/id -run)}:$USER code/log/

Initial setup

  • 0 Clone this repository
git clone https://github.com/pixelhumain/docker pixelhumain-docker
  • 1 Create a folder code code/data/db code/log that will be the source directory inside pixelhumain-docker
mkdir -p code/data/db
mkdir -p code/log
docker-compose -f docker-compose.yml up

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:

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

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

About

docker images for easy installing communecter and it's modules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 97.0%
  • Nginx 3.0%