diff --git a/Dockerfile b/Dockerfile index 4906728..dd0302e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,4 +7,4 @@ FROM openjdk:13-jdk-alpine WORKDIR /root COPY --from=build /root/build/libs/*.jar app.jar EXPOSE 80 -ENTRYPOINT ["java","-jar","app.jar"] \ No newline at end of file +ENTRYPOINT ["java", "-jar", "app.jar"] \ No newline at end of file diff --git a/README.md b/README.md index 210705a..a9610e7 100644 --- a/README.md +++ b/README.md @@ -1 +1,7 @@ passwort-generator + +#How to Deploy on Cloud run +https://cloud.google.com/run/docs/quickstarts/build-and-deploy +``` +gcloud builds submit --tag gcr.io/[PROJECT-ID]/pwgen +``` \ No newline at end of file diff --git a/src/main/java/de/icaotix/controller/DefaultController.java b/src/main/java/de/icaotix/controller/DefaultController.java index c52f040..2771286 100644 --- a/src/main/java/de/icaotix/controller/DefaultController.java +++ b/src/main/java/de/icaotix/controller/DefaultController.java @@ -8,7 +8,12 @@ public class DefaultController { @RequestMapping("/") public String index() { - return "Greetings from Spring Boot, also from a Docker Container!"; + return "Greetings from Spring Boot, also from a Docker Container from Port 80!"; + } + + @RequestMapping("/api") + public String standard() { + return "password"; } } \ No newline at end of file