Skip to content

Commit 9674063

Browse files
committed
Remove docker runner container image
1 parent 196a960 commit 9674063

9 files changed

+113
-22
lines changed

.github/workflows/java-ec2-asg-e2e-test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ env:
3333
jobs:
3434
java-ec2-asg:
3535
runs-on: ubuntu-latest
36-
container:
37-
image: public.ecr.aws/h6o3z5z9/aws-application-signals-test-framework-workflow-container:latest
3836
steps:
3937
- name: Generate testing id
4038
run: echo TESTING_ID="${{ github.job }}-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}" >> $GITHUB_ENV
@@ -95,6 +93,13 @@ jobs:
9593
echo GET_CW_AGENT_RPM_COMMAND="wget -O cw-agent.rpm https://amazoncloudwatch-agent-${{ env.E2E_TEST_AWS_REGION }}.s3.${{ env.E2E_TEST_AWS_REGION }}.amazonaws.com/amazon_linux/amd64/latest/amazon-cloudwatch-agent.rpm" >> $GITHUB_ENV
9694
fi
9795
96+
- name: Set up terraform
97+
uses: ./.github/workflows/actions/execute_and_retry
98+
with:
99+
command: "wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg"
100+
post-command: 'echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
101+
&& sudo apt update && sudo apt install terraform'
102+
98103
- name: Initiate Terraform
99104
uses: ./.github/workflows/actions/execute_and_retry
100105
with:

.github/workflows/java-ec2-default-e2e-test.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ env:
3434
jobs:
3535
java-ec2-default:
3636
runs-on: ubuntu-latest
37-
container:
38-
image: public.ecr.aws/h6o3z5z9/aws-application-signals-test-framework-workflow-container:latest
3937
steps:
4038
- name: Generate testing id
4139
run: echo TESTING_ID="${{ github.job }}-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}" >> $GITHUB_ENV
@@ -95,6 +93,14 @@ jobs:
9593
else
9694
echo GET_CW_AGENT_RPM_COMMAND="wget -O cw-agent.rpm https://amazoncloudwatch-agent-${{ inputs.aws-region }}.s3.${{ inputs.aws-region }}.amazonaws.com/amazon_linux/amd64/latest/amazon-cloudwatch-agent.rpm" >> $GITHUB_ENV
9795
fi
96+
97+
98+
- name: Set up terraform
99+
uses: ./.github/workflows/actions/execute_and_retry
100+
with:
101+
command: "wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg"
102+
post-command: 'echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
103+
&& sudo apt update && sudo apt install terraform'
98104

99105
- name: Initiate Terraform
100106
uses: ./.github/workflows/actions/execute_and_retry

.github/workflows/java-eks-e2e-test.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ env:
4747
jobs:
4848
java-eks:
4949
runs-on: ubuntu-latest
50-
container:
51-
image: public.ecr.aws/h6o3z5z9/aws-application-signals-test-framework-workflow-container:latest
5250
steps:
5351
- name: Generate testing id and sample app namespace
5452
run: |
@@ -111,9 +109,24 @@ jobs:
111109
role-to-assume: arn:aws:iam::${{ env.ACCOUNT_ID }}:role/${{ env.E2E_TEST_ROLE_NAME }}
112110
aws-region: ${{ env.E2E_TEST_AWS_REGION }}
113111

112+
# local directory to store the kubernetes config
113+
- name: Create kubeconfig directory
114+
run: mkdir -p ${{ github.workspace }}/.kube
115+
116+
- name: Set KUBECONFIG environment variable
117+
run: echo KUBECONFIG="${{ github.workspace }}/.kube/config" >> $GITHUB_ENV
118+
114119
- name: Set up kubeconfig
115120
run: aws eks update-kubeconfig --name ${{ env.CLUSTER_NAME }} --region ${{ env.E2E_TEST_AWS_REGION }}
116121

