Add Api endpoint and cloud build info
beautify Dockerfile
This commit is contained in:
parent
61450da84a
commit
20559e6be8
@ -7,4 +7,4 @@ FROM openjdk:13-jdk-alpine
|
|||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
COPY --from=build /root/build/libs/*.jar app.jar
|
COPY --from=build /root/build/libs/*.jar app.jar
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
ENTRYPOINT ["java","-jar","app.jar"]
|
ENTRYPOINT ["java", "-jar", "app.jar"]
|
@ -1 +1,7 @@
|
|||||||
passwort-generator
|
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
|
||||||
|
```
|
@ -8,7 +8,12 @@ public class DefaultController {
|
|||||||
|
|
||||||
@RequestMapping("/")
|
@RequestMapping("/")
|
||||||
public String index() {
|
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";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user