From 46ac7ea79b64a6e2939b2305376f3f1c613a23c7 Mon Sep 17 00:00:00 2001 From: Pascal Grimaud Date: Sat, 9 Jul 2022 23:26:09 +0200 Subject: [PATCH 1/2] Add cloud profile --- src/main/resources/config/application-cloud.properties | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/main/resources/config/application-cloud.properties diff --git a/src/main/resources/config/application-cloud.properties b/src/main/resources/config/application-cloud.properties new file mode 100644 index 00000000000..9447026d62c --- /dev/null +++ b/src/main/resources/config/application-cloud.properties @@ -0,0 +1 @@ +application.forced-project-folder=/tmp/jhlite From 7f13f753e1b55324aa8e95e67b18a21fe7967f7a Mon Sep 17 00:00:00 2001 From: Pascal Grimaud Date: Sat, 9 Jul 2022 23:26:39 +0200 Subject: [PATCH 2/2] Update Docker image to use cloud profile and update README --- Dockerfile | 3 ++- README.md | 32 ++++++++++++++++---------------- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/Dockerfile b/Dockerfile index ff7c889fd60..127a815266e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,8 @@ RUN \ rm -Rf /code/jhipster-app/ /root/.m2 /root/.cache /tmp/* /var/tmp/* ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \ - JAVA_OPTS="" + JAVA_OPTS="" \ + SPRING_PROFILES_ACTIVE=cloud USER jhipster CMD java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /code/*.jar EXPOSE 7471 diff --git a/README.md b/README.md index 4e9fcd14b91..dbc1f05b5bf 100644 --- a/README.md +++ b/README.md @@ -26,22 +26,6 @@ JHipster is a development platform to quickly generate, develop & deploy modern - you will only generate the code you want, no additional unused code - best quality as possible: 💯% coverage, 0 code smell, no duplication 😎 -## Docker/Podman Quickstart - -To start a local instance of JHipster Lite, go to your desired application folder and run: - -``` -docker run --rm --pull=always -p 7471:7471 -v $(pwd):/jh:Z -it jhipster/jhipster-lite:latest -``` - -Or with podman: - -``` -podman run --rm --pull=always -p 7471:7471 -v $(pwd):/jh:Z -u root -it jhipster/jhipster-lite:latest -``` - -Then go to http://localhost:7471, and type `/jh` in the project configuration path. - ## Deploy to Heroku Click on this button to deploy your own instance of JHipster Lite: @@ -140,6 +124,22 @@ java -jar target/*.jar So you can navigate to http://localhost:7471 in your browser. +## Docker/Podman Quickstart + +To start a local instance of JHipster Lite, go to your desired application folder and run: + +``` +docker run --rm --pull=always -p 7471:7471 -v $(pwd):/tmp/jhlite:Z -it jhipster/jhipster-lite:latest +``` + +Or with podman: + +``` +podman run --rm --pull=always -p 7471:7471 -v $(pwd):/tmp/jhlite:Z -u root -it jhipster/jhipster-lite:latest +``` + +Then, go to [http://localhost:7471](http://localhost:7471) + ## e2e tests You need to run the project first. Then, you can run the end-to-end tests: