Commit 8d4526eb authored by thomas craipeau's avatar thomas craipeau
Browse files

update

parent ce64b659
......@@ -25,7 +25,11 @@ docker rm $(docker ps -a -q)
```
* options delete images
```
docker rmi $(docker images -q)
docker rmi -f $(docker images -q)
```
* docker prune
```
docker system prune
```
* auto install : docker , docker-compose and communecter
......@@ -45,22 +49,17 @@ sudo chown -R ${USER:=$(/usr/bin/id -run)}:$USER code/log/
```
git clone https://gitlab.adullact.net/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
```
* 2 Put your source file in the *code* directory:
* 1 Put your source file in the *code* directory:
- see https://gitlab.adullact.net/pixelhumain/pixelhumain/blob/master/README.md
- use the docker image provided below
- Your VCS / IDE / ...
* 3 Start the containers using:
* 2 Start the containers using:
```
docker-compose -f docker-compose.yml up
```
* 4 Access to the test service through http://127.0.0.1:5080/
* 5 Access to communecter through http://127.0.0.1:5080/
* 6 You can modify your sources code with your prefered editor in the code directory
* 3 Access to the test service through http://127.0.0.1:5080/
* 4 Access to communecter through http://127.0.0.1:5080/
* 5 You can modify your sources code with your prefered editor in the code directory
# Layout overview
......
......@@ -8,7 +8,13 @@ MODULE_DIR="/code/modules"
co2_dir="co2"
# Install repo and modules
git clone --recurse-submodules https://gitlab.adullact.net/pixelhumain/co-meta.git code
cd "${BASE_DIR}"
git init
git remote add origin https://gitlab.adullact.net/pixelhumain/co-meta.git
git fetch origin
git checkout -t origin/master
git submodule update --init --recursive
#git clone --recurse-submodules https://gitlab.adullact.net/pixelhumain/co-meta.git "${BASE_DIR}"
# Setup directories
mkdir -vp /code/{modules,pixelhumain/ph/{assets,upload,protected/runtime}}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment