From 2137e84ab7aba06c7fc15932b21953dfd53e9509 Mon Sep 17 00:00:00 2001 From: Binjie Yang <52876270+zwangsheng@users.noreply.github.com> Date: Wed, 10 Aug 2022 21:03:46 +0800 Subject: [PATCH] add rss version (#316) --- docker/DEPLOY_ON_K8S.md | 6 ++++-- docker/Dockerfile | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docker/DEPLOY_ON_K8S.md b/docker/DEPLOY_ON_K8S.md index 720f1435e..a36f6b721 100644 --- a/docker/DEPLOY_ON_K8S.md +++ b/docker/DEPLOY_ON_K8S.md @@ -4,12 +4,14 @@ RSS is recommended to be deployed on nodes with local disk. Before starting, please make sure local disks on nodes are mounted to specific path. ## [Optional] Build RSS docker image -We have provided a docker image for RSS in helm chart. If you want to build your own RSS image, run docker build with our Dockerfile. +We have provided a docker image for RSS in helm chart. If you want to build your own RSS image with specific version, run docker build with our Dockerfile. ` -docker build -f docker/Dockerfile -t ${your-repo}:${tag} . +docker build -f docker/Dockerfile --build-arg rss_version=0.1.0 -t ${your-repo}:${tag} . ` +You can use `--build-arg rss_version` to indicates the version of RSS currently in use, default value is 0.1.1. + Make sure you have already built RSS, the target file 'rss-${project.version}-bin-release.tgz' is in ${RSS_HOME}. ## Deploy RSS with helm diff --git a/docker/Dockerfile b/docker/Dockerfile index c91ff16fa..09b2fce03 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,5 +1,7 @@ FROM centos:7.6.1810 +ARG rss_version=0.1.1 + RUN yum install -y java-1.8.0-openjdk-devel sshpass openssh-clients vim epel-release bind-utils \ supervisor telnet net-tools procps && \ yum clean all && rm -rf /var/cache/yum @@ -9,4 +11,4 @@ ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/ RUN chmod +x /usr/bin/tini RUN mkdir -p /opt/ -ADD rss-0.1.1-bin-release.tar.gz /opt/ +ADD rss-${rss_version}-bin-release.tar.gz /opt/