Skip to content

Commit

Permalink
make service command's arguments optional
Browse files Browse the repository at this point in the history
  • Loading branch information
linostar committed Sep 11, 2024
1 parent ba958ab commit 002f985
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/how-to/code/convert-to-pebble-layer/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ services:
nginx:
override: replace
startup: disabled
command: nginx -g 'daemon off;'
command: nginx [ -g 'daemon off;' ]
environment:
TZ: UTC
on-failure: shutdown
nginx-debug:
override: replace
startup: disabled
command: nginx-debug -g 'daemon off;'
command: nginx-debug [ -g 'daemon off;' ]
environment:
TZ: UTC
on-failure: shutdown
Expand Down
6 changes: 4 additions & 2 deletions docs/how-to/code/convert-to-pebble-layer/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ execute: |
rm custom-nginx-rock_latest_amd64.rock
# [docs:docker-run]
docker run -d --name nginx-pebble-service -p 8080:80 custom-nginx-rock:latest
docker run -d --name nginx-pebble-service -p 8000:80 custom-nginx-rock:latest
# [docs:docker-run-end]
docker exec nginx-pebble-service pebble start nginx
# [docs:curl]
curl localhost:8080
curl localhost:8000
# [docs:curl-end]
docker rm -f nginx-pebble-service
Expand Down

0 comments on commit 002f985

Please sign in to comment.