gansbrest / hodor

Small utility to streamline dev process with Docker on OS X (Boot2Docker/Docker Machine) and Linux
MIT License
154 stars 11 forks source link

Dockerfile for gansbrest/fs-base #3

Closed amjibaly closed 10 years ago

amjibaly commented 10 years ago

It seems like this script runs the gansbrest/fs-base image but I can't find any source or Dockerfile for that. Can you please provide it?

gansbrest commented 10 years ago

Good point. I will setup automatic builds some time in the future, here are the Dockerfiles:

fs-base:

FROM gansbrest/ubuntu-base

RUN apt-get install unison

CMD ["unison", "-socket", "45678"]

EXPOSE 45678

ubuntu-base

FROM ubuntu:14.04

# Install.
RUN \
  sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
  apt-get update && \
  apt-get -y upgrade && \
  apt-get install -y build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev && \
  apt-get install -y software-properties-common && \
  apt-get install -y byobu curl git htop man unzip vim wget

# Install Ruby 2.1.2
RUN \
  cd /tmp && \
  wget http://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz && \
  tar -xvzf ruby-2.1.2.tar.gz && \
  cd ruby-2.1.2/ && \
  ./configure --prefix=/usr/local && \
  make && \
  make install && \
  cd /tmp && \
  rm -rf ruby-*

# Set environment variables.
ENV HOME /root

# Install Supervisor.
RUN \
  apt-get install -y supervisor && \
  sed -i 's/^\(\[supervisord\]\)$/\1\nnodaemon=true/' /etc/supervisor/supervisord.conf

# Define mountable directories.
VOLUME ["/root", "/data", "/etc/supervisor/conf.d"]

# Define working directory.
WORKDIR /etc/supervisor/conf.d

# Configure locales
RUN locale-gen en_US.UTF-8  
ENV LANG en_US.UTF-8  
ENV LANGUAGE en_US:en  
ENV LC_ALL en_US.UTF-8

# Define default command.
CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]
amjibaly commented 10 years ago

Nice! Thanks for the quick response.