Skip to content

Commit

Permalink
Merge pull request #2459 from pascalgrimaud/cloud-profile
Browse files Browse the repository at this point in the history
Cloud profile
  • Loading branch information
pascalgrimaud authored Jul 9, 2022
2 parents 471f31e + 7f13f75 commit d5d7a33
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/config/application-cloud.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
application.forced-project-folder=/tmp/jhlite

0 comments on commit d5d7a33

Please sign in to comment.