Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
webservices
cern-search
cern-search-rest-api
Commits
a59724b5
Commit
a59724b5
authored
Jan 28, 2021
by
Carina Antunes
Browse files
[NI] Fix build
parent
7a0c539a
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
a59724b5
...
...
@@ -131,7 +131,6 @@ build_test_version_manual:
-
merge_requests
when
:
manual
variables
:
BUILD_ARG
:
build_env=dev
TO
:
${CI_REGISTRY_IMAGE}:$CI_COMMIT_REF_SLUG
### Create tag in OpenShift.
...
...
@@ -198,8 +197,6 @@ build_dev_version:
extends
:
.build_image
only
:
-
dev
variables
:
BUILD_ARG
:
build_env=dev
### Import image into OpenShift.
import_image_dev_branch_prod
:
...
...
Dockerfile
View file @
a59724b5
...
...
@@ -14,11 +14,11 @@ ARG build_env
WORKDIR
/${WORKING_DIR}/src
ADD
. /${WORKING_DIR}/src
# If env is development, install development dependencies
RUN if
[
"
$build_env
"
!=
"prod"
]
;
then
poetry
install
--no-root
--no-interaction
--no-ansi
;
fi
# Install CSaS
RUN
pip
install
-e
.
# If env is development, installs also development dependencies.
RUN if
[
"
$build_env
"
!=
"prod"
]
;
\
then
poetry
install
--no-root
--no-interaction
--no-ansi
&&
python setup.py develop
--no-deps
;
\
else
python setup.py
install
--no-deps
;
fi
# PID File for uWSGI
RUN
touch
/
${
WORKING_DIR
}
/src/uwsgi.pid
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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