Skip to content

Commit

Permalink
add gitpod.yml and docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Arashfa0301 authored and Arashfa0301 committed Sep 15, 2022
1 parent cd6e72a commit 4ecb60d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM gitpod/workspace-full-vnc

USER root

RUN sudo apt-get update && sudo apt-get install -y matchbox && sudo apt-get clean && sudo rm -rf /var/cache/apt/* && sudo rm -rf /var/lib/apt/lists/* && sudo rm -rf /tmp/*

USER gitpod

RUN bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh \
&& sdk install java 16.0.1.hs-adpt \
&& sdk default java 16.0.1.hs-adpt"
10 changes: 10 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
image:
file: .gitpod.Dockerfile

tasks:
- init: sdk use java 16.0.1.hs-adpt
command: cd javafx-template; mvn compile

ports:
# used by virtual desktop and vnc, supports JavaFX
- port: 6080

0 comments on commit 4ecb60d

Please sign in to comment.