diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2015-10-20 10:27:07 +0200 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2015-10-20 10:27:07 +0200 |
commit | 2e2541dbbc6627396fe503d03dec7dd623839399 (patch) | |
tree | 221158158d4da3df678de112805a6966d4e5fc5f | |
parent | 4e6a8a00bb15680706a739372c1c716729d26c70 (diff) | |
download | pack-2e2541dbbc6627396fe503d03dec7dd623839399.tar.gz |
Correct Redis bind address and expose it
-rwxr-xr-x | bin/build-and-run | 1 | ||||
-rw-r--r-- | docker/Dockerfile | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/bin/build-and-run b/bin/build-and-run index f6323ea..191d052 100755 --- a/bin/build-and-run +++ b/bin/build-and-run @@ -63,5 +63,6 @@ $docker build -t kolab/pack:latest docker/ && \ -p 143:143 \ -p 389:389 \ -p 5000:5000 \ + -p 6379:6379 \ kolab/pack:latest \ ${interactive_opts_suffix} diff --git a/docker/Dockerfile b/docker/Dockerfile index 12319b2..6141fb5 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -13,6 +13,7 @@ RUN yum -y install \ yum -y install \ @fedora-packager \ libffi-devel \ + net-tools \ perl-Data-Dumper \ python-pip \ redis \ @@ -20,6 +21,8 @@ RUN yum -y install \ yum-builddep -y \ python-ldap +RUN sed -r -i -e 's/^bind.*$/bind 0.0.0.0/g' /etc/redis.conf + # Obtain GeoIP-GeoLite-data straight from the source, it is not available # for EPEL 7. WORKDIR /tmp @@ -61,6 +64,6 @@ ENV KADMIN_SETTINGS=/root/pack.git/pack/local_settings.py ADD entrypoint.sh /root/entrypoint.sh RUN chmod 755 /root/entrypoint.sh -EXPOSE 80 143 389 5000 +EXPOSE 80 143 389 5000 6379 ENTRYPOINT /root/entrypoint.sh |