From 24c2879b5572a2ce28e2f621f2fbb86d41153bdc Mon Sep 17 00:00:00 2001 From: Luiz Gonzaga dos Santos Filho Date: Tue, 6 Jun 2017 16:50:23 +0200 Subject: [PATCH] [Docker] Add initial docker files --- .dockerignore | 4 ++++ Dockerfile | 54 ++++++++++++++++++++++++++++++++++++++++++++++ docker-compose.yml | 8 +++++++ 3 files changed, 66 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..db7ffc5f --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +docker-compose.yml +Dockerfile +bin/fix_macvim_external_display.sh +bin/osx diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..918165fb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,54 @@ +FROM ubuntu:16.04 +LABEL maintainer="Luiz Filho " + +# Let the container know that there is no tty +ENV DEBIAN_FRONTEND noninteractive +ENV TERM xterm-256color + +# Bootstrapping packages needed for installation +RUN \ + apt-get update && \ + apt-get install -yqq \ + locales \ + lsb-release \ + software-properties-common && \ + apt-get clean + +# Set locale to UTF-8 +ENV LANGUAGE en_US.UTF-8 +ENV LANG en_US.UTF-8 +RUN localedef -i en_US -f UTF-8 en_US.UTF-8 && \ + /usr/sbin/update-locale LANG=$LANG + +# Install dependencies +# `universe` is needed for ruby +# `security` is needed for fontconfig and fc-cache +RUN \ + add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe security" && \ + add-apt-repository ppa:aacebedo/fasd && \ + apt-get update && \ + apt-get -yqq install \ + autoconf \ + build-essential \ + curl \ + fasd \ + fontconfig \ + git \ + python \ + python-setuptools \ + python-dev \ + ruby-full \ + sudo \ + tmux \ + vim \ + wget \ + zsh && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + +# Install dotfiles +COPY . /root/.yadr +RUN cd /root/.yadr && rake install + +# Run a zsh session +CMD [ "/bin/zsh" ] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..7b9ba7d3 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +version: "3" +services: + dotfiles: + build: + context: . + image: yadr + volumes: + - ./:/root/.yadr/