From 70de54216554a6f382ad0529bd4fe46835e6b5b8 Mon Sep 17 00:00:00 2001
From: Michal Rostecki <michal.rostecki@allegrogroup.com>
Date: Fri, 26 Jun 2015 20:16:54 +0200
Subject: [PATCH] Add base image for Ubuntu

Minimal base image with Ubuntu Cloud Archive repository.
More dependencies may be added during implementing the
other images.

NOTE: To build this image with proper name:

./build --prefix ubuntu-binary-

You can also configure the prefix globally:

cat >> .buildconf << EOF
PREFIX=ubuntu-binary-
EOF

Partially implements: blueprint install-from-ubuntu

Change-Id: I66bf97b508b740f8db49ed6217c6fefe5de1637e
---
 docker/ubuntu/binary/base/Dockerfile       | 15 +++++++++++++++
 docker/ubuntu/binary/base/build            |  1 +
 docker/ubuntu/binary/base/kolla-common.sh  |  1 +
 docker/ubuntu/binary/base/service_hosts.sh |  1 +
 4 files changed, 18 insertions(+)
 create mode 100644 docker/ubuntu/binary/base/Dockerfile
 create mode 120000 docker/ubuntu/binary/base/build
 create mode 120000 docker/ubuntu/binary/base/kolla-common.sh
 create mode 120000 docker/ubuntu/binary/base/service_hosts.sh

diff --git a/docker/ubuntu/binary/base/Dockerfile b/docker/ubuntu/binary/base/Dockerfile
new file mode 100644
index 000000000..56dbe6cb3
--- /dev/null
+++ b/docker/ubuntu/binary/base/Dockerfile
@@ -0,0 +1,15 @@
+FROM ubuntu:trusty
+MAINTAINER Kolla Project (https://launchpad.net/kolla)
+
+RUN apt-get update \
+    && apt-get install -y software-properties-common \
+    && add-apt-repository cloud-archive:kilo \
+    && apt-get update \
+    && apt-get upgrade -y \
+    && apt-get dist-upgrade -y \
+    && apt-get install -y \
+        crudini \
+        openssl \
+    && apt-get clean
+
+COPY service_hosts.sh kolla-common.sh /opt/kolla/
diff --git a/docker/ubuntu/binary/base/build b/docker/ubuntu/binary/base/build
new file mode 120000
index 000000000..8d652f7ee
--- /dev/null
+++ b/docker/ubuntu/binary/base/build
@@ -0,0 +1 @@
+../../../../tools/build-docker-image
\ No newline at end of file
diff --git a/docker/ubuntu/binary/base/kolla-common.sh b/docker/ubuntu/binary/base/kolla-common.sh
new file mode 120000
index 000000000..c265c62f7
--- /dev/null
+++ b/docker/ubuntu/binary/base/kolla-common.sh
@@ -0,0 +1 @@
+../../../common/base/kolla-common.sh
\ No newline at end of file
diff --git a/docker/ubuntu/binary/base/service_hosts.sh b/docker/ubuntu/binary/base/service_hosts.sh
new file mode 120000
index 000000000..06e045440
--- /dev/null
+++ b/docker/ubuntu/binary/base/service_hosts.sh
@@ -0,0 +1 @@
+../../../common/base/service_hosts.sh
\ No newline at end of file
-- 
GitLab