122+
- name: Download and install eksctl
123+
uses: ./.github/workflows/actions/execute_and_retry
124+
with:
125+
pre-command: 'mkdir ${{ github.workspace }}/eksctl'
126+
command: 'curl -sLO "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_Linux_amd64.tar.gz"
127+
&& tar -xzf eksctl_Linux_amd64.tar.gz -C ${{ github.workspace }}/eksctl && rm eksctl_Linux_amd64.tar.gz'
128+
cleanup: 'rm -f eksctl_Linux_amd64.tar.gz'
129+
117130
- name: Add eksctl to Github Path
118131
run: |
119132
echo "${{ github.workspace }}/eksctl" >> $GITHUB_PATH
@@ -137,6 +150,13 @@ jobs:
137150
--region ${{ env.E2E_TEST_AWS_REGION }}"
138151
sleep_time: 60
139152

153+
- name: Set up terraform
154+
uses: ./.github/workflows/actions/execute_and_retry
155+
with:
156+
command: "wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg"
157+
post-command: 'echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
158+
&& sudo apt update && sudo apt install terraform'
159+
140160
- name: Get RDS database cluster metadata
141161
continue-on-error: true
142162
run: |

.github/workflows/java-k8s-e2e-test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ env:
4444
jobs:
4545
java-k8s:
4646
runs-on: ubuntu-latest
47-
container:
48-
image: public.ecr.aws/h6o3z5z9/aws-application-signals-test-framework-workflow-container:latest
4947
steps:
5048
- name: Generate testing id
5149
run: echo TESTING_ID="${{ env.E2E_TEST_AWS_REGION }}-${{ github.run_id }}-${{ github.run_number }}" >> $GITHUB_ENV
@@ -95,6 +93,13 @@ jobs:
9593
aws s3api put-object --bucket aws-appsignals-sample-app-prod-${{ env.E2E_TEST_AWS_REGION }} --key frontend-service-depl-${{ github.event.repository.name }}.yaml --body frontend-service-depl.yaml
9694
aws s3api put-object --bucket aws-appsignals-sample-app-prod-${{ env.E2E_TEST_AWS_REGION }} --key remote-service-depl-${{ github.event.repository.name }}.yaml --body remote-service-depl.yaml
9795
96+
- name: Set up terraform
97+
uses: ./.github/workflows/actions/execute_and_retry
98+
with:
99+
command: "wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg"
100+
post-command: 'echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
101+
&& sudo apt update && sudo apt install terraform'
102+
98103
- name: Initiate Terraform
99104
uses: ./.github/workflows/actions/execute_and_retry
100105
with:

.github/workflows/java-metric-limiter-e2e-test.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ env:
4949
jobs:
5050
java-metric-limiter:
5151
runs-on: ubuntu-latest
52-
container:
53-
image: public.ecr.aws/h6o3z5z9/aws-application-signals-test-framework-workflow-container:latest
5452
steps:
5553
- name: Generate testing id and sample app namespace
5654
run: |
@@ -104,7 +102,7 @@ jobs:
104102
ACCOUNT_ID, region-account/${{ env.E2E_TEST_AWS_REGION }}
105103
JAVA_MAIN_SAMPLE_APP_IMAGE, e2e-test/java-main-sample-app-image
106104
JAVA_REMOTE_SAMPLE_APP_IMAGE, e2e-test/java-remote-sample-app-image
107-
105+
108106
# If the workflow is running as a canary, then we want to log in to the aws account in the appropriate region
109107
- name: Configure AWS Credentials
110108
if: ${{ github.event.repository.name == 'aws-application-signals-test-framework' }}
@@ -113,9 +111,24 @@ jobs:
113111
role-to-assume: arn:aws:iam::${{ env.ACCOUNT_ID }}:role/${{ env.E2E_TEST_ROLE_NAME }}
114112
aws-region: ${{ env.E2E_TEST_AWS_REGION }}
115113

114+
# local directory to store the kubernetes config
115+
- name: Create kubeconfig directory
116+
run: mkdir -p ${{ github.workspace }}/.kube
117+
118+
- name: Set KUBECONFIG environment variable
119+
run: echo KUBECONFIG="${{ github.workspace }}/.kube/config" >> $GITHUB_ENV
120+
116121
- name: Set up kubeconfig
117122
run: aws eks update-kubeconfig --name ${{ env.CLUSTER_NAME }} --region ${{ env.E2E_TEST_AWS_REGION }}
118123

