Skip to content

Commit

Permalink
added home dir for user
Browse files Browse the repository at this point in the history
  • Loading branch information
moficodes committed May 29, 2020
1 parent 7d8f1c9 commit 5e25a02
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/cron-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
run: cron
spec:
containers:
- image: moficodes/ibmcloud-kubernetes-cron:v0.2.3
- image: moficodes/ibmcloud-kubernetes-cron:v0.2.4
imagePullPolicy: Always
name: cron
env:
Expand All @@ -41,7 +41,7 @@ spec:
name: cloudant-secret
key: host
- name: TICKER_PERIOD
value: "3600"
value: "60"
- name: SENDGRID_API_KEY
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion config/web-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
run: admin
spec:
containers:
- image: moficodes/ibmcloud-kubernetes-admin:v0.2.1
- image: moficodes/ibmcloud-kubernetes-admin:v0.2.4
imagePullPolicy: Always
name: kubeadmin
env:
Expand Down
4 changes: 3 additions & 1 deletion docker/Dockerfile.cron
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ COPY --from=builder /usr/bin/git /usr/bin/git
COPY --from=builder /usr/local/bin/ibmcloud /usr/local/bin/ibmcloud
COPY --from=builder /app /app

RUN useradd appuser
COPY templates/ templates/

RUN useradd -U -m appuser

# Switch to 'appuser'
USER appuser
Expand Down

0 comments on commit 5e25a02

Please sign in to comment.