Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
reflectometry
Web Reflectivity
Commits
8d50638f
Commit
8d50638f
authored
Dec 09, 2021
by
Mark Abraham
Browse files
test copy certs
parent
8b914f16
Pipeline
#179461
failed with stages
in 1 second
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
8d50638f
...
...
@@ -12,10 +12,9 @@ build:
stage
:
build
environment
:
$CI_COMMIT_REF_SLUG
script
:
-
git clone --single-branch --branch $CI_COMMIT_REF_SLUG $REPO
-
cp ./src/certs/* .
-
echo 'COPY *.crt /etc/pki/ca-trust/source/anchors/' >> Dockerfile
-
echo 'RUN chmod 644 /etc/pki/ca-trust/source/anchors/*.crt && update-ca-trust' >> Dockerfile
#
- echo 'COPY *.crt /etc/pki/ca-trust/source/anchors/' >> Dockerfile
#
- echo 'RUN chmod 644 /etc/pki/ca-trust/source/anchors/*.crt && update-ca-trust' >> Dockerfile
-
docker build -t ${CI_REGISTRY_IMAGE}/${CI_COMMIT_REF_SLUG} ./src/.
-
docker push ${CI_REGISTRY_IMAGE}/${CI_COMMIT_REF_SLUG}
-
docker rmi ${CI_REGISTRY_IMAGE}/${CI_COMMIT_REF_SLUG}
...
...
src/
Dockerfile
→
Dockerfile
View file @
8d50638f
...
...
@@ -14,6 +14,9 @@ RUN yum install -y epel-release; \
WORKDIR
/var/www/web_reflectivity/app
COPY
./certs/*.crt /etc/pki/ca-trust/source/anchors/
RUN
chmod
644 /etc/pki/ca-trust/source/anchors/
*
.crt
&&
update-ca-trust
COPY
. .
RUN
python3
-m
pip
install
--upgrade
pip
;
\
...
...
src/web_reflectivity/settings.py
View file @
8d50638f
...
...
@@ -249,3 +249,4 @@ try:
from
local_settings
import
*
except
:
LOCAL_SETTINGS
=
False
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