File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,12 @@ ENV KINESIS_OTP_JAR=/opt/sites/rig/kinesis-client/local-maven-repo/org/erlang/ot
4949# Install Java
5050RUN apk add --no-cache openjdk8-jre
5151
52+ RUN addgroup -S rig -g 1000 && adduser -S rig -G rig --uid 1000
5253WORKDIR /opt/sites/rig
5354COPY --from=elixir-build /opt/sites/rig/_build/prod/rel/rig /opt/sites/rig/
5455COPY --from=java-build opt/sites/rig/kinesis-client /opt/sites/rig/kinesis-client
56+ RUN chown -R rig:rig /opt/sites/rig
57+ USER rig
5558
5659# Proxy
5760EXPOSE 4000
Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ If you want to use local image (either original RIG or your own based on origina
46461. Switch to Minikube context `eval $(minikube docker-env)`
47471. Build your image `docker build -t rig .`
48481. Check `docker images` => new image should be listed there
49- 1. Supply the image name to the [values file](reactive-interaction-gateway/values.yaml) e.g. `repository : rig` (line 8 )
50- 1. Add `imagePullPolicy : Never` under line 10 [values](reactive-interaction-gateway/values.yaml)
49+ 1. Change the image name to `rig` in the [values file](reactive-interaction-gateway/values.yaml) (line 10 )
50+ 1. Change `imagePullPolicy` to ` Never` in the [values file ](reactive-interaction-gateway/values.yaml) (line 12 )
5151
5252
5353# # Start RIG on Kubernetes
Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ If you want to use local image (either original RIG or your own based on origina
46461. Switch to Minikube context `eval $(minikube docker-env)`
47471. Build your image `docker build -t rig .`
48481. Check `docker images` => new image should be listed there
49- 1. Supply image name to `rig_dns.yml` e.g. `image : rig` (line 44 )
50- 1. Add `imagePullPolicy : Never` under line 44 , so K8s won't try to pull local image
49+ 1. Change the image name to `rig` in the `rig_dns.yml` (line 74 )
50+ 1. Add `imagePullPolicy : Never` just below the `image` line , so K8s won't try to pull the official image
5151
5252Start RIG in Minikube :
5353
You can’t perform that action at this time.
0 commit comments