124+
- name: Download and install eksctl
125+
uses: ./.github/workflows/actions/execute_and_retry
126+
with:
127+
pre-command: 'mkdir ${{ github.workspace }}/eksctl'
128+
command: 'curl -sLO "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_Linux_amd64.tar.gz"
129+
&& tar -xzf eksctl_Linux_amd64.tar.gz -C ${{ github.workspace }}/eksctl && rm eksctl_Linux_amd64.tar.gz'
130+
cleanup: 'rm -f eksctl_Linux_amd64.tar.gz'
131+
119132
- name: Add eksctl to Github Path
120133
run: |
121134
echo "${{ github.workspace }}/eksctl" >> $GITHUB_PATH
@@ -139,6 +152,13 @@ jobs:
139152
--region ${{ env.E2E_TEST_AWS_REGION }}"
140153
sleep_time: 60
141154

155+
- name: Set up terraform
156+
uses: ./.github/workflows/actions/execute_and_retry
157+
with:
158+
command: "wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg"
159+
post-command: 'echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
160+
&& sudo apt update && sudo apt install terraform'
161+
142162
- name: Initiate Terraform
143163
uses: ./.github/workflows/actions/execute_and_retry
144164
with:

.github/workflows/python-ec2-asg-e2e-test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ env:
3737
jobs:
3838
python-ec2-asg:
3939
runs-on: ubuntu-latest
40-
container:
41-
image: public.ecr.aws/h6o3z5z9/aws-application-signals-test-framework-workflow-container:latest
4240
steps:
4341
- name: Generate testing id
4442
run: echo TESTING_ID="${{ github.job }}-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}" >> $GITHUB_ENV
@@ -99,6 +97,13 @@ jobs:
9997
echo GET_CW_AGENT_RPM_COMMAND="wget -O cw-agent.rpm https://amazoncloudwatch-agent-${{ env.E2E_TEST_AWS_REGION }}.s3.${{ env.E2E_TEST_AWS_REGION }}.amazonaws.com/amazon_linux/amd64/latest/amazon-cloudwatch-agent.rpm" >> $GITHUB_ENV
10098
fi
10199
100+
- name: Set up terraform
101+
uses: ./.github/workflows/actions/execute_and_retry
102+
with:
103+
command: "wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg"
104+
post-command: 'echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
105+
&& sudo apt update && sudo apt install terraform'
106+
102107
- name: Initiate Terraform
103108
uses: ./.github/workflows/actions/execute_and_retry
104109
with:

.github/workflows/python-ec2-default-e2e-test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ env:
3737
jobs:
3838
python-ec2-default:
3939
runs-on: ubuntu-latest
40-
container:
41-
image: public.ecr.aws/h6o3z5z9/aws-application-signals-test-framework-workflow-container:latest
4240
steps:
4341
- uses: actions/checkout@v4
4442
with:
@@ -98,6 +96,13 @@ jobs:
9896
echo GET_CW_AGENT_RPM_COMMAND="wget -O cw-agent.rpm https://amazoncloudwatch-agent-${{ env.E2E_TEST_AWS_REGION }}.s3.${{ env.E2E_TEST_AWS_REGION }}.amazonaws.com/amazon_linux/amd64/latest/amazon-cloudwatch-agent.rpm" >> $GITHUB_ENV
9997
fi
10098
99+
- name: Set up terraform
100+
uses: ./.github/workflows/actions/execute_and_retry
101+
with:
102+
command: "wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg"
103+
post-command: 'echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
104+
&& sudo apt update && sudo apt install terraform'
105+
101106
- name: Initiate Terraform
102107
uses: ./.github/workflows/actions/execute_and_retry
103108
with:

.github/workflows/python-eks-e2e-test.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ env:
4747
jobs:
4848
python-eks:
4949
runs-on: ubuntu-latest
50-
container:
51-
image: public.ecr.aws/h6o3z5z9/aws-application-signals-test-framework-workflow-container:latest
5250
steps:
5351
- name: Generate testing id and python sample app namespace
5452
run: |
@@ -112,8 +110,23 @@ jobs:
112110
role-to-assume: arn:aws:iam::${{ env.ACCOUNT_ID }}:role/${{ env.E2E_TEST_ROLE_NAME }}
113111
aws-region: ${{ env.E2E_TEST_AWS_REGION }}
114112

