-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* omg this actually works Signed-off-by: Pierre Fenoll <[email protected]> * this is a pretty big image though Signed-off-by: Pierre Fenoll <[email protected]> * docker-dev.sh Signed-off-by: Pierre Fenoll <[email protected]> * fix Dockerfile.s to point on latest working debian Signed-off-by: Pierre Fenoll <[email protected]> * README.md Signed-off-by: Pierre Fenoll <[email protected]>
- Loading branch information
Showing
6 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM debian:9 | ||
WORKDIR /app | ||
COPY . $PWD | ||
RUN set -x \ | ||
&& apt update \ | ||
&& apt install -y \ | ||
x11-apps \ | ||
libglew-dev libglm-dev libglfw3-dev pkg-config \ | ||
libc++-dev clang cmake | ||
RUN set -x \ | ||
&& ./configure \ | ||
&& cd build \ | ||
&& make -j7 | ||
ENV DISPLAY :0 | ||
ENTRYPOINT ["/app/build/voidstar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM debian:9 | ||
RUN set -x \ | ||
&& apt update \ | ||
&& apt install -y \ | ||
x11-apps \ | ||
libglew-dev libglm-dev libglfw3-dev pkg-config \ | ||
libc++-dev clang cmake | ||
ENV DISPLAY :0 | ||
WORKDIR /app | ||
ENTRYPOINT ["/bin/sh", "-c", "set -x && ./configure && cd build && make -j7 && ./voidstar ./voidstar ../data/*"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
#$ docker build -f Dockerfile.dev -t voiddev . | ||
|
||
# https://stackoverflow.com/a/25168483/1418165 | ||
|
||
XSOCK=/tmp/.X11-unix | ||
XAUTH=/tmp/.docker.xauth | ||
xauth nlist :0 | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge - | ||
|
||
docker run --rm -it \ | ||
-v $XSOCK:$XSOCK \ | ||
-v $XAUTH:$XAUTH \ | ||
-v /dev/input \ | ||
-v "$PWD":/app \ | ||
-e XAUTHORITY=$XAUTH \ | ||
voiddev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
# https://stackoverflow.com/a/25168483/1418165 | ||
|
||
XSOCK=/tmp/.X11-unix | ||
XAUTH=/tmp/.docker.xauth | ||
xauth nlist :0 | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge - | ||
|
||
docker run --rm -it \ | ||
-v $XSOCK:$XSOCK \ | ||
-v $XAUTH:$XAUTH \ | ||
-v /dev/input \ | ||
-e XAUTHORITY=$XAUTH \ | ||
void \ | ||
/app/build/voidstar |