annotate service/tradfri/Dockerfile @ 1272:298948c177ed

docker setup work but i think this is not functional yet Ignore-this: 3a295e302214cb868cb252f0748e2b5b darcs-hash:6c0058fbfe628f36eca0161d17f80363c79b603b
author drewp <drewp@bigasterisk.com>
date Sat, 20 Apr 2019 23:45:51 -0700
parents d9c2b59e760d
children cd77bcbfd522
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1163
fa55bc09b396 tradfri docker update
drewp <drewp@bigasterisk.com>
parents:
diff changeset
1 FROM bang6:5000/base_x86
fa55bc09b396 tradfri docker update
drewp <drewp@bigasterisk.com>
parents:
diff changeset
2
fa55bc09b396 tradfri docker update
drewp <drewp@bigasterisk.com>
parents:
diff changeset
3 WORKDIR /opt
fa55bc09b396 tradfri docker update
drewp <drewp@bigasterisk.com>
parents:
diff changeset
4
1272
298948c177ed docker setup work but i think this is not functional yet
drewp <drewp@bigasterisk.com>
parents: 1169
diff changeset
5 RUN apt-get install -y autoconf automake libtool
298948c177ed docker setup work but i think this is not functional yet
drewp <drewp@bigasterisk.com>
parents: 1169
diff changeset
6 # this is https://github.com/ggravlingen/pytradfri/blob/master/script/install-coap-client.sh
298948c177ed docker setup work but i think this is not functional yet
drewp <drewp@bigasterisk.com>
parents: 1169
diff changeset
7 RUN \
298948c177ed docker setup work but i think this is not functional yet
drewp <drewp@bigasterisk.com>
parents: 1169
diff changeset
8 git clone --depth 1 --recursive -b dtls https://github.com/home-assistant/libcoap.git \
298948c177ed docker setup work but i think this is not functional yet
drewp <drewp@bigasterisk.com>
parents: 1169
diff changeset
9 && cd libcoap \
298948c177ed docker setup work but i think this is not functional yet
drewp <drewp@bigasterisk.com>
parents: 1169
diff changeset
10 && ./autogen.sh \
298948c177ed docker setup work but i think this is not functional yet
drewp <drewp@bigasterisk.com>
parents: 1169
diff changeset
11 && ./configure --disable-documentation --disable-shared --without-debug CFLAGS="-D COAP_DEBUG_FD=stderr" \
298948c177ed docker setup work but i think this is not functional yet
drewp <drewp@bigasterisk.com>
parents: 1169
diff changeset
12 && make \
298948c177ed docker setup work but i think this is not functional yet
drewp <drewp@bigasterisk.com>
parents: 1169
diff changeset
13 && make install
1163
fa55bc09b396 tradfri docker update
drewp <drewp@bigasterisk.com>
parents:
diff changeset
14
1272
298948c177ed docker setup work but i think this is not functional yet
drewp <drewp@bigasterisk.com>
parents: 1169
diff changeset
15
298948c177ed docker setup work but i think this is not functional yet
drewp <drewp@bigasterisk.com>
parents: 1169
diff changeset
16 COPY requirements.txt ./
298948c177ed docker setup work but i think this is not functional yet
drewp <drewp@bigasterisk.com>
parents: 1169
diff changeset
17 RUN pip3 install -r requirements.txt
298948c177ed docker setup work but i think this is not functional yet
drewp <drewp@bigasterisk.com>
parents: 1169
diff changeset
18
1169
d9c2b59e760d include UI files in docker image
drewp <drewp@bigasterisk.com>
parents: 1163
diff changeset
19 COPY static static
1163
fa55bc09b396 tradfri docker update
drewp <drewp@bigasterisk.com>
parents:
diff changeset
20 COPY *.py req* ./
fa55bc09b396 tradfri docker update
drewp <drewp@bigasterisk.com>
parents:
diff changeset
21
fa55bc09b396 tradfri docker update
drewp <drewp@bigasterisk.com>
parents:
diff changeset
22 EXPOSE 10009
fa55bc09b396 tradfri docker update
drewp <drewp@bigasterisk.com>
parents:
diff changeset
23
1272
298948c177ed docker setup work but i think this is not functional yet
drewp <drewp@bigasterisk.com>
parents: 1169
diff changeset
24 CMD [ "python3", "./tradfri.py" ]