Skip to content

Commit 50befcd

Browse files
[ADMINAPI-1318] - Adding the build and push of an image for arm processors (#375)
* Enhance Docker build process by adding QEMU setup and specifying target platforms * Update base image and dependencies in Dockerfile for improved compatibility * Fix base image version in Dockerfile to ensure compatibility * Fix string quotes in coverage arguments for consistency in RunTests function * Revert $coverageArgs * Refactor RunTests function to streamline coverage argument handling * Replace wget with curl for health check in ods_inspect.sh for improved reliability * Update OdsApi version --------- Co-authored-by: Juan Agudelo <[email protected]>
1 parent d73b29c commit 50befcd

18 files changed

+42
-62
lines changed

.github/workflows/api-e2e-mssql-multitenant.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,6 @@ jobs:
6565
chmod +x './E2E Tests/V2/gh-action-setup/admin_inspect.sh'
6666
'./E2E Tests/V2/gh-action-setup/admin_inspect.sh' adminapi
6767
68-
- name: Verify Ods containers are running
69-
run: |
70-
chmod +x './E2E Tests/V2/gh-action-setup/ods_inspect.sh'
71-
'./E2E Tests/V2/gh-action-setup/ods_inspect.sh' ed-fi-ods-api
72-
7368
- name: Setup node
7469
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
7570
with:

.github/workflows/api-e2e-mssql-singletenant.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,6 @@ jobs:
6565
chmod +x './E2E Tests/V2/gh-action-setup/admin_inspect.sh'
6666
'./E2E Tests/V2/gh-action-setup/admin_inspect.sh' adminapi
6767
68-
- name: Verify Ods containers are running
69-
run: |
70-
chmod +x './E2E Tests/V2/gh-action-setup/ods_inspect.sh'
71-
'./E2E Tests/V2/gh-action-setup/ods_inspect.sh' ed-fi-ods-api
72-
7368
- name: Setup node
7469
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
7570
with:

.github/workflows/api-e2e-pgsql-multitenant.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,6 @@ jobs:
6565
chmod +x './E2E Tests/V2/gh-action-setup/admin_inspect.sh'
6666
'./E2E Tests/V2/gh-action-setup/admin_inspect.sh' adminapi
6767
68-
- name: Verify Ods containers are running
69-
run: |
70-
chmod +x './E2E Tests/V2/gh-action-setup/ods_inspect.sh'
71-
'./E2E Tests/V2/gh-action-setup/ods_inspect.sh' ed-fi-ods-api
72-
7368
- name: Setup node
7469
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
7570
with:

.github/workflows/api-e2e-pgsql-singletenant.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ jobs:
6161
chmod +x './E2E Tests/V2/gh-action-setup/admin_inspect.sh'
6262
'./E2E Tests/V2/gh-action-setup/admin_inspect.sh' adminapi
6363
64-
- name: Verify Ods containers are running
65-
run: |
66-
chmod +x './E2E Tests/V2/gh-action-setup/ods_inspect.sh'
67-
'./E2E Tests/V2/gh-action-setup/ods_inspect.sh' ed-fi-ods-api
68-
6964
- name: Setup node
7065
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
7166
with:

.github/workflows/on-prerelease.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,15 +345,18 @@ jobs:
345345
echo "DBTAGS=$DBTAGS" >> $GITHUB_OUTPUT
346346
echo "VERSION=$SEMVERSION" >> $GITHUB_OUTPUT
347347
348-
- name: Set up Docker Buildx
349-
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
350-
351348
- name: Log in to Docker Hub
352349
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
353350
with:
354351
username: ${{ env.DOCKER_USERNAME }}
355352
password: ${{ env.DOCKER_HUB_TOKEN }}
356353

354+
- name: Set up QEMU
355+
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
356+
357+
- name: Set up Docker Buildx
358+
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
359+
357360
- name: Extract metadata (tags, labels) for admin api image
358361
id: metaapi
359362
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1
@@ -366,6 +369,7 @@ jobs:
366369
context: "{{defaultContext}}:Docker"
367370
cache-from: type=registry,ref=${{ env.IMAGE_NAME }}:pre
368371
cache-to: type=inline
372+
platforms: linux/amd64,linux/arm64
369373
build-args: |
370374
VERSION=${{ steps.prepare-tags.outputs.VERSION }}
371375
ADMIN_API_VERSION=${{ steps.prepare-tags.outputs.VERSION }}

Application/EdFi.Ods.AdminApi/E2E Tests/V2/gh-action-setup/.automation_api_idp_mssql.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ KEYCLOAK_ADMIN_CONSOLE_REALM=edfi-admin-console
4444

4545

4646
# Ods Api
47-
TAG=7.1
47+
TAG=7.3
4848
API_HEALTHCHECK_TEST="curl -f http://localhost/health"
49-
ODS_CONNECTION_STRING_ENCRYPTION_KEY=6VDn8N4Kj7vYAmnMrFUgdXTqOaTiGZJc9Kf2TFFDHAA=
49+
ODS_CONNECTION_STRING_ENCRYPTION_KEY=6VDn8N4Kj7vYAmnMrFUgdXTqOaTiGZJc9Kf2TFFDHAA=

Application/EdFi.Ods.AdminApi/E2E Tests/V2/gh-action-setup/.automation_api_idp_pgsql.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ KEYCLOAK_ADMIN_CONSOLE_REALM=edfi-admin-console
4444

4545

4646
# Ods Api
47-
TAG=7.1
47+
TAG=7.3
4848
API_HEALTHCHECK_TEST="curl -f http://localhost/health"
49-
ODS_CONNECTION_STRING_ENCRYPTION_KEY=6VDn8N4Kj7vYAmnMrFUgdXTqOaTiGZJc9Kf2TFFDHAA=
49+
ODS_CONNECTION_STRING_ENCRYPTION_KEY=6VDn8N4Kj7vYAmnMrFUgdXTqOaTiGZJc9Kf2TFFDHAA=

Application/EdFi.Ods.AdminApi/E2E Tests/V2/gh-action-setup/.automation_mssql.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ ADMIN_API_HEALTHCHECK_TEST="wget -nv -t1 --spider http://${ADMIN_API_VIRTUAL_NAM
2828

2929

3030
# Ods Api
31-
TAG=7.1
31+
TAG=7.3
3232
API_HEALTHCHECK_TEST="curl -f http://localhost/health"
33-
ODS_CONNECTION_STRING_ENCRYPTION_KEY=6VDn8N4Kj7vYAmnMrFUgdXTqOaTiGZJc9Kf2TFFDHAA=
33+
ODS_CONNECTION_STRING_ENCRYPTION_KEY=6VDn8N4Kj7vYAmnMrFUgdXTqOaTiGZJc9Kf2TFFDHAA=

Application/EdFi.Ods.AdminApi/E2E Tests/V2/gh-action-setup/.automation_pgsql.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ ADMIN_API_HEALTHCHECK_TEST="wget -nv -t1 --spider http://${ADMIN_API_VIRTUAL_NAM
2626

2727

2828
# Ods Api
29-
TAG=7.1
29+
TAG=7.3
3030
API_HEALTHCHECK_TEST="curl -f http://localhost/health"
31-
ODS_CONNECTION_STRING_ENCRYPTION_KEY=6VDn8N4Kj7vYAmnMrFUgdXTqOaTiGZJc9Kf2TFFDHAA=
31+
ODS_CONNECTION_STRING_ENCRYPTION_KEY=6VDn8N4Kj7vYAmnMrFUgdXTqOaTiGZJc9Kf2TFFDHAA=

Application/EdFi.Ods.AdminApi/E2E Tests/V2/gh-action-setup/ods_inspect.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ else
1717
exit 1
1818
fi
1919

20-
status=`wget -nv -t1 --spider -S https://localhost/api/health --no-check-certificate 2>&1|grep "HTTP/"|awk '{print $2}'`
21-
20+
status=`curl -s -o /dev/null -w "%{http_code}" -k https://localhost/api/health`
2221
if [[ $status -eq "200" ]]
2322
then
2423
echo "--- Ods API application is running ---"

0 commit comments

Comments
 (0)