Public Repository

Last pushed: 2 years ago
Short Description
super simple resque-web container
Full Description

Example:

docker run -p 5678:5678 --link myapp_redis:redis amirl/resque-web

init-resque-web.sh

    #!/bin/sh
echo "starting resque-web deamon (redis: ${URL:=`echo $REDIS_PORT | cut -d'/' -f 3`})"
resque-web -F -r $URL -o ${HOST:=0.0.0.0} -p ${PORT:=5678} --app-dir ${HOME:=/root}

Dockerfile

# === 1 ===
FROM phusion/passenger-ruby21:0.9.12
MAINTAINER amirl lalosher@gmail.com

# Set correct environment variables.
ENV HOME /root

# Use baseimage-docker's init process.
CMD ["/sbin/my_init"]

# === X ===
# remove SSH
RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh
# TODO: remove Cron jobs

# === X ===
# Install resque-web
RUN gem install resque-web

# === X ===
# Launch resque-web 
RUN mkdir /etc/service/resque-web
ADD init-resque-web.sh /etc/service/resque-web/run
#ADD init-resque-web.sh /etc/my_init.d/


# === X ===
# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Docker Pull Command
Owner
amirl

Comments (0)