From 5983c09585824cb268a38484d7d45eabfab9aa00 Mon Sep 17 00:00:00 2001 From: Johannes Schickling Date: Sat, 31 Jan 2015 18:38:18 +0100 Subject: [PATCH] beanstalkd console --- README.md | 1 + beanstalkd-console/Dockerfile | 8 ++++++++ beanstalkd-console/README.md | 11 +++++++++++ beanstalkd-console/install.sh | 15 +++++++++++++++ 4 files changed, 35 insertions(+) create mode 100644 beanstalkd-console/Dockerfile create mode 100644 beanstalkd-console/README.md create mode 100644 beanstalkd-console/install.sh diff --git a/README.md b/README.md index 3b5b0be..cb63f48 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,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 +* **[Beanstalkd-Console](https://github.com/schickling/dockerfiles/tree/master/beanstalkd-console)** - Admin console for Beanstalk queue server * **[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-console/Dockerfile b/beanstalkd-console/Dockerfile new file mode 100644 index 0000000..728bd68 --- /dev/null +++ b/beanstalkd-console/Dockerfile @@ -0,0 +1,8 @@ +FROM php:5.6 +MAINTAINER Johannes Schickling "schickling.j@gmail.com" + +ADD install.sh install.sh +RUN chmod +x install.sh && ./install.sh && rm install.sh + +EXPOSE 2080 +CMD ["php", "-S", "0.0.0.0:2080", "-t", "/source"] diff --git a/beanstalkd-console/README.md b/beanstalkd-console/README.md new file mode 100644 index 0000000..f340779 --- /dev/null +++ b/beanstalkd-console/README.md @@ -0,0 +1,11 @@ +# beanstalkd-console + +Admin console for Beanstalk queue server + +## Usage + +```sh +$ docker run -d -p 11300:11300 --name beanstalkd schickling/beanstalkd +$ docker run -d -p 2080:2080 --link beanstalkd:beanstalkd schickling/beanstalkd-console +``` + diff --git a/beanstalkd-console/install.sh b/beanstalkd-console/install.sh new file mode 100644 index 0000000..5b1a5f7 --- /dev/null +++ b/beanstalkd-console/install.sh @@ -0,0 +1,15 @@ +#! /bin/bash + +# exit if a command fails +set -e + +# install curl (needed to install rust) +apt-get update && apt-get install -y curl + +# download +mkdir /source +curl -sL https://github.com/ptrofimov/beanstalk_console/archive/master.tar.gz | tar xvz -C /source + +# cleanup package manager +apt-get remove --purge -y curl && apt-get autoclean && apt-get clean +rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*