Skip to content

Commit

Permalink
Fixing apk install failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
Caesonia committed Jan 31, 2024
1 parent 0e39ecd commit cf41bcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Dockerfile.multi
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

FROM golang:alpine3.19 AS builder

RUN apk update && \
apk add --no-cache upx make build-base bash git openssl
#RUN apk update && apk add --no-cache upx make build-base bash git openssl

ENV CGO_ENABLED=0 \
GOOS=linux \
Expand All @@ -21,6 +20,8 @@ RUN go build -o ./main

FROM golang:alpine3.19

RUN apk update && apk add --no-cache upx make build-base bash git openssl

WORKDIR /app

COPY --from=builder /app/main /app/main
Expand Down
4 changes: 1 addition & 3 deletions cfn/cfn-registry-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ Resources:
- Condition: SUCCESS
ContainerName: Nsqadmin_ResolvConf_InitContainer
Essential: true
Image: 997427182289.dkr.ecr.us-east-1.amazonaws.com/docker-hub/aptrust/registry:7c2bb05-nat-removal
Image: 997427182289.dkr.ecr.us-east-1.amazonaws.com/docker-hub/aptrust/registry:0e39ecd-nat-removal
Secrets:
- Name: APT_ENV
ValueFrom: !Sub 'arn:aws:ssm:us-east-1:997427182289:parameter/${Envn}/REGISTRY/APT_ENV'
Expand Down Expand Up @@ -265,8 +265,6 @@ Resources:
ValueFrom: !Sub 'arn:aws:ssm:us-east-1:997427182289:parameter/${Envn}/REGISTRY/AWS_SES_PWD'
- Name: AWS_SES_USER
ValueFrom: !Sub 'arn:aws:ssm:us-east-1:997427182289:parameter/${Envn}/REGISTRY/AWS_SES_USER'
- Name: BATCH_DELETION_KEY
ValueFrom: !Sub 'arn:aws:ssm:us-east-1:997427182289:parameter/${Envn}/REGISTRY/BATCH_DELETION_KEY'
LinuxParameters: {}
LogConfiguration:
LogDriver: awslogs
Expand Down

0 comments on commit cf41bcc

Please sign in to comment.