Commit b89e653b authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

Improving docker and gitlab-ci scripts

parent 6f36b3ce
Pipeline #10736 passed with stage
in 1 minute and 10 seconds
......@@ -15,4 +15,11 @@ test:
- cd code/frontend/ && pwd && yarn install && node node_modules/gulp/bin/gulp.js
- cd ../backend && pwd
- coverage run setup.py test
- coverage report -m
\ No newline at end of file
- coverage report -m
test_docker:
stage: test
script:
- docker-compose build
only:
- merge_requests
\ No newline at end of file
......@@ -2,16 +2,21 @@
FROM jlebiodaunilu/elixirlu-basebeacon-python:v0.2.2
MAINTAINER Jacek Lebioda "jacek.lebioda@uni.lu"
# Prepare the structure and install pip
RUN mkdir -p /home/beacon/elixir-beacon && \
RUN mkdir -p /home/beacon/elixir-beacon \
/home/beacon/elixir-beacon/code/frontend/ \
/home/beacon/elixir-beacon/code/backend/beacon/templates \
/home/beacon/elixir-beacon/code/backend/beacon/static && \
pip3 install --default-timeout=60 -i https://pypi.lcsb.uni.lu/simple --upgrade pip
# Prepare python requirements; should be fast as they are already in the base image
COPY code/backend/requirements.txt /home/beacon/elixir-beacon/
WORKDIR /home/beacon/elixir-beacon
RUN pip3 install --default-timeout=60 -i https://pypi.lcsb.uni.lu/simple -r requirements.txt
# Build front-end files
COPY code/frontend /home/beacon/elixir-beacon/code/
COPY code/frontend/* /home/beacon/elixir-beacon/code/frontend/
RUN ls -laR /home/beacon/elixir-beacon/code/frontend
WORKDIR /home/beacon/elixir-beacon/code/frontend
RUN yarn install && node node_modules/gulp/bin/gulp.js
RUN yarn install && \
node node_modules/gulp/bin/gulp.js
# Move the back-end files, and run it
COPY . /home/beacon/elixir-beacon
WORKDIR /home/beacon/elixir-beacon/code/backend
......
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