aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authordyh <dengyuanhong@chinamobile.com>2021-09-01 16:48:46 +0800
committerdyh <dengyuanhong@chinamobile.com>2021-09-01 16:49:01 +0800
commita80234714a7a4c06c29f8e7237a197576f8137ea (patch)
tree4f77d979089ff9a940c4af20cc4bca13959b33f3 /docker
parent864fda4cd04f9c60df3c9b4bcfb2d673cc2ac355 (diff)
use redis:6.2.5-alpine3.14 as base image
Change-Id: I661c6f2911c9b5bfc925cf7070dd79075d4e9218 Issue-ID: VFC-1875 Signed-off-by: dyh <dengyuanhong@chinamobile.com>
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile3
-rw-r--r--docker/docker-env-config.sh10
2 files changed, 6 insertions, 7 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 4ce2049..11c2ac5 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,4 +1,4 @@
-FROM ubuntu:14.04
+FROM redis:6.2.5-alpine3.14
ARG HTTP_PROXY=${HTTP_PROXY}
ARG HTTPS_PROXY=${HTTPS_PROXY}
@@ -15,4 +15,3 @@ EXPOSE 6379
USER onap
WORKDIR /service
-CMD ["redis-server"]
diff --git a/docker/docker-env-config.sh b/docker/docker-env-config.sh
index d2ea727..b731ad6 100644
--- a/docker/docker-env-config.sh
+++ b/docker/docker-env-config.sh
@@ -3,12 +3,12 @@
add_user(){
useradd onap
- chown onap:onap -R /service
+ chown onap:onap -R /service
}
install_sf(){
- apt-get update
+ apt-get update
apt-get install -y redis-server
}
@@ -20,6 +20,6 @@ clean_sf_cache(){
}
add_user
-install_sf
-wait
-clean_sf_cache
+# install_sf
+# wait
+# clean_sf_cache