Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Script recalcul calque
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ERASME
Script recalcul calque
Commits
9dd88bd3
Commit
9dd88bd3
authored
2 years ago
by
Pierre-Gilles Levallois
Browse files
Options
Downloads
Patches
Plain Diff
change order
parent
b1842c67
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!3
Launch script
,
!2
Refactoring : all scripts in Dockerfiles/python/scripts
Pipeline
#43370
failed
2 years ago
Stage: Build Calqul
Stage: Deploy Calqul
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfiles/python/Dockerfile
+8
-6
8 additions, 6 deletions
Dockerfiles/python/Dockerfile
with
8 additions
and
6 deletions
Dockerfiles/python/Dockerfile
+
8
−
6
View file @
9dd88bd3
...
...
@@ -5,12 +5,6 @@ WORKDIR /usr/src/app
# Get the NAMESPACE_ENV value. This should be 'd01', 'r01' or 'p01'
# ARG NAMESPACE_ENV=""
COPY
./scripts/requirements.txt ./
RUN
pip
install
--no-cache-dir
-r
requirements.txt
COPY
./scripts ./
COPY
./sql ./
# Remplacing values in file
RUN
cp
.env.example .env.
$NAMESPACE_ENV
&&
\
sed -i "s/__POSTGRES_DB__/$POSTGRES_DB/g" .env.$NAMESPACE_ENV && \
...
...
@@ -24,4 +18,12 @@ RUN cat .env.$NAMESPACE_ENV
COPY
.env.$NAMESPACE_ENV .
COPY
./scripts/requirements.txt ./
RUN
pip
install
--no-cache-dir
-r
requirements.txt
COPY
./scripts ./
COPY
./sql ./
RUN
ls
-l
.
CMD
[ "python", "./scripts/hello-world.py" ]
\ No newline at end of file
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