Nils 89a778d111 | ||
---|---|---|
src | ||
.gitignore | ||
README.md | ||
nbactions.xml | ||
pom.xml | ||
scaffolded_readme.md |
README.md
Deprecated! Java legacy secrets example
Recent Google Cloud changes has made this approach non-viable: More info.
This project was scaffolded from a java app engine example, see original readme. The purpose of this project is just to show how you can pass secrets as system properties to the running java application.
Prerequisites for running the code:
- Java 8
- Maven (at least 3.5)
- Google Cloud SDK (aka gcloud)
Local development
- Run
mvn clean appengine:devserver -DMY_SECRET_KEY=cookies-are-great
. This will start a local development server on http://localhost:8080 displaying the contents of the providedMY_SECRET_KEY
secret.
Deployment
- Run
mvn appengine:update -DMY_SECRET_KEY=cookies-are-great
to deploy an application to the cloud together with the providedMY_SECRET_KEY
secret.