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:
Ray Tsang 2019-04-23 21:48:29 +05:30 committed by Knative Prow Robot
parent 1d778b87fc
commit c60d695a02
16 changed files with 12 additions and 12 deletions

View File

@ -118,7 +118,7 @@ recreate the source files from this folder.
apiVersion: serving.knative.dev/v1alpha1 apiVersion: serving.knative.dev/v1alpha1
kind: Service kind: Service
metadata: metadata:
name: helloworld-java name: helloworld-java-spring
namespace: default namespace: default
spec: spec:
runLatest: runLatest:
@ -126,7 +126,7 @@ recreate the source files from this folder.
revisionTemplate: revisionTemplate:
spec: spec:
container: container:
image: docker.io/{username}/helloworld-java image: docker.io/{username}/helloworld-java-spring
env: env:
- name: TARGET - name: TARGET
value: "Spring Boot Sample v1" value: "Spring Boot Sample v1"
@ -143,10 +143,10 @@ folder) you're ready to build and deploy the sample app.
```shell ```shell
# Build the container on your local machine # 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 # 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 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 1. To find the URL for your service, use
```shell ```shell
kubectl get ksvc helloworld-java \ kubectl get ksvc helloworld-java-spring \
--output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
NAME DOMAIN NAME DOMAIN
helloworld-java helloworld-java.default.example.com helloworld-java-spring helloworld-java-spring.default.example.com
# Or simply: # Or simply:
export DOMAIN_NAME=$(kubectl get ksvc helloworld-java \ export DOMAIN_NAME=$(kubectl get ksvc helloworld-java-spring \
--output jsonpath={.status.domain} --output jsonpath={.status.domain}
``` ```

View File

@ -1,7 +1,7 @@
apiVersion: serving.knative.dev/v1alpha1 apiVersion: serving.knative.dev/v1alpha1
kind: Service kind: Service
metadata: metadata:
name: helloworld-java name: helloworld-java-spring
namespace: default namespace: default
spec: spec:
runLatest: runLatest:
@ -9,7 +9,7 @@ spec:
revisionTemplate: revisionTemplate:
spec: spec:
container: container:
image: docker.io/{username}/helloworld-java image: docker.io/{username}/helloworld-java-spring
env: env:
- name: TARGET - name: TARGET
value: "Spring Boot Sample v1" value: "Spring Boot Sample v1"

View File

@ -1,11 +1,11 @@
languages: languages:
- language: "java" - language: "java-spring"
expectedOutput: "Hello Spring Boot Sample v1!" expectedOutput: "Hello Spring Boot Sample v1!"
preCommands: preCommands:
- exec: "curl" - exec: "curl"
args: "https://start.spring.io/starter.zip -d dependencies=web -d name=helloworld -d artifactId=helloworld -o helloworld.zip" args: "https://start.spring.io/starter.zip -d dependencies=web -d name=helloworld -d artifactId=helloworld -o helloworld.zip"
- exec: "unzip" - exec: "unzip"
args: "helloworld.zip -d helloworld-java_tmp" args: "helloworld.zip -d helloworld-java-spring_tmp"
- exec: "rm" - exec: "rm"
args: "helloworld.zip" args: "helloworld.zip"
copies: copies: