Skip to content

Commit

Permalink
Merge pull request #147 from iij/igrep-patch-1
Browse files Browse the repository at this point in the history
コンテナー起動時に直ちにアタッチする
  • Loading branch information
igrep committed Aug 10, 2023
2 parents 200db33 + 913945f commit a6a467e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/server-app/java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,12 @@ $ PROXY_PORT=YOUR_PROXY_PORT
$ JAVA_OPT="-Dhttp.proxyHost=${PROXY_HOST} -Dhttp.proxyPort=${PROXY_PORT} -Dhttps.proxyHost=${PROXY_HOST} -Dhttps.proxyPort=${PROXY_PORT}"
# プロキシ設定ここまで
# コンテナを起動する
$ docker run --name bootcamp-springboot -itd -p 8080:8080 -e JAVA_OPT="${JAVA_OPT}" tamago0224/bootcamp-springboot:2023
$ docker run --name bootcamp-springboot -it -p 8080:8080 -e JAVA_OPT="${JAVA_OPT}" tamago0224/bootcamp-springboot:2023
```

3. アプリケーションの起動チェック

```bash
# コンテナの中にアタッチする
$ docker exec -it bootcamp-springboot bash
# Spring Bootを起動する
❯ ./gradlew bootrun
# ...
Expand Down

0 comments on commit a6a467e

Please sign in to comment.