Skip to content

Commit

Permalink
Upgrade the example to use the new docker compose plugin. (#1063)
Browse files Browse the repository at this point in the history
Co-authored-by: Tersztenyák László <[email protected]>
  • Loading branch information
terszt and LaszloTersztenyak authored Dec 23, 2023
1 parent eebf6fd commit 14c0142
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/docker-compose-nodejs/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ docker-compose-up:
url: http://localhost:8891
name: local
script:
- docker-compose up -d
- docker compose up -d

# @Description Down docker-compose services
docker-compose-down:
Expand All @@ -40,4 +40,4 @@ docker-compose-down:
environment:
name: local
script:
- docker-compose down
- docker compose down
6 changes: 3 additions & 3 deletions examples/docker-compose-nodejs/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# docker-compose nodejs example
# docker compose nodejs example

- Install npm packages
- Copy those packages to host and child jobs, because of the artifacts fields (npm-install)
- Check for security vulnerbilities in npm packages (npm-audit)
- Check for outdated packages via npm-check-updates package (npm-outdated)
- Deploy a webserver container via docker-compose (docker-compose-up)
- Deploy a webserver container via docker compose (docker-compose-up)

```bash
gitlab-ci-local --cwd examples/docker-compose-nodejs/
```

If you want to down docker-compose service call.
If you want to down docker compose service call.

This job is only run locally, and only when manually triggered

Expand Down

0 comments on commit 14c0142

Please sign in to comment.