Skip to content

Commit

Permalink
dockerfile: moved BIND_DATA_DIR and WEBMIN_DATA_DIR env variables…
Browse files Browse the repository at this point in the history
… to the `entrypoint.sh` script
  • Loading branch information
Sameer Naik committed Jun 15, 2015
1 parent 9e01ec1 commit 3f5d7c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ ENV DATA_DIR=/data \
BIND_USER=bind \
WEBMIN_VERSION=1.740

ENV BIND_DATA_DIR=${DATA_DIR}/bind \
WEBMIN_DATA_DIR=${DATA_DIR}/webmin

RUN rm -rf /etc/apt/apt.conf.d/docker-gzip-indexes \
&& apt-get update \
&& apt-get install -y bind9 perl libnet-ssleay-perl openssl \
Expand Down
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
#!/bin/bash
set -e

# script variables
BIND_DATA_DIR=${DATA_DIR}/bind
WEBMIN_DATA_DIR=${DATA_DIR}/webmin

# configuration variables
WEBMIN_ENABLED=${WEBMIN_ENABLED:-true}

## ...and here we go
chmod 775 ${DATA_DIR}

# create directory for bind config
Expand Down

0 comments on commit 3f5d7c3

Please sign in to comment.