113+
# local directory to store the kubernetes config
114+
- name: Create kubeconfig directory
115+
run: mkdir -p ${{ github.workspace }}/.kube
116+
117+
- name: Set KUBECONFIG environment variable
118+
run: echo KUBECONFIG="${{ github.workspace }}/.kube/config" >> $GITHUB_ENV
119+
115120
- name: Set up kubeconfig
116-
run: aws eks update-kubeconfig --name ${{ inputs.test-cluster-name }} --region ${{ env.E2E_TEST_AWS_REGION }}
121+
run: aws eks update-kubeconfig --name ${{ env.CLUSTER_NAME }} --region ${{ env.E2E_TEST_AWS_REGION }}
122+
123+
- name: Download and install eksctl
124+
uses: ./.github/workflows/actions/execute_and_retry
125+
with:
126+
pre-command: 'mkdir ${{ github.workspace }}/eksctl'
127+
command: 'curl -sLO "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_Linux_amd64.tar.gz"
128+
&& tar -xzf eksctl_Linux_amd64.tar.gz -C ${{ github.workspace }}/eksctl && rm eksctl_Linux_amd64.tar.gz'
129+
cleanup: 'rm -f eksctl_Linux_amd64.tar.gz'
117130

118131
- name: Add eksctl to Github Path
119132
run: |
@@ -126,18 +139,25 @@ jobs:
126139
command: "eksctl create iamserviceaccount \
127140
--name service-account-${{ env.TESTING_ID }} \
128141
--namespace ${{ env.SAMPLE_APP_NAMESPACE }} \
129-
--cluster ${{ inputs.test-cluster-name }} \
142+
--cluster ${{ env.CLUSTER_NAME }} \
130143
--role-name eks-s3-access-${{ env.TESTING_ID }} \
131144
--attach-policy-arn arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess \
132145
--region ${{ env.E2E_TEST_AWS_REGION }} \
133146
--approve"
134147
cleanup: "eksctl delete iamserviceaccount \
135148
--name service-account-${{ env.TESTING_ID }} \
136149
--namespace ${{ env.SAMPLE_APP_NAMESPACE }} \
137-
--cluster ${{ inputs.test-cluster-name }} \
150+
--cluster ${{ env.CLUSTER_NAME }} \
138151
--region ${{ env.E2E_TEST_AWS_REGION }}"
139152
sleep_time: 60
140153

154+
- name: Set up terraform
155+
uses: ./.github/workflows/actions/execute_and_retry
156+
with:
157+
command: "wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg"
158+
post-command: 'echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
159+
&& sudo apt update && sudo apt install terraform'
160+
141161
- name: Get RDS database cluster metadata
142162
continue-on-error: true
143163
run: |

.github/workflows/python-k8s-e2e-test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ env:
4444
jobs:
4545
python-k8s:
4646
runs-on: ubuntu-latest
47-
container:
48-
image: public.ecr.aws/h6o3z5z9/aws-application-signals-test-framework-workflow-container:latest
4947
steps:
5048
- name: Generate testing id
5149
run: echo TESTING_ID="${{ env.E2E_TEST_AWS_REGION }}-${{ github.run_id }}-${{ github.run_number }}" >> $GITHUB_ENV
@@ -95,6 +93,13 @@ jobs:
9593
aws s3api put-object --bucket aws-appsignals-sample-app-prod-${{ env.E2E_TEST_AWS_REGION }} --key python-frontend-service-depl-${{ github.event.repository.name }}.yaml --body python-frontend-service-depl.yaml
9694
aws s3api put-object --bucket aws-appsignals-sample-app-prod-${{ env.E2E_TEST_AWS_REGION }} --key python-remote-service-depl-${{ github.event.repository.name }}.yaml --body python-remote-service-depl.yaml
9795
96+
- name: Set up terraform
97+
uses: ./.github/workflows/actions/execute_and_retry
98+
with:
99+
command: "wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg"
100+
post-command: 'echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
101+
&& sudo apt update && sudo apt install terraform'
102+
98103
- name: Initiate Terraform
99104
uses: ./.github/workflows/actions/execute_and_retry
100105
with:

0 commit comments

Comments
 (0)