Skip to content

Commit

Permalink
ensure server is updated, docker restarts containers (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
dills122 authored Jan 30, 2022
1 parent 008cc96 commit 80156d7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#cloud-config
# package_update: true
# package_upgrade: true
# package_reboot_if_required: true
package_update: true
package_upgrade: true
package_reboot_if_required: true

groups:
- ubuntu: [root, sys]
Expand All @@ -27,5 +27,6 @@ runcmd:
- /usr/bin/sleep 10
- /usr/bin/docker pull tutum/hello-world
- /usr/bin/docker run -d -p 80:80 --restart=always tutum/hello-world
- /usr/bin/docker update --restart unless-stopped $(docker ps -q)

final_message: "The system is finally up, after $UPTIME seconds"

0 comments on commit 80156d7

Please # to comment.