summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorStamatis Katsaounis <mokats@intracom-telecom.com>2018-10-18 14:56:16 +0300
committerStamatis Katsaounis <mokats@intracom-telecom.com>2018-10-18 13:22:34 +0000
commit6bc9c1e7f0391304c954c0635e7485b433ee2cf1 (patch)
tree37d7c350acd3151eaeb92745450031c43fcd6dba /docker
parentc05e2986e658d9892c9d65203a1e2a785c68bf27 (diff)
Make uploaded company logos persistentovp-2.0.0
JIRA: DOVETAIL-741 This patch make uploaded company logos from administrator persistent by saving them to a permanent docker volume, mounted to a specific path inside api container. Change-Id: I0b0ef66cc2b3761863a2f58da0196d302d4b5ade Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile.api3
-rw-r--r--docker/docker-compose.yml2
2 files changed, 4 insertions, 1 deletions
diff --git a/docker/Dockerfile.api b/docker/Dockerfile.api
index 4840739..19bde76 100644
--- a/docker/Dockerfile.api
+++ b/docker/Dockerfile.api
@@ -53,7 +53,8 @@ RUN git config --global http.sslVerify false && \
git clone https://gerrit.opnfv.org/gerrit/dovetail-webportal $HOME/testapi && \
cd $HOME/testapi && \
git checkout -f $BRANCH && \
- mkdir -p $HOME/testapi/logs/api
+ mkdir -p $HOME/testapi/logs/api && \
+ mkdir -p $HOME/testapi/media/companies
WORKDIR $HOME/testapi
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index c4bb0c4..12278c2 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -41,6 +41,7 @@ services:
- config.env
volumes:
- cvp-testapi-logs:/home/testapi/logs
+ - cvp-company-logos:/home/testapi/media/companies
ports:
- "8011:8011"
nginx:
@@ -56,4 +57,5 @@ services:
volumes:
cvp-db:
+ cvp-company-logos:
cvp-testapi-logs: