-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
63 lines (43 loc) · 1.66 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
61
62
63
from ubuntu:latest
RUN apt-get update && apt-get upgrade -y
RUN apt-get install sudo curl openssh-server python3 python3-dev nano python3-pip libcupti-dev htop apt-transport-https git -y
RUN apt-get update && apt-get install sshpass apache2 apache2-utils unzip -y
RUN apt-get -y install tzdata && ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
ADD install_telegraf.sh /mnt
RUN bash /mnt/install_telegraf.sh
RUN rm /etc/telegraf/telegraf.conf
ADD telegraf.conf /etc/telegraf/
ADD install_ui5.sh /mnt
RUN rm -rf /var/www/html/*
RUN git clone http://build_bot:NinA91git@gitlab.unifiedneumaier.com:30000/sentient-home/sh-ai.git /var/www/html
RUN bash /mnt/install_ui5.sh
ADD setup_apache.sh /mnt
RUN rm /etc/apache2/sites-enabled/000-default.conf
ADD 000-default.conf /etc/apache2/sites-enabled
RUN bash /mnt/setup_apache.sh
ADD req.txt /mnt
RUN pip3 install --upgrade pip
RUN pip3 install -r /mnt/req.txt
RUN useradd -ms /bin/bash sh
RUN adduser sh sudo
RUN echo sh:shserver | chpasswd
RUN echo root:shserver | chpasswd
RUN rm /usr/local/lib/python3.5/dist-packages/apns.py
ADD apns.py /usr/local/lib/python3.5/dist-packages/
RUN mkdir /etc/sh
USER sh
WORKDIR /home/sh
RUN mkdir sentienthome
RUN mkdir sentienthome/transport
RUN mkdir sentienthome/application
RUN mkdir sentienthome/build
RUN mkdir sentienthome/launcher
RUN mkdir sentienthome/docs
RUN git clone http://build_bot:NinA91git@gitlab.unifiedneumaier.com:30000/sentient-home/sh-launcher.git sentienthome/launcher
USER root
RUN ln -s /etc/sh /home/sh/sentienthome/project
EXPOSE 10001
EXPOSE 10002
EXPOSE 22
EXPOSE 80
ENTRYPOINT service ssh start && service telegraf start && service apache2 start && /bin/bash