diff --git a/.env b/.env new file mode 120000 index 0000000..32b2ac6 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +dash.conf \ No newline at end of file diff --git a/.gitignore b/.gitignore index 0a181b7..57c8f72 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ run*.sh +dash.conf diff --git a/dash.conf_example b/dash.conf_example new file mode 100644 index 0000000..03f02c7 --- /dev/null +++ b/dash.conf_example @@ -0,0 +1,2 @@ +DASH_MAC_ADDRESS= +DASH_URL_CALLBACK= diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..5227fd9 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,17 @@ +version: '2.1' + +services: + dashlisten-mail: + build: ./ + mem_limit: 512m + restart: always + environment: + - DASH_MAC_ADDRESS=${DASH_MAC_ADDRESS} + - DASH_URL_CALLBACK=${DASH_URL_CALLBACK} + tmpfs: + - /tmp + inetwork_mode: host + cap_add: + - NET_ADMIN + - NET_RAW + diff --git a/docker/Dockerfile b/docker/Dockerfile index 80e3d53..48fcb19 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -6,7 +6,7 @@ MAINTAINER Pascal Gollor ENV DASH_MAC_ADDRESS -ENV URL_CALLBACK +ENV DASH_URL_CALLBACK USER root RUN apk updage @@ -20,6 +20,3 @@ USER root ADD dash-listen.py /home/amzn-dash/dash-listen.py CMD python /home/amzn-dash/dash-listen.py - -# NOTE: To run this, you must link against the host networking stack -# docker run --net=host -e DASH_MAC_ADDRESS= -e URL_CALLBACK=http://url/to/callback dash-listen