add rss version (#316)

This commit is contained in:
Binjie Yang 2022-08-10 21:03:46 +08:00 committed by GitHub
parent 8ececd60a6
commit 2137e84ab7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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/