/
Dockerfile
133 lines (115 loc) · 8.24 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
FROM bibi21000/janitoo_base
MAINTAINER bibi21000 <bibi21000@gmail.com>
RUN cat /etc/issue
RUN env
RUN /sbin/ip addr
COPY docker/supervisord-tests.conf /etc/supervisor/
COPY docker/supervisor-tests.conf.d/ /etc/supervisor/janitoo-tests.conf.d/
COPY docker/supervisord.conf /etc/supervisor/
COPY docker/supervisor.conf.d/ /etc/supervisor/janitoo.conf.d/
COPY docker/auto.sh /root/
COPY docker/rescue.sh /root/
COPY docker/halt.sh /root/
COPY docker/shutdown.sh /root/
WORKDIR /opt/janitoo/src
RUN apt-get update && apt-get dist-upgrade -y && \
pip install coveralls && \
apt-get clean && \
rm -Rf /root/.cache/* 2>/dev/null||true && \
rm -Rf /tmp/* 2>/dev/null||true
RUN make clone module=janitoo_factory_exts && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make clone module=janitoo_hostsensor && \
make clone module=janitoo_hostsensor_psutil && \
make clone module=janitoo_hostsensor_lmsensor && \
make docker-deps module=janitoo_hostsensor && \
apt-get clean && rm -Rf /tmp/*|| true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make clone module=janitoo_nut && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make clone module=janitoo_bluez && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make clone module=janitoo_roomba && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_raspberry.git" && make module=janitoo_raspberry docker-deps && make module=janitoo_raspberry develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_hostsensor_raspberry.git" && make module=janitoo_hostsensor_raspberry docker-deps && make module=janitoo_hostsensor_raspberry develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_raspberry_1wire.git" && make module=janitoo_raspberry_1wire docker-deps && make module=janitoo_raspberry_1wire develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_raspberry_camera.git" && make module=janitoo_raspberry_camera docker-deps && make module=janitoo_raspberry_camera develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_raspberry_dht.git" && make module=janitoo_raspberry_dht docker-deps && make module=janitoo_raspberry_dht develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_raspberry_gpio.git" && make module=janitoo_raspberry_gpio docker-deps && make module=janitoo_raspberry_gpio develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_raspberry_i2c.git" && make module=janitoo_raspberry_i2c docker-deps && make module=janitoo_raspberry_i2c develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_raspberry_i2c_ads1x15.git" && make module=janitoo_raspberry_i2c_ads1x15 docker-deps && make module=janitoo_raspberry_i2c_ads1x15 develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_raspberry_i2c_bmp.git" && make module=janitoo_raspberry_i2c_bmp docker-deps && make module=janitoo_raspberry_i2c_bmp develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_raspberry_i2c_bno055.git" && make module=janitoo_raspberry_i2c_bno055 docker-deps && make module=janitoo_raspberry_i2c_bno055 develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_raspberry_i2c_drv8830.git" && make module=janitoo_raspberry_i2c_ds8830 docker-deps && make module=janitoo_raspberry_i2c_drv8830 develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_raspberry_i2c_ds1307.git" && make module=janitoo_raspberry_i2c_ds1307 docker-deps && make module=janitoo_raspberry_i2c_ds1307 develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_raspberry_i2c_ht16k33.git" && make module=janitoo_raspberry_i2c_ht16k33 docker-deps && make module=janitoo_raspberry_i2c_ht16k33 develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_raspberry_i2c_max9744.git" && make module=janitoo_raspberry_i2c_max9744 docker-deps && make module=janitoo_raspberry_i2c_max9744 develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_raspberry_i2c_pca9685.git" && make module=janitoo_raspberry_i2c_pca9685 docker-deps && make module=janitoo_raspberry_i2c_pca9685 develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_raspberry_i2c_vcnl40xx.git" && make module=janitoo_raspberry_i2c_vcnl40xx docker-deps && make module=janitoo_raspberry_i2c_vcnl40xx develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_raspberry_spi.git" && make module=janitoo_raspberry_spi docker-deps && make module=janitoo_raspberry_spi develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_raspberry_spi_ili9341.git" && make module=janitoo_raspberry_spi_ili9341 docker-deps && make module=janitoo_raspberry_spi_ili9341 develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_raspberry_spi_pn532.git" && make module=janitoo_raspberry_spi_pn532 docker-deps && make module=janitoo_raspberry_spi_pn532 develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_raspberry_lcdchar.git" && make module=janitoo_raspberry_lcdchar docker-deps && make module=janitoo_raspberry_lcdchar develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_raspberry_sound.git" && make module=janitoo_raspberry_sound docker-deps && make module=janitoo_raspberry_sound develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_raspberry_fishtank.git" && \
make module=janitoo_raspberry_fishtank develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_lapinoo.git" && \
make module=janitoo_lapinoo develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
RUN make pull repo="https://github.com/bibi21000/janitoo_solarpump.git" && \
make module=janitoo_solarpump develop && \
apt-get clean && rm -Rf /tmp/*||true && \
[ -d /root/.cache ] && rm -Rf /root/.cache/*
# comment VOLUME ["/root/.ssh/", "/etc/nginx/conf.d/", "/var/log", "/etc/mosquitto/", "/var/lib/mosquitto/", "/etc/supervisor/", "/opt/janitoo/home/", "/opt/janitoo/etc/"]
# comment EXPOSE 22 1883 5005 8080 8085 8086 9001
CMD ["/root/auto.sh"]