diff --git a/docker/Dockerfile b/docker/api-cdn/Dockerfile similarity index 69% rename from docker/Dockerfile rename to docker/api-cdn/Dockerfile index fb372064..9cdc2ab0 100644 --- a/docker/Dockerfile +++ b/docker/api-cdn/Dockerfile @@ -1,5 +1,10 @@ -# Ensure you have your private key in the folder where this DockerFile is run from -# and upload your public key to the private Github repo +## +## CDN API +## +## + +# Ensure you have your private key in the folder (named 'docker_rsa') where this DockerFile is run from +# and upload your public key 'docker_rsa.pub' to the private Github repo being cloned FROM ubuntu:14.04 MAINTAINER Amit Gandhi @@ -35,15 +40,8 @@ RUN sudo pip install httplib2>=0.8 RUN sudo pip install -e /home/cdn/. # Set up the configuration files -RUN cp /home/cdn/etc/cdn.conf /etc/cdn.conf -RUN cp /home/cdn/etc/logging.conf /etc/logging.conf - -# Configure Cassandra Storage Driver, and Fastly Provider -RUN sed -i -e"s/cluster = \"localhost\"/cluster = \"0.0.0.0\"/" /etc/cdn.conf -RUN sed -i -e"s/apikey = \"MYAPIKEY\"/apikey = \"deadbeef\"/" /etc/cdn.conf - - -RUN more /etc/cdn.conf +ADD cdn.conf /etc/cdn.conf +ADD logging.conf /etc/logging.conf # Start CDN EXPOSE 8888