Browse Source

install script

pull/2/head
Johannes Schickling 10 years ago
parent
commit
f0ea1b18ab
  1. 11
      mailcatcher/Dockerfile
  2. 15
      mailcatcher/install.sh

11
mailcatcher/Dockerfile

@ -1,15 +1,8 @@
FROM debian:wheezy FROM debian:wheezy
MAINTAINER Johannes Schickling "schickling.j@gmail.com" MAINTAINER Johannes Schickling "schickling.j@gmail.com"
# install ruby 1.9.1
RUN apt-get update && apt-get install -y ruby ruby-dev build-essential sqlite3 libsqlite3-dev
# install mailcatcher
RUN gem install mailcatcher --no-ri --no-rdoc
# cleanup package manager
RUN apt-get remove --purge -y build-essential ruby-dev libsqlite3-dev && apt-get autoclean && apt-get clean
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD install.sh install.sh
RUN chmod +x install.sh && ./install.sh && rm install.sh
# smtp port # smtp port
EXPOSE 1025 EXPOSE 1025

15
mailcatcher/install.sh

@ -0,0 +1,15 @@
#! /bin/bash
# exit if a command fails
set -e
# install ruby 1.9.1
apt-get update && apt-get install -y ruby ruby-dev build-essential sqlite3 libsqlite3-dev
# install mailcatcher
gem install mailcatcher --no-ri --no-rdoc
# cleanup package manager
apt-get remove --purge -y build-essential ruby-dev libsqlite3-dev && apt-get autoclean && apt-get clean
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Loading…
Cancel
Save