Skip to content

Commit

Permalink
feat: enable gitpod
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogarfe committed Jun 21, 2024
1 parent b54b2eb commit de01839
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM gitpod/workspace-full

USER gitpod

RUN bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh && \
sdk install java 17.0.9-tem && \
sdk default java 17.0.9-tem"
24 changes: 24 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 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: mvn package -DskipTests=false

vscode:
extensions:
- redhat.java
- vscjava.vscode-java-debug
- vscjava.vscode-maven

# Ports to expose on workspace startup
ports:
- port: 8080
onOpen: open-preview
name: Calculator API
description: Calculator API init
visibility: private
protocol: http

0 comments on commit de01839

Please sign in to comment.