Skip to content

Commit 37b0c4c

Browse files
meysholdtona-agent
andcommitted
Add Gitpod Classic configuration
Co-authored-by: Ona <no-reply@ona.com>
1 parent f75a88e commit 37b0c4c

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed

.gitpod.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Not actually used by the devcontainer, but it is used by gitpod
2+
FROM gitpod/workspace-full
3+
4+
ARG JAVA_VERSION=17.0.7-ms
5+
RUN bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh && sdk install java $JAVA_VERSION && sdk use java $JAVA_VERSION"

.gitpod.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
1-
image:
2-
file: ./.devcontainer/Dockerfile
1+
image:
2+
file: .gitpod.Dockerfile
3+
34
tasks:
4-
- before: sudo usermod -a -G sdkman gitpod && sudo usermod -a -G nvm gitpod && sudo chown -R gitpod /usr/local/sdkman /usr/local/share/nvm
5-
- init: ./mvnw install
5+
- init: ./mvnw clean install -U -DskipTests
6+
command: ./mvnw spring-boot:run
7+
name: Run PetClinic app
8+
9+
ports:
10+
- port: 8080
11+
onOpen: open-preview
12+
613
vscode:
714
extensions:
8-
- vscjava.vscode-java-pack
9-
- redhat.vscode-xml
15+
- pivotal.vscode-spring-boot
16+
- vscjava.vscode-java-pack
17+
18+
jetbrains:
19+
intellij:
20+
plugins:
21+
- com.haulmont.jpab
22+
prebuilds:
23+
version: both

0 commit comments

Comments
 (0)