Support zsh shell in config
I have adjusted the config script, so it works on both bash and zsh shells. It would be ncie to also support arm64 platforms, so the warning
! analysis-manager-ui The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s
! pdb-api The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s
! analysis-manager-api The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s
! qc-analysis-api The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s
gets properly suppressed when starting the images on such a machine. This would require dedicated images, though. Which can be done automatically by adding linux/arm64 to the platforms in the Build and push task:
-
name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile.base
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
See for example https://github.com/HEPCompSim/DCSim/blob/main/.github/workflows/github-docker.yaml.
Edited by Maximilian Horzela