mirror of
https://github.com/cmosher01/Epple-II.git
synced 2025-08-15 08:27:57 +00:00
add docker-based build and run
This commit is contained in:
48
Dockerfile
Normal file
48
Dockerfile
Normal 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
5
docker-compose.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
epple2:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- "5900:5900"
|
20
supervisord.conf
Normal file
20
supervisord.conf
Normal 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
|
Reference in New Issue
Block a user