Skip to content

Commit

Permalink
GitPod - review - add changes on Dockerfile and quarkus command
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanphi-baconnais committed May 9, 2022
1 parent 8cc9a53 commit 308a4a8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 20 deletions.
3 changes: 2 additions & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ image:
file: .gitpod/Dockerfile

tasks:
- init: ./mvnw install -DskipTests=false
- init: ./mvnw -Dquickly
- name: Quarkus command
openMode: split-right

Expand All @@ -14,3 +14,4 @@ vscode:
- "redhat.java"
- "vscjava.vscode-java-dependency"
- "vscjava.vscode-java-debug"
- "vscjava.vscode-java-pack"
22 changes: 5 additions & 17 deletions .gitpod/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
FROM gitpod/workspace-full
USER gitpod
FROM gitpod/workspace-java-11

ARG JAVA_VERSION="11.0.9.j9-adpt"

# install sdkman
RUN curl -s "https://get.sdkman.io" | bash

RUN bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && \
yes | sdk install jbang && \
RUN bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh && \
sdk install java 11.0.9.j9-adpt && \
sdk use java 11.0.9.j9-adpt && \
yes | sdk install quarkus && \
rm -rf $HOME/.sdkman/archives/* && \
rm -rf $HOME/.sdkman/tmp/* "

# install jbang
RUN bash -c '$HOME/.sdkman/candidates/jbang/current/bin/jbang --version'

RUN bash -c '$HOME/.sdkman/candidates/jbang/current/bin/jbang trust add https://repo1.maven.org/maven2/io/quarkus/quarkus-cli/'

# install quarkus cli
RUN bash -c '$HOME/.sdkman/candidates/jbang/current/bin/jbang app install --fresh --force quarkus@quarkusio'
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ navigate to _Editor_ -> _Code Style_ -> _Java_ -> _Imports_
and set _Class count to use import with '\*'_ to `999`.
Do the same with _Names count to use static import with '\*'_.

### GitPod
### Gitpod

You can also use [GitPod](https://gitpod.io) to contribute without install anything on your computer. Click [here](#https://gitpod.io/https://github.com/quarkusio/quarkus/-/tree/main/) to start a workspace.
You can also use [Gitpod](https://gitpod.io) to contribute without installing anything on your computer. Click [here](https://gitpod.io/#https://github.com/quarkusio/quarkus/-/tree/main/) to start a workspace.


## Build
Expand Down

0 comments on commit 308a4a8

Please sign in to comment.