summaryrefslogtreecommitdiffstats
path: root/deployment/Dockerfile
diff options
context:
space:
mode:
authorShashank Kumar Shankar <shashank.kumar.shankar@intel.com>2018-03-15 15:21:15 -0700
committerShashank Kumar Shankar <shashank.kumar.shankar@intel.com>2018-03-16 16:24:27 -0700
commit1f99187b2ec49a132bd82b40bc4cd02d79cbd416 (patch)
treebc8d9cabc08f75be66139b85f9561b1066c89dc3 /deployment/Dockerfile
parentb1be54648978a1c858d2ce1e0701e0552c9296fe (diff)
Add Docker push to nexus support
This patch adds support to push built docker container to Nexus. Change-Id: I9c9d3c01c548c0d3dcfec70f299765f0221379dc Issue-ID: MUSIC-59 Signed-off-by: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com>
Diffstat (limited to 'deployment/Dockerfile')
-rw-r--r--deployment/Dockerfile39
1 files changed, 17 insertions, 22 deletions
diff --git a/deployment/Dockerfile b/deployment/Dockerfile
index 7f6c6d5..e9fe30d 100644
--- a/deployment/Dockerfile
+++ b/deployment/Dockerfile
@@ -1,4 +1,4 @@
-FROM ubuntu:14.04
+FROM alpine:3.7
ARG HTTP_PROXY=${HTTP_PROXY}
ARG HTTPS_PROXY=${HTTPS_PROXY}
@@ -8,18 +8,14 @@ ENV https_proxy $HTTPS_PROXY
ENV CONSUL_IP $CONSUL_IP
ENV CONSUL_VERSION 1.0.6
-# Run Docker build from dkv directory.
-WORKDIR /distributed-kv-store
-
-RUN apt-get update && \
- apt-get install -y build-essential && \
- apt-get install -y realpath && \
- apt-get install -y unzip && \
- apt-get install -y git && \
- apt-get install -y curl && \
- apt-get install -y wget && \
- git clone https://git.onap.org/music/distributed-kv-store
-
+RUN apk update && \
+ apk add g++ && \
+ apk add make && \
+ apk add unzip && \
+ apk add git && \
+ apk add curl && \
+ apk add wget && \
+ apk add --no-cache bash
RUN wget -qO /tmp/consul.zip "https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip" && \
unzip -d /bin /tmp/consul.zip && \
@@ -29,15 +25,14 @@ RUN wget -qO /tmp/consul.zip "https://releases.hashicorp.com/consul/${CONSUL_VER
EXPOSE 8200
EXPOSE 8080
-# Change this when deployment gets merged.
-WORKDIR /distributed-kv-store/distributed-kv-store/deployment/
-ADD ./setup-dependency.sh /distributed-kv-store/distributed-kv-store/deployment/
-ADD ./docker-entrypoint.sh /distributed-kv-store/distributed-kv-store/deployment/
-WORKDIR /distributed-kv-store/distributed-kv-store
-RUN deployment/setup-dependency.sh
+RUN mkdir /dkv_mount_path && \
+ mkdir /dkv_mount_path/consul_data && \
+ mkdir /dkv_mount_path/configs && \
+ mkdir /dkv_mount_path/configs/default
-VOLUME /configs
+WORKDIR /dkv_mount_path
+ADD ./dkv /dkv_mount_path/
+ADD ./docker-entrypoint.sh /dkv_mount_path/
-ENTRYPOINT deployment/docker-entrypoint.sh
-#ENTRYPOINT /bin/bash \ No newline at end of file
+ENTRYPOINT /dkv_mount_path/docker-entrypoint.sh \ No newline at end of file