Skip to content

Commit

Permalink
separate commands and add install pyyaml==5.3.1 before install docker…
Browse files Browse the repository at this point in the history
…-compose

The issue doesn't occur with a lower version of PyYaml (5.3.1) that is still supported by docker-compose. So a workaround would be:

pip install pyyaml==5.3.1
then:
pip install docker-compose

see:

docker/compose#11168 (comment)
  • Loading branch information
tabkram committed Nov 20, 2023
1 parent d47d853 commit 3e6eedf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
build-args: |
NODE_VERSION=${{ matrix.node_version }}
Expand Down
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ RUN apk update
RUN apk upgrade --available
RUN apk add --no-cache curl wget zip tar python3 py3-pip git openssl openssh-client jq
RUN apk add --no-cache bash tar gzip openrc yarn ansible
RUN pip3 install --upgrade pip docker-compose yq --ignore-installed distlib
RUN pip3 install --upgrade pip --ignore-installed distlib
RUN pip3 install --upgrade yq --ignore-installed distlib
# https://github.com/docker/compose/issues/11168#issuecomment-1800362132
RUN pip install pyyaml==5.3.1
RUN pip3 install --upgrade --no-cache-dir docker-compose
RUN rm -rf /var/cache/apk/*
RUN ansible --version

Expand Down

0 comments on commit 3e6eedf

Please sign in to comment.