mirror of https://github.com/knative/docs.git
rename hellworld-java to helloworld-java-spring (#1185)
* rename hellworld-java to helloworld-java-spring * updated sampleapp test * Updated sample test app tmp directory * Renamed service name and instructions to reflect helloworld-java-spring
This commit is contained in:
parent
1d778b87fc
commit
c60d695a02
|
|
@ -118,7 +118,7 @@ recreate the source files from this folder.
|
|||
apiVersion: serving.knative.dev/v1alpha1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: helloworld-java
|
||||
name: helloworld-java-spring
|
||||
namespace: default
|
||||
spec:
|
||||
runLatest:
|
||||
|
|
@ -126,7 +126,7 @@ recreate the source files from this folder.
|
|||
revisionTemplate:
|
||||
spec:
|
||||
container:
|
||||
image: docker.io/{username}/helloworld-java
|
||||
image: docker.io/{username}/helloworld-java-spring
|
||||
env:
|
||||
- name: TARGET
|
||||
value: "Spring Boot Sample v1"
|
||||
|
|
@ -143,10 +143,10 @@ folder) you're ready to build and deploy the sample app.
|
|||
|
||||
```shell
|
||||
# Build the container on your local machine
|
||||
docker build -t {username}/helloworld-java .
|
||||
docker build -t {username}/helloworld-java-spring .
|
||||
|
||||
# Push the container to docker registry
|
||||
docker push {username}/helloworld-java
|
||||
docker push {username}/helloworld-java-spring
|
||||
```
|
||||
|
||||
1. After the build has completed and the container is pushed to docker hub, you
|
||||
|
|
@ -196,14 +196,14 @@ folder) you're ready to build and deploy the sample app.
|
|||
1. To find the URL for your service, use
|
||||
|
||||
```shell
|
||||
kubectl get ksvc helloworld-java \
|
||||
kubectl get ksvc helloworld-java-spring \
|
||||
--output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
|
||||
NAME DOMAIN
|
||||
helloworld-java helloworld-java.default.example.com
|
||||
NAME DOMAIN
|
||||
helloworld-java-spring helloworld-java-spring.default.example.com
|
||||
|
||||
# Or simply:
|
||||
export DOMAIN_NAME=$(kubectl get ksvc helloworld-java \
|
||||
export DOMAIN_NAME=$(kubectl get ksvc helloworld-java-spring \
|
||||
--output jsonpath={.status.domain}
|
||||
```
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
apiVersion: serving.knative.dev/v1alpha1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: helloworld-java
|
||||
name: helloworld-java-spring
|
||||
namespace: default
|
||||
spec:
|
||||
runLatest:
|
||||
|
|
@ -9,7 +9,7 @@ spec:
|
|||
revisionTemplate:
|
||||
spec:
|
||||
container:
|
||||
image: docker.io/{username}/helloworld-java
|
||||
image: docker.io/{username}/helloworld-java-spring
|
||||
env:
|
||||
- name: TARGET
|
||||
value: "Spring Boot Sample v1"
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
languages:
|
||||
- language: "java"
|
||||
- language: "java-spring"
|
||||
expectedOutput: "Hello Spring Boot Sample v1!"
|
||||
preCommands:
|
||||
- exec: "curl"
|
||||
args: "https://start.spring.io/starter.zip -d dependencies=web -d name=helloworld -d artifactId=helloworld -o helloworld.zip"
|
||||
- exec: "unzip"
|
||||
args: "helloworld.zip -d helloworld-java_tmp"
|
||||
args: "helloworld.zip -d helloworld-java-spring_tmp"
|
||||
- exec: "rm"
|
||||
args: "helloworld.zip"
|
||||
copies:
|
||||
|
|
|
|||
Loading…
Reference in New Issue