Skip to content

Commit

Permalink
removing sunix and replace to a more generic name: hello-quarkus
Browse files Browse the repository at this point in the history
Signed-off-by: Sun Tan <sutan@redhat.com>
  • Loading branch information
sunix committed Jul 30, 2019
1 parent 60a96e4 commit 15ad3a7
Show file tree
Hide file tree
Showing 16 changed files with 9 additions and 23 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
#
FROM quay.io/quarkus/centos-quarkus-maven:graalvm-1.0.0-rc16 as builder

COPY sunix-quarkus-demo /projects/sunix-quarkus-demo
WORKDIR /projects/sunix-quarkus-demo
COPY hello-quarkus /projects/hello-quarkus
WORKDIR /projects/hello-quarkus
RUN mvn package -Pnative

FROM registry.fedoraproject.org/fedora-minimal as runtime
WORKDIR /work/
COPY --from=builder /projects/sunix-quarkus-demo/target/sunix-quarkus-demo-1.0-SNAPSHOT-runner /work/application
COPY --from=builder /projects/hello-quarkus/target/hello-quarkus-1.0-SNAPSHOT-runner /work/application
RUN chmod 775 /work
EXPOSE 8080
CMD ["./application", "-Dquarkus.http.host=0.0.0.0"]
24 changes: 5 additions & 19 deletions devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,40 +58,26 @@ commands:
- type: exec
command: pkill java; mvn compile quarkus:dev
component: quarkus-builder
workdir: /projects/che-quarkus-demo/sunix-quarkus-demo

- name: pkill java
actions:
- type: exec
command: pkill java
component: quarkus-builder
workdir: /projects/che-quarkus-demo/hello-quarkus

- name: package
actions:
- type: exec
command: mvn package
component: quarkus-builder
workdir: /projects/che-quarkus-demo/sunix-quarkus-demo
workdir: /projects/che-quarkus-demo/hello-quarkus

- name: package -Pnative
actions:
- type: exec
command: mvn package -Pnative
component: quarkus-builder
workdir: /projects/che-quarkus-demo/sunix-quarkus-demo
workdir: /projects/che-quarkus-demo/hello-quarkus

- name: start native
actions:
- type: exec
command: ./sunix-quarkus-demo-1.0-SNAPSHOT-runner -Dquarkus.http.host=0.0.0.0 & echo $!> /tmp/quarkus.pid ; wait `cat /tmp/quarkus.pid`
component: quarkus-runner
workdir: /projects/che-quarkus-demo/sunix-quarkus-demo/target

- name: stop native
actions:
- type: exec
command: >
kill `cat /tmp/quarkus.pid`;
command: ./hello-quarkus-1.0-SNAPSHOT-runner -Dquarkus.http.host=0.0.0.0
component: quarkus-runner
workdir: /projects/che-quarkus-demo/sunix-quarkus-demo/target
workdir: /projects/che-quarkus-demo/hello-quarkus/target

File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion sunix-quarkus-demo/pom.xml → hello-quarkus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.sunix</groupId>
<artifactId>sunix-quarkus-demo</artifactId>
<artifactId>hello-quarkus</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<surefire-plugin.version>2.22.0</surefire-plugin.version>
Expand Down

0 comments on commit 15ad3a7

Please sign in to comment.