summaryrefslogtreecommitdiffstats
path: root/compass-db/Dockerfile
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2017-11-03 08:43:45 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-11-03 08:43:45 +0000
commit936165548e0cd034ec118e43c1cc925ca2ac8b05 (patch)
treefe0b8740da4351c806da45afc6389e1c628c33cf /compass-db/Dockerfile
parentd143e4895b1674f35738b579eec0704bc50cd5fa (diff)
parent96edb4c56d964b73663c663b7b237e718ca3d4da (diff)
Merge "Add compass-db"
Diffstat (limited to 'compass-db/Dockerfile')
-rw-r--r--compass-db/Dockerfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/compass-db/Dockerfile b/compass-db/Dockerfile
new file mode 100644
index 0000000..a7208a9
--- /dev/null
+++ b/compass-db/Dockerfile
@@ -0,0 +1,12 @@
+FROM ubuntu:trusty
+
+EXPOSE 3306
+
+RUN apt-get update && \
+ DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server && \
+ rm -rf /var/lib/apt/lists/*
+
+COPY entrypoint.sh /sbin/entrypoint.sh
+RUN chmod 755 /sbin/entrypoint.sh
+
+CMD ["/sbin/entrypoint.sh"]