Public Repository

Last pushed: 6 months ago
Short Description
My Ubuntu configurations
Full Description

FROM ubuntu:latest

Set the env variable DEBIAN_FRONTEND to noninteractive

ENV DEBIAN_FRONTEND noninteractive

Set locale (fix the locale warnings)

ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

Add PPAs

RUN apt-get update
RUN apt-get install -y software-properties-common

Upgrade and install essentials

RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y astyle curl git gcc gdb
RUN apt-get install -y language-pack-en
RUN apt-get install -y make man mercurial nano
RUN apt-get install -y openjdk-8-jdk openssh-server
RUN apt-get install -y pypy python python-pip sudo tree ufw
RUN apt-get install -y vim vim-gui-common vim-runtime wget xsel

Install pip packages

RUN pip install -U setuptools virtualenv

Reconfigure locales

RUN locale-gen en_US.UTF-8
RUN dpkg-reconfigure locales

Create a non-root user

RUN useradd --system --create-home --user-group --uid 1000 --shell /bin/bash tgomes95
RUN echo 'tgomes95:passwd' | chpasswd

Add sudo to the non-root user

RUN adduser tgomes95 sudo

Install dotfiles

RUN hg clone https://tgomes95@bitbucket.org/tgomes95/dotfiles /tmp/dotfiles
RUN hg clone https://tgomes95@bitbucket.org/tgomes95/ubuntu /tmp/ubuntu

RUN cat /tmp/ubuntu/dotfiles/bashrc >> /home/tgomes95/.bashrc

RUN mv /tmp/ubuntu/dotfiles/astylerc /home/tgomes95/.astylerc
RUN mv /tmp/ubuntu/dotfiles/bash_aliases /home/tgomes95/.bash_aliases
RUN mv /tmp/dotfiles/gitconfig /home/tgomes95/.gitconfig
RUN mv /tmp/dotfiles/hgrc /home/tgomes95/.hgrc

Install scripts

RUN hg clone https://tgomes95@bitbucket.org/tgomes95/scripts /home/tgomes95/.bin
RUN rm -rf /home/tgomes95/.bin/.hg
RUN rm -rf /home/tgomes95/.bin/.hgignore
RUN rm -f /home/tgomes95/.bin/install

Clean

RUN rm -rf /tmp/*
RUN apt-get autoclean && apt-get autoremove -y

Set default user and workdir

USER tgomes95
WORKDIR /home/tgomes95

Docker Pull Command
Owner
tgomes95

Comments (0)