From e1221a4a3b15a017bf688dac6024e21c8e1bcafd Mon Sep 17 00:00:00 2001 From: "Christopher A. Mosher" Date: Sat, 11 Jul 2015 23:45:54 -0400 Subject: [PATCH] add docker-based build and run --- Dockerfile | 48 ++++++++++++++++++++++++++++++++++++++++++++++ docker-compose.yml | 5 +++++ supervisord.conf | 20 +++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml create mode 100644 supervisord.conf diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..888fc38 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,48 @@ +FROM ubuntu + +MAINTAINER Christopher A. Mosher + +RUN apt-get update && \ + apt-get install --no-install-recommends -y \ + autoconf \ + automake \ + build-essential \ + libsdl2-dev \ + supervisor \ + xvfb \ + x11vnc \ + && \ + apt-get clean + +WORKDIR /root/ + +COPY bootstrap ./ + +COPY NEWS ./ +COPY README ./ +COPY AUTHORS ./ +COPY ChangeLog ./ + +COPY configure.ac ./ + +COPY Makefile.am ./ + +COPY src/ ./src/ +COPY conf/ ./conf/ +COPY installer/ ./installer/ +COPY doc/ ./doc/ + +RUN ./bootstrap +RUN ./configure +RUN make +RUN make check +RUN make install + +# supervisor +CMD ["supervisord"] +COPY supervisord.conf /etc/supervisor/conf.d/ + +ENV DISPLAY :0 +ENV SDL_VIDEODRIVER x11 + +EXPOSE 5900 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..39969db --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,5 @@ +--- +epple2: + build: . + ports: + - "5900:5900" diff --git a/supervisord.conf b/supervisord.conf new file mode 100644 index 0000000..c00e113 --- /dev/null +++ b/supervisord.conf @@ -0,0 +1,20 @@ +[supervisord] +nodaemon=true + +[program:Xvfb] +command=Xvfb -screen 0 640x480x24 -ac +stdout_logfile=/dev/stdout +redirect_stderr=true +stdout_logfile_maxbytes=0 + +[program:x11vnc] +command=x11vnc +stdout_logfile=/dev/stdout +redirect_stderr=true +stdout_logfile_maxbytes=0 + +[program:epple2] +command=epple2 +stdout_logfile=/dev/stdout +redirect_stderr=true +stdout_logfile_maxbytes=0