Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GCP Deploy Button (using Cloud Run) to Readme #395

Closed
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ FROM openjdk:8-jre-alpine
ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
JAVA_OPTS="" \
SPRING_PROFILES_ACTIVE=prod
EXPOSE 8761
EXPOSE ${PORT}
RUN apk add --no-cache curl && \
mkdir /target && \
chmod g+rwx /target
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ There are a few limitations when deploying to Heroku.
* The registry will only work with [native configuration](https://www.jhipster.tech/jhipster-registry/#spring-cloud-config) (and not Git config).
* The registry service cannot be scaled up to multiple dynos to provide redundancy. You must deploy multiple applications (i.e. click the button more than once). This is because Eureka requires distinct URLs to synchronize in-memory state between instances.

## Deploy to Google Cloud Platform (GCP)

Click the below button to deploy your own instance of the JHipster Registry to GCP:

[![Run on Google Cloud](https://deploy.cloud.run/button.svg)](https://deploy.cloud.run)

## Running locally

To run the cloned repository;
Expand Down
10 changes: 3 additions & 7 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "JHipster Registry",
"name": "jhipster-registry",
"description": "This is the JHipster registry service, based on Spring Cloud Netflix, Eureka and Spring Cloud Config.",
"logo": "https://www.jhipster.tech/images/logo/logo-jhipster-drink-coffee.png",
"env": {
"JHIPSTER_PASSWORD": {
"description": "Admin password for the registry (used to login after clicking 'View App'). Must be at least 5 characters.",
"required": "true"
"required": true
},
"JAVA_OPTS": {
"description": "Java runtime options.",
Expand All @@ -19,9 +19,5 @@
"description": "Version of the registry to deploy.",
"value": "5.0.2"
}
},
"buildpacks": [
{"url": "heroku/jvm"},
{"url": "https://github.com/jhipster/jhipster-registry-buildpack"}
]
}
}
2 changes: 1 addition & 1 deletion src/main/resources/config/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spring:
# keyAlias: JHipsterRegistry
# ===================================================================
server:
port: 8761
port: ${PORT}
compression:
enabled: true
mime-types: text/html,text/xml,text/plain,text/css, application/javascript, application/json
Expand Down