Skip to content

Commit

Permalink
added ca-certs to cron docker
Browse files Browse the repository at this point in the history
  • Loading branch information
moficodes committed May 29, 2020
1 parent 171f1d0 commit d86d7ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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.1
- image: moficodes/ibmcloud-kubernetes-cron:v0.2.2
imagePullPolicy: Always
name: cron
env:
Expand All @@ -41,7 +41,7 @@ spec:
name: cloudant-secret
key: host
- name: TICKER_PERIOD
value: "3600"
value: "10"
- name: SENDGRID_API_KEY
valueFrom:
secretKeyRef:
Expand Down
3 changes: 2 additions & 1 deletion docker/Dockerfile.cron
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM ubuntu:xenial as builder
# echo 'nobody:x:65534:' > /user/group

RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y git curl wget
RUN apt-get install -y git curl wget ca-certificates
RUN wget https://dl.google.com/go/go1.13.3.linux-amd64.tar.gz && \
tar -xvf go1.13.3.linux-amd64.tar.gz && \
mv go /usr/local
Expand All @@ -30,6 +30,7 @@ RUN CGO_ENABLED=0 /usr/local/go/bin/go build \

FROM ubuntu:xenial

COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crtca
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
Expand Down

0 comments on commit d86d7ee

Please sign in to comment.