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
90a25579
Commit
90a25579
authored
1 year ago
by
Pierre-Gilles Levallois
Browse files
Options
Downloads
Patches
Plain Diff
pvc monitoring with pod
parent
f03a9264
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!6
Fully functional version that calculate layer with all stages
Pipeline
#76081
passed
1 year ago
Stage: Build Calqul
Stage: Deploy Calqul Buttons
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfiles/db/Dockerfile
+9
-0
9 additions, 0 deletions
Dockerfiles/db/Dockerfile
deployment/pods/pvc-calqul.yml
+8
-2
8 additions, 2 deletions
deployment/pods/pvc-calqul.yml
with
17 additions
and
2 deletions
Dockerfiles/db/Dockerfile
+
9
−
0
View file @
90a25579
...
@@ -5,6 +5,14 @@ FROM postgis/postgis:11-3.3-alpine
...
@@ -5,6 +5,14 @@ FROM postgis/postgis:11-3.3-alpine
# Arguments
# Arguments
ARG
NAMESPACE_ENV
ARG
NAMESPACE_ENV
ARG
PGDATA="/arb-data/pgdata"
ARG
HTTP_PROXY=""
ENV
HTTP_PROXY=$HTTP_PROXY
ENV
HTTPS_PROXY=$HTTP_PROXY
###--------------- LOCAL BUILD ONLY --------------------
# ENV POSTGRES_HOST_AUTH_METHOD=trust
###--------------- /LOCAL BUILD ONLY --------------------
USER
root
USER
root
...
@@ -12,6 +20,7 @@ ENV PGDATA=/arb-data/pgdata
...
@@ -12,6 +20,7 @@ ENV PGDATA=/arb-data/pgdata
RUN
mkdir
-p
$PGDATA
&&
\
RUN
mkdir
-p
$PGDATA
&&
\
chown -R postgres:0 /$PGDATA && \
chown -R postgres:0 /$PGDATA && \
chmod 777 /$PGDATA
chmod 777 /$PGDATA
# chmod -R g+rwx /$PGDATA ?? a tester ??
# Entry point.
# Entry point.
COPY
./db-init/ /docker-entrypoint-initdb.d/
COPY
./db-init/ /docker-entrypoint-initdb.d/
...
...
This diff is collapsed.
Click to expand it.
deployment/pods/pvc-calqul.yml
+
8
−
2
View file @
90a25579
...
@@ -25,11 +25,13 @@ spec:
...
@@ -25,11 +25,13 @@ spec:
containers
:
containers
:
-
name
:
calqul-pvc-__NAMESPACE_ENV__
-
name
:
calqul-pvc-__NAMESPACE_ENV__
image
:
registry.gitlab.grandlyon.fr/openshift-as-code/reposit-gl/busybox:1.0
image
:
registry.gitlab.grandlyon.fr/openshift-as-code/reposit-gl/busybox:1.0
command
:
[
"
sh"
,
"
-c"
,
"
watch
-n
30
df
-h
/mnt/data"
]
command
:
[
"
sh"
,
"
-c"
,
"
watch
-n
30
df
-h
|
grep
/mnt/data"
]
imagePullPolicy
:
Always
imagePullPolicy
:
Always
volumeMounts
:
volumeMounts
:
-
mountPath
:
/mnt/data
-
mountPath
:
/mnt/data
name
:
data
name
:
data
-
mountPath
:
/mnt/data2
name
:
data2
resources
:
resources
:
requests
:
requests
:
memory
:
"
32M"
memory
:
"
32M"
...
@@ -40,4 +42,8 @@ spec:
...
@@ -40,4 +42,8 @@ spec:
volumes
:
volumes
:
-
name
:
data
-
name
:
data
persistentVolumeClaim
:
persistentVolumeClaim
:
claimName
:
pvc-03-__NAMESPACE__-claim
claimName
:
pvc-02-__NAMESPACE__-claim
\ No newline at end of file
-
name
:
data2
persistentVolumeClaim
:
claimName
:
pvc-03-__NAMESPACE__-claim
\ 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