Skip to content

Commit 41de8fe

Browse files
committed
ref(database): use ubuntu:14.04 as Dockerfile base image
1 parent 488b3d2 commit 41de8fe

2 files changed

Lines changed: 23 additions & 18 deletions

File tree

database/Dockerfile

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
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 9.3 from postgresql.org repository
5-
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" > /etc/apt/sources.list.d/pgdg.list
6-
RUN wget --quiet --no-check-certificate -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
17+
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" > /etc/apt/sources.list.d/pgdg.list
18+
RUN curl -sk https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
719
RUN apt-get update && apt-get install -yq postgresql-9.3 && /etc/init.d/postgresql stop
820

921
# define the execution environment

database/README.md

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

3-
A PostgreSQL database for use in the [Deis](http://deis.io) open
4-
source PaaS.
3+
A PostgreSQL database 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/database/)
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/database/)
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/database* image inside a vagrant VM
20-
* `make run` installs and starts *deis/database*, 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/database**.
2215

2316
## Environment Variables
2417

0 commit comments

Comments
 (0)