dev: initial environment

fedora, centos and ubuntu

* fewer layers
* systemd-dev
* basic pieces for building docker everytime
* centos updates
* better automated build
This commit is contained in:
Vincent Batts 2013-12-13 14:23:08 -05:00 committed by Vincent Batts
parent dd61e1eb1a
commit 57c47d0cdc
12 changed files with 288 additions and 0 deletions

20
ubuntu-dev/Dockerfile.in Normal file
View file

@ -0,0 +1,20 @@
FROM FROM_IMAGE
RUN useradd -m -u 1000 -G sudo DEV_USER && \
sed -ri 's/^(%sudo.*)(ALL)$/\1NOPASSWD: \2/' /etc/sudoers && \
apt-get update && \
apt-get install -y \
git \
golang \
mercurial \
bzr \
vim \
sudo \
screen \
python-tox \
keychain && \
apt-get dist-upgrade -y
USER DEV_USER
ENV HOME /home/DEV_USER
WORKDIR /home/DEV_USER
CMD bash -l

26
ubuntu-dev/Makefile Normal file
View file

@ -0,0 +1,26 @@
DOCKER ?= $(shell which docker)
FROM_IMAGE ?= ubuntu
FROM_TAG ?= latest
FROM := $(FROM_IMAGE):$(FROM_TAG)
REGISTRY ?= docker.usersys
NAME ?= $(REGISTRY)/$(USER)/$(FROM_IMAGE)-dev:$(FROM_TAG)
default: build
Dockerfile: Dockerfile.in
m4 --define=DEV_USER=$(USER) --define=FROM_IMAGE=$(FROM) $< > $@
build: .build
.build: Dockerfile .pull
$(DOCKER) build -t $(NAME) . && touch $@
pull: .pull
.pull:
$(DOCKER) pull $(FROM) && touch $@
clean:
rm -rf .build .pull Dockerfile *~

1
ubuntu-dev/from Normal file
View file

@ -0,0 +1 @@
ubuntu:14.04