Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GÉANT Service Orchestrator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
GÉANT Service Orchestrator
Commits
ec160e45
Verified
Commit
ec160e45
authored
1 year ago
by
Karel van Klink
Browse files
Options
Downloads
Patches
Plain Diff
small Dockerfile updates
parent
fb57ae23
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!90
include TRANSLATIONS_DIR as environment variable in the Docker image
Pipeline
#84409
passed
1 year ago
Stage: tox
Stage: documentation
Stage: sonarqube
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
entrypoint.sh
+3
-2
3 additions, 2 deletions
entrypoint.sh
with
4 additions
and
3 deletions
Dockerfile
+
1
−
1
View file @
ec160e45
...
...
@@ -5,7 +5,6 @@ ARG ARTIFACT_VERSION
RUN
apk add
--no-cache
gcc libc-dev libffi-dev
&&
\
addgroup
-S
appgroup
&&
adduser
-S
appuser
-G
appgroup
-h
/app
USER
appuser
RUN
pip
install
\
--pre
\
...
...
@@ -27,5 +26,6 @@ ENV TRANSLATIONS_DIR=/app/gso/translations/
COPY
--chown=appuser:appgroup --chmod=755 entrypoint.sh /app/entrypoint.sh
USER
appuser
EXPOSE
8080
ENTRYPOINT
["/app/entrypoint.sh"]
This diff is collapsed.
Click to expand it.
entrypoint.sh
+
3
−
2
View file @
ec160e45
#!/bin/sh
set
-o
errexit
set
-o
nounset
# Run database migrations
cd
gso
||
exit
1
cd
/app/gso
mv
migrations migrations_temp
&&
\
PYTHONPATH
=
.. python main.py db init
&&
\
rm
-rf
migrations
&&
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment