Skip to content

Commit 93f26be

Browse files
committed
ref(builder): use ubuntu:14.04 as Dockerfile base image
1 parent 69d9b0b commit 93f26be

2 files changed

Lines changed: 28 additions & 22 deletions

File tree

builder/Dockerfile

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,38 @@
1-
FROM deis/base:latest
2-
MAINTAINER OpDemand <info@opdemand.com>
1+
FROM ubuntu:14.04
2+
3+
ENV DEBIAN_FRONTEND noninteractive
4+
5+
# install common packages
6+
RUN apt-get update && apt-get install -y curl
7+
8+
# install etcdctl
9+
RUN curl -sSL -o /usr/local/bin/etcdctl https://s3-us-west-2.amazonaws.com/opdemand/etcdctl-v0.4.6 \
10+
&& chmod +x /usr/local/bin/etcdctl
11+
12+
# install confd
13+
RUN curl -sSL -o /usr/local/bin/confd https://s3-us-west-2.amazonaws.com/opdemand/confd-v0.5.0-json \
14+
&& chmod +x /usr/local/bin/confd
315

416
# install docker-in-docker
517
RUN echo "deb http://get.docker.io/ubuntu docker main" > /etc/apt/sources.list.d/docker.list
618
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
19+
720
# install builder, docker, and hook dependencies
821
RUN apt-get update && apt-get install -yq \
922
openssh-server git \
1023
aufs-tools iptables lxc \
11-
curl \
1224
lxc-docker-1.2.0
1325

1426
# configure ssh server
1527
RUN rm /etc/ssh/ssh_host_*
1628
RUN dpkg-reconfigure openssh-server
1729
RUN mkdir -p /var/run/sshd
1830

19-
# install recent pip
20-
RUN wget -qO- https://raw.githubusercontent.com/pypa/pip/1.5.5/contrib/get-pip.py | python -
31+
# install pip
32+
RUN curl -sSL https://raw.githubusercontent.com/pypa/pip/1.5.5/contrib/get-pip.py | python -
2133

2234
# install hook dependencies
23-
RUN pip install pyyaml requests
35+
RUN pip install pyyaml==3.11 requests==2.4.1
2436

2537
# install all i18n locales
2638
RUN ln -s /usr/share/i18n/SUPPORTED /var/lib/locales/supported.d/all && locale-gen
@@ -37,8 +49,8 @@ RUN echo "%git ALL=(ALL:ALL) NOPASSWD:/home/git/builder" >> /etc/sudoers
3749

3850
# HACK: import progrium/cedarish as a tarball
3951
# see https://github.com/deis/deis/issues/1027
40-
RUN wget -O /progrium_cedarish.tar --progress=dot:giga \
41-
https://s3-us-west-2.amazonaws.com/opdemand/progrium_cedarish_cedar.tar
52+
RUN curl -#SL -o /progrium_cedarish.tar \
53+
https://s3-us-west-2.amazonaws.com/opdemand/progrium_cedarish_cedar.tar
4254

4355
# define the execution environment
4456
VOLUME /var/lib/docker

builder/README.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,17 @@
11
# Deis Builder
22

3-
A Docker image that builds Docker images, for use in the
4-
[Deis](http://deis.io) open source PaaS.
3+
A Docker image that builds Docker images, for use in the [Deis](http://deis.io/) open source PaaS.
54

6-
[![image](https://d207aa93qlcgug.cloudfront.net/img/icons/framed-icon-checked-repository.svg)](https://index.docker.io/u/deis/builder/)
5+
This Docker image is based on the official
6+
[ubuntu:14.04](https://registry.hub.docker.com/_/ubuntu/) image.
77

8-
[**Trusted Build**](https://index.docker.io/u/deis/builder/)
9-
10-
This Docker image is based on the trusted build
11-
[deis/base](https://index.docker.io/u/deis/base/), which itself is based
12-
on the official [ubuntu:12.04](https://index.docker.io/_/ubuntu/) image.
13-
14-
Please add any issues you find with this software to the
15-
[Deis project](https://github.com/deis/deis/issues).
8+
Please add any [issues](https://github.com/deis/deis/issues) you find with this software to
9+
the [Deis Project](https://github.com/deis/deis).
1610

1711
## Usage
1812

19-
* `make build` builds the *deis/builder* image inside a vagrant VM
20-
* `make run` installs and starts *deis/builder*, then displays log
21-
output from the container
13+
Please consult the [Makefile](Makefile) for current instructions on how to build, test, push,
14+
install, and start **deis/builder**.
2215

2316
## Environment Variables
2417

@@ -29,6 +22,7 @@ Please add any issues you find with this software to the
2922
its configuration (default: */deis/builder*)
3023
* **ETCD_TTL** sets the time-to-live before etcd purges a configuration
3124
value, in seconds (default: *10*)
25+
* **STORAGE_DRIVER** sets the Docker-in-Docker storage driver (default: btrfs)
3226
* **PORT** sets the TCP port on which the builder listens (default: *2222*)
3327

3428
## License

0 commit comments

Comments
 (0)