-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (32 loc) · 1.42 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
FROM resin/rpi-raspbian
MAINTAINER [email protected]
ENV SHELL_ROOT_PASSWORD Mjeedom96
RUN apt-get update && apt-get install -y wget openssh-server supervisor mysql-client
RUN echo "root:${SHELL_ROOT_PASSWORD}" | chpasswd && \
sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \
sed -i 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' /etc/pam.d/sshd
RUN mkdir -p /var/run/sshd /var/log/supervisor
RUN rm /etc/motd
ADD install/motd /etc/motd
RUN rm /root/.bashrc
ADD install/bashrc /root/.bashrc
ADD install/OS_specific/Docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ADD https://raw.githubusercontent.com/jeedom/core/master/install/install.sh /root/install_docker.sh
RUN chmod +x /root/install_docker.sh
RUN /root/install_docker.sh -s 1;exit 0
RUN /root/install_docker.sh -s 2;exit 0
RUN /root/install_docker.sh -s 4;exit 0
RUN /root/install_docker.sh -s 5;exit 0
RUN /root/install_docker.sh -s 7;exit 0
RUN /root/install_docker.sh -s 10;exit 0
# For Openzwave
ADD openzwave/resources/install_apt.sh /root/openzwave_install.sh
RUN chmod +x /root/openzwave_install.sh
ADD openzwave/resources/python-openzwave /root/python-openzwave
RUN /root/openzwave_install.sh || echo "openzwave installé"
RUN rm -f /root/openzwave_install.sh
# Lancement
ADD install/OS_specific/Docker/init.sh /root/init.sh
RUN chmod +x /root/init.sh
CMD ["/root/init.sh"]
EXPOSE 22 80