-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
68 lines (56 loc) · 1.71 KB
/
Copy pathDockerfile
File metadata and controls
68 lines (56 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
FROM ubuntu:23.04
MAINTAINER "SoloAD2010@yandex.ru"
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y apt-cacher-ng supervisor
RUN sed -i "s|# ForeGround: 0|ForeGround: 1|" /etc/apt-cacher-ng/acng.conf
VOLUME ["/var/cache/apt-cacher-ng"]
#supervisor configuration
RUN mkdir -p /var/log/supervisor/
RUN sed -i "s|^logfile=.*|logfile=/var/log/supervisor/supervisord.log ;|" /etc/supervisor/supervisord.conf
RUN cat > /etc/supervisor/conf.d/apt-cacher-ng.conf <<EOF
[program:apt-cacher-ng]
priority=10
directory=/etc/apt-cacher-ng/
command=/usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng/
user=root
autostart=true
autorestart=true
stopsignal=QUIT
stdout_logfile=/var/log/supervisor/%(program_name)s.log
stderr_logfile=/var/log/supervisor/%(program_name)s.log
EOF
EXPOSE 3142
## python-server
RUN apt-get install -y python3 python3-pip python-is-python3 libffi-dev
RUN pip install devpi-server devpi-web --break-system-packages
EXPOSE 3143
VOLUME /root/.devpi
## Ruby-server
RUN apt-get install -y ruby rubygems
RUN gem install geminabox
RUN mkdir /geminabox && cd /geminabox && mkdir data
RUN cat > /geminabox/config.ru <<EOF
require "rubygems"
require "geminabox"
Geminabox.rubygems_proxy = true
Geminabox.data = "./data"
Geminabox.allow_remote_failure = true
run Geminabox::Server
EOF
RUN cat > /etc/supervisor/conf.d/geminabox.conf <<EOF
[program:geminabox]
priority=10
directory=/geminabox
command=rackup
user=root
autostart=true
autorestart=true
stopsignal=QUIT
stdout_logfile=/var/log/supervisor/%(program_name)s.log
stderr_logfile=/var/log/supervisor/%(program_name)s.log
EOF
VOLUME /geminabox/data
EXPOSE 9292
COPY ./entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]