This repository was archived by the owner on Oct 16, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +12
-0
lines changed
Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -16,3 +16,4 @@ mysql-deps/mysql-dependencies.zip
1616~$MerrittAdminTool.pptx
1717vendor /
1818consistency-driver /out.txt
19+ UC3-Self-Signed-CA.crt
Original file line number Diff line number Diff line change @@ -45,11 +45,14 @@ phases:
4545 -t ${ECR_REGISTRY}/uc3-mrt-admin-lambda:${DOCKTAG} src-admintool
4646 # use tag or branch for the deployed image
4747 - |
48+ CA_CERT_NAME=UC3-Self-Signed-CA.crt
49+ aws ssm get-parameter --name /uc3/default/uc3_ca/$CA_CERT_NAME --output text --query 'Parameter.Value' > src-colladmin/$CA_CERT_NAME
4850 docker build --quiet --push \
4951 --build-arg ECR_REGISTRY=${ECR_REGISTRY} \
5052 --build-arg COMMITDATE="${COMMITDATE}" \
5153 --build-arg DOCKTAG="${DOCKTAG}" \
5254 -t ${ECR_REGISTRY}/uc3-mrt-colladmin-lambda:${DOCKTAG} src-colladmin
55+ rm src-colladmin/$CA_CERT_NAME
5356
5457 # report results
5558 - mkdir -p reports
Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ COMMITDATE=`date "+local: %Y-%m-%dT%H:%M:%S%z"`
5252COMMITDATE=devserver
5353DOCKTAG=" local: ${DEPLOY_ENV} "
5454
55+ CA_CERT_NAME=UC3-Self-Signed-CA.crt
56+ aws ssm get-parameter --name /uc3/default/uc3_ca/$CA_CERT_NAME --output text --query ' Parameter.Value' > src-colladmin/$CA_CERT_NAME
57+
5558# build the admin tool
5659docker build \
5760 --build-arg ECR_REGISTRY=${ECR_REGISTRY} \
@@ -60,6 +63,8 @@ docker build \
6063 -t ${ECR_IMAGE_TAG} src-colladmin \
6164 || die " Image build failure ${ECR_REGISTRY} /${ECR_IMAGE_TAG} "
6265
66+ rm src-colladmin/$CA_CERT_NAME
67+
6368# aws ecr create-repository --repository-name ${FUNCTNAME}
6469docker push ${ECR_IMAGE_TAG} || die " Image push failure"
6570
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ FROM ${ECR_REGISTRY}/uc3-mrt-admin-common
1212ARG COMMITDATE=''
1313ARG DOCKTAG=''
1414
15+ COPY UC3-Self-Signed-CA.crt /etc/pki/ca-trust/source/anchors/UC3-Self-Signed-CA.crt
16+ RUN /usr/bin/update-ca-trust extract
17+
1518RUN dnf -y update && \
1619 dnf -y install gcc-c++ make tar patch && \
1720 dnf clean all
You can’t perform that action at this time.
0 commit comments