Merge pull request #22 from turbine/docker

Add dockerfile
This commit is contained in:
Rohan Singh committed 2015-07-07 10:31:28 -04:00
commit 68ed0a7dc5
2 files changed
+31

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
FROM debian:jessie
ENV DOCKER_VERSION 1.6.2
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y python-minimal \
&& apt-get clean \
&& rm -rf /var/apt/lists/*
ADD https://get.docker.com/builds/Linux/x86_64/docker-${DOCKER_VERSION} /usr/local/bin/docker
RUN chmod +x /usr/local/bin/docker
ADD docker-gc /docker-gc
VOLUME /var/lib/docker-gc
CMD ["/docker-gc"]
+14
View File
@@ -66,3 +66,17 @@ spotify/cassandra:latest
9681260c3ad5
```
Running as a Docker Image
-------------------------
A Dockerfile is provided as an alternative to a local installation. By default the container will start up, run a single garbage collection, and shut down.
```sh
docker build -t spotify/docker-gc .
```
The docker-gc container requires access to the docker socket in order to function.
```sh
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock spotify/docker-gc
```