-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
60 lines (49 loc) · 1.99 KB
/
Dockerfile
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
#Ubooquity
FROM ubuntu:trusty
MAINTAINER Carlos Hernandez <[email protected]>
# Let the container know that there is no tty
ENV DEBIAN_FRONTEND noninteractive
# Set locale to UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LANG en_US.UTF-8
RUN locale-gen en_US en_US.UTF-8
RUN update-locale LANG=en_US.UTF-8
RUN dpkg-reconfigure locales
# Set user nobody to uid and gid of unRAID, uncomment for unRAID
RUN usermod -u 99 nobody
RUN usermod -g 100 nobody
RUN usermod -s /bin/bash nobody
# Update ubuntu
RUN apt-mark hold initscripts udev plymouth mountall;\
echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/90forceyes;\
echo 'deb http://archive.ubuntu.com/ubuntu trusty main universe restricted' > /etc/apt/sources.list;\
echo 'deb http://archive.ubuntu.com/ubuntu trusty-updates main universe restricted' >> /etc/apt/sources.list;\
apt-get update;\
echo exit 101 > /usr/sbin/policy-rc.d && chmod +x /usr/sbin/policy-rc.d;\
dpkg-divert --local --rename --add /sbin/initctl;\
ln -sf /bin/true /sbin/initctl;\
apt-get -y upgrade && apt-get clean
# Install dependencies
RUN apt-get install -qy --force-yes openjdk-7-jre-headless wget python-pip unzip python-tornado python-zmq python-psutil \
&& apt-get clean
# Install and Configure Circus
RUN pip --no-input install --upgrade pip
RUN pip --no-input install circus;\
pip --no-input install envtpl
RUN mkdir /etc/circus.d /etc/setup.d
# Install Ubooquity
RUN wget http://vaemendis.net/ubooquity/downloads/Ubooquity-1.7.0.zip && unzip Ubooquity-1.7.0.zip -d UbooquityInstall
# Exposed config volume
VOLUME /config
# Add config files
ADD ./files/circus.ini /etc/circus.ini
ADD ./files/start.sh /start.sh
ADD ./files/setup.d/Ubooquity /etc/setup.d/Ubooquity
ADD ./files/circus.d/Ubooquity.ini.tpl /etc/circus.d/Ubooquity.ini.tpl
# change ownership for unRAID
RUN chown -R nobody:users /UbooquityInstall
# Expose default Ubooquity port
EXPOSE 8085
# Make start script executable and default command
RUN chmod +x /start.sh
ENTRYPOINT ["/start.sh"]