Skip to content

Commit 397f69f

Browse files
committed
Use test nitro-cli in pod
1 parent f51d3c1 commit 397f69f

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/actions/build_eks_docker_image/action.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ runs:
104104
cp -r ./scripts/aws/eks-pod/* ${{ inputs.artifacts_output_dir }}
105105
cp -r ./scripts/aws/syslog-ng/server_al_2023/* ${{ inputs.artifacts_output_dir }}/server_al_2023
106106
cp ./scripts/aws/eks-pod/server_al_2023/syslog-ng-server.conf ${{ inputs.artifacts_output_dir }}/syslog-ng-server.conf
107+
cp ./scripts/aws/pipeline/enclave-cli-1.5.3rc.zip ${{ inputs.artifacts_output_dir }}/enclave-cli-1.5.3rc.zip
107108
ls -l ${{ inputs.artifacts_output_dir }}
108109
109110
- name: Check disk usage

.github/workflows/publish-aws-eks-nitro-enclave-docker.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
steps:
3939
- name: Build Docker Image for EKS Pod
4040
id: build_docker_image_uid
41-
uses: IABTechLab/uid2-operator/.github/actions/build_eks_docker_image@main
41+
uses: IABTechLab/uid2-operator/.github/actions/build_eks_docker_image@tjm-test-aws-custom-eif
4242
with:
4343
identity_scope: uid2
4444
artifacts_output_dir: ${{ env.ARTIFACTS_BASE_OUTPUT_DIR }}/uid2
@@ -63,7 +63,7 @@ jobs:
6363
steps:
6464
- name: Build Docker Image for EKS Pod
6565
id: build_docker_image_euid
66-
uses: IABTechLab/uid2-operator/.github/actions/build_eks_docker_image@main
66+
uses: IABTechLab/uid2-operator/.github/actions/build_eks_docker_image@tjm-test-aws-custom-eif
6767
with:
6868
identity_scope: euid
6969
artifacts_output_dir: ${{ env.ARTIFACTS_BASE_OUTPUT_DIR }}/euid

scripts/aws/eks-pod/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
FROM amazonlinux:2023
2-
RUN dnf check-update && dnf update && dnf install nmap-ncat libxcrypt-compat python3 aws-nitro-enclaves-cli logrotate iproute net-tools python3.11 python3.11-pip shadow-utils -y
2+
RUN dnf check-update && dnf update && dnf install nmap-ncat libxcrypt-compat python3 logrotate iproute net-tools python3.11 python3.11-pip shadow-utils -y
33

44
ARG IVYKIS_RPM="ivykis-0.43-1.amzn2023.x86_64.rpm"
55
ARG LIBNET_RPM="libnet-1.2-2.amzn2023.0.2.x86_64.rpm"
66
ARG PUBKEY="pubkey.gpg"
77
ARG SYSLOG_NG_RPM="syslog-ng-4.7.1.104.gcc5a7d9-1.amzn2023.x86_64.rpm"
88
ARG SYSLOG_NG_LOGROTATE_RPM="syslog-ng-logrotate-4.7.1.104.gcc5a7d9-1.amzn2023.x86_64.rpm"
99

10+
COPY ./enclave-cli-1.5.3rc.zip /home/enclave-cli-1.5.3rc.zip
1011
COPY ./sockd /home/
1112
COPY ./sockd_eks.conf /etc/sockd.conf
1213
COPY ./vsockpx /home
@@ -31,7 +32,12 @@ COPY ./entrypoint.sh /home/
3132
COPY ./uid2operator.eif /home/
3233
COPY ./proxies.host.yaml /home/proxies.host.yaml
3334

34-
RUN chmod +x /home/vsockpx && chmod +x /home/entrypoint.sh && chmod +x /home/sockd
35+
RUN chmod +x /home/vsockpx && chmod +x /home/entrypoint.sh && chmod +x /home/sockd && chmod +rwx /home/enclave-cli-1.5.3rc.zip
36+
37+
RUN unzip /enclave-cli-1.5.3rc.zip -d /home/tmp/
38+
RUN chmod a+rwx /home/tmp/enclave-cli-1.5.3rc/*
39+
RUN dnf install -y /home/tmp/enclave-cli-1.5.3rc/aws-nitro-enclaves-cli-1.3.5-0.amzn2023.x86_64.rpm
40+
RUN dnf install -y /home/tmp/enclave-cli-1.5.3rc/aws-nitro-enclaves-cli-devel-1.3.5-0.amzn2023.x86_64.rpm
3541

3642
COPY ./app.py /home/config-server/
3743
COPY ./requirements.txt /home/config-server/

0 commit comments

Comments
 (0)