From 0429704886abc385efefd1216eb42d12667239d2 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Thu, 1 Aug 2024 13:14:56 -0400 Subject: [PATCH 1/2] fix: removes arm64v8 and armv7 platforms from docker since upstream image doesn't seem to support it Signed-off-by: Vincent Biret --- .github/workflows/docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 8177274d1e..0192e65aab 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -36,7 +36,7 @@ jobs: uses: docker/build-push-action@v6.5.0 with: push: true - platforms: linux/amd64,linux/arm64/v8,linux/arm/v7 + platforms: linux/amd64 tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.getversion.outputs.version }} build-args: | VERSION=${{ steps.getversion.outputs.version }} From 3ead773adca2fac934160b3f27296a97256723c3 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Thu, 1 Aug 2024 13:39:57 -0400 Subject: [PATCH 2/2] feat: automatically loads authentication module --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index d2ed4d6adb..def3d25c70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ FROM mcr.microsoft.com/powershell ARG VERSION=latest RUN pwsh -c "if ('${VERSION}' -eq 'latest') { Install-Module Microsoft.Graph -Scope CurrentUser -AllowClobber -Force} else { Install-Module Microsoft.Graph -Scope CurrentUser -AllowClobber -Force -RequiredVersion ${VERSION} }" +RUN pwsh -c "if (!(Test-Path -Path \$PROFILE)) { New-Item -ItemType File -Path \$PROFILE -Force } echo 'Import-Module Microsoft.Graph.Authentication' >> \$PROFILE" LABEL description="# Welcome to Microsoft Graph PowrShell \ To start learning about the module checkout the [getting started documentation](https://docs.microsoft.com/en-us/powershell/microsoftgraph/get-started)" \ No newline at end of file