commit d5c8458cb4f943ed9fbc344fefc7898669825374 Author: Jens Ahrensfeld Date: Fri May 10 14:17:33 2024 +0200 Initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7e894e4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,28 @@ +# syntax=docker/dockerfile:1 +FROM debian:bookworm as stage0 + +RUN apt-get update +RUN apt-get install -y \ + build-essential \ + git \ + make \ + unzip \ + libjsoncpp-dev \ + libarmadillo-dev \ + libgl-dev \ + libx11-dev libfreetype-dev libxinerama-dev libxcursor-dev + +# ------------------------------------- +FROM stage0 as stage1 +ADD http://vlda-01:3001/jayfield/Rbm.git /repos/Rbm +WORKDIR "/repos/Rbm" +RUN make PRJ=POET +RUN make PRJ=GUI + +# ------------------------------------- +FROM stage1 as stage2 +RUN /usr/bin/echo "alias ll='ls -la'" >> ~/.profile +RUN /usr/bin/echo "echo .profile sourced" >> ~/.profile +COPY app/app.sh /app/ +CMD ["/app/app.sh"] + diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/app/app.sh b/app/app.sh new file mode 100755 index 0000000..064db21 --- /dev/null +++ b/app/app.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +#/repos/Rbm/build/release/poet.elf f +/repos/Rbm/build/release/rbm.elf diff --git a/bash.sh b/bash.sh new file mode 100755 index 0000000..9118e28 --- /dev/null +++ b/bash.sh @@ -0,0 +1,4 @@ +#/bin/bash + +# Run container interactive with X11 +docker container run --rm --net bridge -e DISPLAY=$DISPLAY -it rbm bash --login \ No newline at end of file diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..e969546 --- /dev/null +++ b/run.sh @@ -0,0 +1,4 @@ +#/bin/bash + +# Run container interactive with X11 +docker container run --rm --net bridge -e DISPLAY=$DISPLAY -it rbm \ No newline at end of file