Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dockerfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Picasoft
Technique
Dockerfiles
Commits
d03d7e79
Commit
d03d7e79
authored
5 years ago
by
Igor Witz
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev-ci' of gitlab.utc.fr:picasoft/projets/dockerfiles into dev-ci
parents
51849e06
5c9f1ced
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!35
Gestion des secrets
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
pica-etherpad/docker-compose.yml
+15
-1
15 additions, 1 deletion
pica-etherpad/docker-compose.yml
with
17 additions
and
3 deletions
.gitlab-ci.yml
+
2
−
2
View file @
d03d7e79
...
...
@@ -137,7 +137,7 @@ deployment-test:
script
:
-
cd $MODIFIED_IMAGE
-
sed -i -e s/picasoft.net/test.picasoft.net/g docker-compose.yml
-
if [[ $(
docker
co
ntainer ls --format "{{.Names}}" | grep $CONTAINER_NAME) ]]; then docker stop $CONTAINER_NAME | xargs docker rm; fi
-
docker
-
co
mpose down --rmi all
-
docker-compose up -d --force-recreate --remove-orphans $CONTAINER_NAME
after_script
:
-
rm -rf $DOCKER_CERT_PATH
...
...
@@ -177,7 +177,7 @@ deployment-prod:
-
docker tag $REGISTRY/ci-builds/$CI_COMMIT_SHA:latest $MODIFIED_IMAGE_FULL
script
:
-
cd $MODIFIED_IMAGE
-
if [[ $(
docker
co
ntainer ls --format "{{.Names}}" | grep $CONTAINER_NAME) ]]; then docker stop $CONTAINER_NAME | xargs docker rm; fi
-
docker
-
co
mpose down --rmi all
-
docker-compose up -d --force-recreate --remove-orphans $CONTAINER_NAME
after_script
:
-
docker tag $REGISTRY/ci-builds/$CI_COMMIT_SHA:latest $REGISTRY_PROD/$MODIFIED_IMAGE_FULL
...
...
This diff is collapsed.
Click to expand it.
pica-etherpad/docker-compose.yml
+
15
−
1
View file @
d03d7e79
version
:
"
2.4"
volumes
:
etherpad-db-volume
:
external
:
name
:
"
etherpad-db"
networks
:
docker_default
:
external
:
true
services
:
etherpad-app
:
image
:
pica-etherpad:1.7.5
...
...
@@ -19,6 +29,8 @@ services:
-
ETHERPAD_THEME=colibris
-
ETHERPAD_MINIFY=true
restart
:
always
networks
:
-
docker_default
etherpad-db
:
image
:
mysql:5.7
...
...
@@ -29,7 +41,7 @@ services:
cpus
:
"
0.20"
pids_limit
:
1024
volumes
:
-
/DATA/docker/etherpad/
etherpad-db
/data
:/var/lib/mysql
-
etherpad-db
-volume
:/var/lib/mysql
env_file
:
./secrets/etherpad-db.secrets
healthcheck
:
test
:
"
/usr/bin/mysql
--user=root
--password=$${MYSQL_ROOT_PASSWORD}
--execute
\"
SHOW
DATABASES;
\"
"
...
...
@@ -37,4 +49,6 @@ services:
timeout
:
20s
retries
:
10
restart
:
always
networks
:
-
docker_default
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