Commit 74c7d926 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

Merge branch 'docker_germline_js' into 'dev'

Gestion des germlines et config dans docker

Closes #3521

See merge request !317
parents f4125f01 fb7dee10
Pipeline #43954 canceled with stages
......@@ -297,6 +297,7 @@ test_server_functional:
- docker build --no-cache --build-arg git_branch=$CI_COMMIT_REF_NAME --build-arg build_env=TEST -t "vidjil/client:test" docker/vidjil-client
- sed -i '/\/etc\/nginx\/ssl\:\/etc\/nginx\/ssl/d' ./docker/docker-compose.yml
- sed -i 's/\:latest/\:test/g' ./docker/docker-compose.yml
- make germline && cp browser/js/germline.js docker/vidjil-client/conf
- cd docker && docker-compose up -d && cd ..
- sed -i "s/^python\ \.\.\/\.\.\/\.\./docker\ exec\ docker_uwsgi_1\ python\ \/usr\/share\/vidjil\/server\/web2py/" server/web2py/applications/vidjil/tests/
- docker exec docker_uwsgi_1 sed -i "s/^\(FILE_SOURCE .*\)/FILE_SOURCE = '\/usr\/share\/vidjil\/demo'/" /usr/share/vidjil/server/web2py/applications/vidjil/modules/
......@@ -233,13 +233,28 @@ vidjil image you want to use. Usually this will be `vidjil/vidjil:latest`,
but more tags are available at <>.
You may also want to uncomment the volume in the fuse volume block
This will provide easier access to all of the
The volumes in the fuse and nginx volume block
`./vidjil-server/conf:/etc/vidjil` and `./vidjil-client/conf:/etc/vidjil`
will provide easier access to all of the
configuration files, allowing for tweaks.
From this location, it will be easier to enable more software or pipelines
by putting their binaries in this location taht will be see by the docker instance.
# Docker -- Gerlmines
In order to use Vidjil, you will need to retrieve the germline files.
From the root of the git repository run:
cd gerlmine
These germlines are included in the server container with a volume in the fuse block
in your `docker-compose.yml`: `../germline:/usr/share/vidjil/germline`.
After retrieving the germlines, you will also need to copy the generated `germline.js`
(found in `browser/js/`) into the `docker/vidjil-client/conf` directory.
# Docker -- Troubleshooting
......@@ -29,7 +29,8 @@ services:
- /opt/vidjil/log:/var/vidjil
- /opt/vidjil/log/uwsgi:/var/log/uwsgi
- /opt/vidjil/backup:/mnt/backup
#- ./vidjil-server/conf:/etc/vidjil
- ./vidjil-server/conf:/etc/vidjil
- ../germline:/usr/share/vidjil/germline
image: vidjil/client:latest
......@@ -43,6 +44,7 @@ services:
- /opt/vidjil/log/nginx:/var/log/nginx
- /etc/nginx/ssl:/etc/nginx/ssl
- ./vidjil-client/conf:/etc/vidjil
- ../germline:/usr/share/vidjil/germline
......@@ -34,6 +34,7 @@ run mkdir /etc/vidjil
run rm /etc/nginx/conf.d/default.conf
run chmod +x /opt/install_scripts/; sync && /opt/install_scripts/
run ln -s /etc/vidjil/conf.js /usr/share/vidjil/browser/js/conf.js
run ln -s /etc/vidjil/germline.js /usr/share/vidjil/browser/js/germline.js
copy ./scripts/ /entrypoints/
run chown -R www-data:www-data /usr/share/vidjil
......@@ -37,7 +37,7 @@ run chmod +x /opt/install_scripts/; sync && /opt/install_scripts/insta
run ln -s /etc/vidjil/ /usr/share/vidjil/server/web2py/applications/vidjil/modules/
run ln -s /etc/vidjil/ /usr/share/vidjil/server/web2py/
run wget && mv vidjil-latest_x86_64 /usr/share/vidjil/vidjil-algo && cd /usr/share/vidjil/ && chmod +x vidjil-algo && cd germline && make
run wget && mv vidjil-latest_x86_64 /usr/share/vidjil/vidjil-algo && cd /usr/share/vidjil/ && chmod +x vidjil-algo
copy ./scripts/ /entrypoints/
copy ./scripts/ /entrypoints/
Markdown is supported
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