diff --git a/README.md b/README.md index 898aa47..3b5b0be 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ Collection of lightweight and ready-to-use docker images ## Images +* **[Beanstalkd](https://github.com/schickling/dockerfiles/tree/master/beanstalkd)** - Lightweight image of the latest beanstalkd version * **[Hugin](https://github.com/schickling/dockerfiles/tree/master/hugin)** - Hugin & Panorama tools * **[Jekyll](https://github.com/schickling/dockerfiles/tree/master/jekyll)** - Lightweight jekyll working environment * **[Latex](https://github.com/schickling/dockerfiles/tree/master/latex)** - Full texlive distribution diff --git a/beanstalkd/Dockerfile b/beanstalkd/Dockerfile new file mode 100644 index 0000000..9da6f34 --- /dev/null +++ b/beanstalkd/Dockerfile @@ -0,0 +1,8 @@ +FROM debian:wheezy +MAINTAINER Johannes Schickling "schickling.j@gmail.com" + +ADD install.sh install.sh +RUN chmod +x install.sh && ./install.sh && rm install.sh + +EXPOSE 11300 +CMD ["beanstalkd", "-p", "11300"] diff --git a/beanstalkd/README.md b/beanstalkd/README.md new file mode 100644 index 0000000..c25242c --- /dev/null +++ b/beanstalkd/README.md @@ -0,0 +1,10 @@ +# rust + +Lightweight image of the latest beanstalkd version + +## Usage + +```sh +$ docker run -d -p 11300:11300 schickling/beanstalkd +``` + diff --git a/beanstalkd/install.sh b/beanstalkd/install.sh new file mode 100644 index 0000000..211e8bb --- /dev/null +++ b/beanstalkd/install.sh @@ -0,0 +1,21 @@ +#! /bin/bash + +# exit if a command fails +set -e + +version="1.10" + +# install curl (needed to install rust) +apt-get update && apt-get install -y curl build-essential + +# download +curl -sL https://github.com/kr/beanstalkd/archive/v$version.tar.gz | tar xvz -C /tmp + +# build and install +cd /tmp/beanstalkd-$version +make +cp beanstalkd /usr/bin + +# cleanup package manager +apt-get remove --purge -y curl build-essential && apt-get autoclean && apt-get clean +rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*