Skip to content

Commit

Permalink
gitpod - add extensions + custom image to get quarkus CLI + contribut…
Browse files Browse the repository at this point in the history
…ing.md
  • Loading branch information
jeanphi-baconnais committed May 9, 2022
1 parent 53e28d1 commit 8cc9a53
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file)
# and commit this file to your remote git repository to share the goodness with others.
image:
file: .gitpod/Dockerfile

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

vscode:
extensions:
- "redhat.java"
- "vscjava.vscode-java-dependency"
- "vscjava.vscode-java-debug"
20 changes: 20 additions & 0 deletions .gitpod/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM gitpod/workspace-full
USER gitpod

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 && \
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'
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ But first, read this page (including the small print at the end).
* [`OutOfMemoryError` while importing](#-outofmemoryerror--while-importing)
* [`package sun.misc does not exist` while building](#-package-sunmisc-does-not-exist--while-building)
* [Formatting](#formatting)
+ [GitPod](#gitpod)
* [Build](#build)
+ [Workflow tips](#workflow-tips)
- [Building all modules of an extension](#building-all-modules-of-an-extension)
Expand Down Expand Up @@ -288,6 +289,11 @@ 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

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.


## Build

* Clone the repository: `git clone https://github.com/quarkusio/quarkus.git`
Expand Down

0 comments on commit 8cc9a53

Please sign in to comment.