add script that runs JavaFX project in a docker container
This commit is contained in:
1 parent
a3ad4dca69
commit
d77f2b3dea
1 file changed
+1
-1
@@ -7,4 +7,4 @@ docker run -it --rm --privileged --name TennisGame \
|
||||
-v ${XDG_RUNTIME_DIR}/pulse/native:${XDG_RUNTIME_DIR}/pulse/native \
|
||||
-v ~/.config/pulse/cookie:/root/.config/pulse/cookie \
|
||||
-w /usr/src/TennisGame -v "$(pwd)":/usr/src/TennisGame maven:4.0.0-rc-5-eclipse-temurin-25-noble \
|
||||
sh -c "apt update; DEBIAN_FRONTEND=noninteractive apt install libx11-6 xorg pulseaudio -y; mvn clean javafx:run; echo 'To start the game again, run \`mvn javafx:run\`. To exit the Docker container, type \`exit\`.; bash"
|
||||
sh -c "apt update; DEBIAN_FRONTEND=noninteractive apt install libx11-6 xorg pulseaudio -y; mvn clean javafx:run; echo 'To start the game again, run \`mvn javafx:run\`. To exit the Docker container, type \`exit\`.'; bash"
|
||||
Reference in new issue
Block a user