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 test
- coverage report -m
\ No newline at end of file
- coverage report -m
stage: test
- docker-compose build
- merge_requests
\ No newline at end of file
......@@ -2,16 +2,21 @@
FROM jlebiodaunilu/elixirlu-basebeacon-python:v0.2.2
MAINTAINER Jacek Lebioda ""
# 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 --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 -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