Skip to content

Commit

Permalink
fix commands
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-gilber committed Nov 1, 2023
1 parent 873d63b commit cfd8063
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .devcontainer/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ services:
environment:
# Enable Docker BuildKit https://docs.docker.com/build/buildkit/
DOCKER_BUILDKIT: '1'
DOCKER_REGISTRY_URL: '' # Required for Maven build
# Externalized Spring Configuration: https://docs.spring.io/spring-boot/docs/1.5.6.RELEASE/reference/html/boot-features-external-config.html
# Connect to MySQL: mysql --host=mysql --user=$SPRING_DATASOURCE_USERNAME --password=$SPRING_DATASOURCE_PASSWORD demoapp
SPRING_DATASOURCE_USERNAME: root
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ docker build -f Containerfile.multistage -t demoapp-backend:latest .
## Run Application from Visual Studio Code Dev Container
### Run Application using Java
```sh
java -jar target/demoapp-backend-0.0.1-SNAPSHOT.jar
java -jar target/demoapp-backend-1.0.0-SNAPSHOT.jar
```
### Run Application using Docker Compose
[Compose](https://docs.docker.com/compose/) is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application's services. Then, with a single command, you create and start all the services from your configuration.
Expand Down Expand Up @@ -169,5 +169,5 @@ docker compose --project-directory deploy/docker-compose down # remove container

Run below command to run [test](container-structure-test.yaml) for `demoapp-backend`
```sh
container-structure-test test --image demoapp-backend --config container-structure-test.yaml
container-structure-test test --image demoapp-backend:latest --config container-structure-test.yaml
```

0 comments on commit cfd8063

Please sign in to comment.