add docker-based build and run

This commit is contained in:
Christopher A. Mosher 2015-07-11 23:45:54 -04:00
parent 5c247a06c0
commit e1221a4a3b
3 changed files with 73 additions and 0 deletions

48
Dockerfile Normal file
View File

@ -0,0 +1,48 @@
FROM ubuntu
MAINTAINER Christopher A. Mosher <cmosher01@gmail.com>
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

5
docker-compose.yml Normal file
View File

@ -0,0 +1,5 @@
---
epple2:
build: .
ports:
- "5900:5900"

20
supervisord.conf Normal file
View File

@ -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