Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cloud-3353380
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
Issue forks
cloud-3353380
Commits
36c2f0b4
Commit
36c2f0b4
authored
2 years ago
by
baldwinlouie
Committed by
Yas Naoi
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3278479
by baldwinlouie, yas: Update CFn to restart Docker after EC2 instance is restarted
parent
4d4a31e0
Branches
2497145-front-page
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
deployments/cfn/nested/includes/docker.yaml
+4
-4
4 additions, 4 deletions
deployments/cfn/nested/includes/docker.yaml
with
4 additions
and
4 deletions
deployments/cfn/nested/includes/docker.yaml
+
4
−
4
View file @
36c2f0b4
...
...
@@ -74,9 +74,9 @@ Fn::Base64:
sudo systemctl enable docker
LINK_MEMCACHE=''
if [[ "${Install
DB
}" == 'TRUE' ]]; then
if [[ "${Install
Memcache
}" == 'TRUE' ]]; then
sudo docker pull memcached
docker run --name cloud-orchestrator-memcache -d memcached
docker run --name cloud-orchestrator-memcache -d
--restart always
memcached
LINK_MEMCACHE='--link cloud-orchestrator-memcache:memcache'
fi
...
...
@@ -92,7 +92,7 @@ Fn::Base64:
-e MYSQL_USER=${MySQLUserName} \
-e MYSQL_PASSWORD=${MySQLPassword} \
-v $MARIADB_DIR:/var/lib/mysql \
-d --name mariadb mariadb
-d
--restart always
--name mariadb mariadb
fi
# Run the cloud orchestrator docker installer
...
...
@@ -102,7 +102,7 @@ Fn::Base64:
sudo docker build -t $IMAGE_TAG $DOCKER_FILE_URL
sudo docker run --name $CONTAINER_NAME $LINK_DB $LINK_MEMCACHE \
-p 80:80 -d -v $CO_DIR:$DOCKER_DIR $IMAGE_TAG
-p 80:80 -d
--restart always
-v $CO_DIR:$DOCKER_DIR $IMAGE_TAG
# Set up a drush command.
sudo docker exec -w $DOCKER_DIR $CONTAINER_NAME sh -c "ln -s '$DOCKER_DIR/vendor/bin/drush' /usr/local/bin/"
...
...
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