diff options
author | liangke <lokyse@163.com> | 2018-08-14 10:52:50 +0800 |
---|---|---|
committer | liangke <lokyse@163.com> | 2018-08-14 11:28:34 +0800 |
commit | 19ff343fe30e038f11f353a1101a58331415f8d2 (patch) | |
tree | 397cba47fb4de463adfe38b8f456338a0b047926 /vio/docker | |
parent | 3c6751a1a5300424e6dea0c6c0f714815e338749 (diff) |
Add redis cache to store share data
It's fine to run single redis server on local host.
Cache cluster should be planed in some situation if
we need.
Change-Id: I176445e6918b980368953c8626995c80a4e45c46
Issue-ID: MULTICLOUD-300
Signed-off-by: liangke <lokyse@163.com>
Diffstat (limited to 'vio/docker')
-rw-r--r-- | vio/docker/Dockerfile | 3 | ||||
-rwxr-xr-x | vio/docker/instance-run.sh | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/vio/docker/Dockerfile b/vio/docker/Dockerfile index cf66f18..2e3f30d 100644 --- a/vio/docker/Dockerfile +++ b/vio/docker/Dockerfile @@ -15,7 +15,8 @@ EXPOSE 9004 RUN apt-get update && \ apt-get install -y unzip && \ apt-get install -y curl && \ - apt-get install -y wget + apt-get install -y wget && \ + apt-get install -y redis-server RUN cd /opt/ && \ diff --git a/vio/docker/instance-run.sh b/vio/docker/instance-run.sh index e5c6ec8..6ae160b 100755 --- a/vio/docker/instance-run.sh +++ b/vio/docker/instance-run.sh @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +service redis-server start + cd ./vio ./run.sh |