Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
elixir
beacon
Commits
b89e653b
Commit
b89e653b
authored
Jun 14, 2019
by
Jacek Lebioda
Browse files
Improving docker and gitlab-ci scripts
parent
6f36b3ce
Pipeline
#10736
passed with stage
in 1 minute and 10 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
b89e653b
...
...
@@ -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
Dockerfile
View file @
b89e653b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment