Skip to content

Commit 39d8818

Browse files
committed
316 - updated readme and add privilegies to aws dockerfile
1 parent 9585f53 commit 39d8818

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

aws.dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,12 @@ ENV KINESIS_OTP_JAR=/opt/sites/rig/kinesis-client/local-maven-repo/org/erlang/ot
4949
# Install Java
5050
RUN apk add --no-cache openjdk8-jre
5151

52+
RUN addgroup -S rig -g 1000 && adduser -S rig -G rig --uid 1000
5253
WORKDIR /opt/sites/rig
5354
COPY --from=elixir-build /opt/sites/rig/_build/prod/rel/rig /opt/sites/rig/
5455
COPY --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
5760
EXPOSE 4000

deployment/helm/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ If you want to use local image (either original RIG or your own based on origina
4646
1. Switch to Minikube context `eval $(minikube docker-env)`
4747
1. Build your image `docker build -t rig .`
4848
1. 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

deployment/k8s/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ If you want to use local image (either original RIG or your own based on origina
4646
1. Switch to Minikube context `eval $(minikube docker-env)`
4747
1. Build your image `docker build -t rig .`
4848
1. 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

5252
Start RIG in Minikube:
5353

0 commit comments

Comments
 (0)