Skip to content

Commit

Permalink
Add arm64 docker command to README
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed May 4, 2022
1 parent f4fc2f4 commit f9efed0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion generators/common/templates/README.md.jhi.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,13 @@ You can also fully dockerize your application and all the services that it depen
To achieve this, first build a docker image of your app by running:
```
<% if (buildToolMaven) { %>./mvnw -Pprod verify jib:dockerBuild<% } %><% if (buildToolGradle) { %>./gradlew bootJar -Pprod jibDockerBuild<% } %>
npm run java:docker
```
Or build a arm64 docker image when using an arm64 processor os like MacOS with M1 processor family running:
```
npm run java:docker:arm64
```
Then run:
Expand All @@ -408,6 +414,8 @@ Then run:
docker-compose -f src/main/docker/app.yml up -d
```
When running Docker Desktop on MacOS Big Sur or later, consider enabling experimental `Use the new Virtualization framework` for better processing performance ((disk access performance is worse)[https://github.com/docker/roadmap/issues/7]).
For more information refer to [Using Docker and Docker-Compose][], this page also contains information on the docker-compose sub-generator (`jhipster docker-compose`), which is able to generate docker configurations for one or several JHipster applications.
## Continuous Integration (optional)
Expand Down

0 comments on commit f9efed0

Please sign in to comment.