Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump airplay2 version #668

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

fabienheureux
Copy link
Contributor

@fabienheureux fabienheureux commented Sep 2, 2024

This upgrades Shairport version.

https://github.com/mikebrady/shairport-sync/releases

@fabienheureux fabienheureux force-pushed the feature/upgrade-airplay-2-implementation branch from 1928ade to 58d507f Compare October 26, 2024 12:19
Copy link

A repository maintainer needs to approve this workflow run.

https://github.com/balena-io-experimental/balena-sound/actions/runs/11531725105

Maintainers, please review all commits and react with 👍 to approve or 👎 to reject.

Things to look for: GitHub Actions Security Cheat Sheet

@fabienheureux
Copy link
Contributor Author

@vipulgupta2048 any chance you could approve this PR ?
I tried it on a fleet and it runs without issue.

I had to update the build step as it was failing for me.

Copy link
Member

@vipulgupta2048 vipulgupta2048 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing!

Comment on lines 11 to 13
RUN apk upgrade --no-cache && apk add --no-cache supervisor curl
RUN curl -skL https://raw.githubusercontent.com/balena-io-experimental/audio/master/scripts/alsa-bridge/alpine-setup.sh | sh
RUN apk del curl
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
RUN apk upgrade --no-cache && apk add --no-cache supervisor curl
RUN curl -skL https://raw.githubusercontent.com/balena-io-experimental/audio/master/scripts/alsa-bridge/alpine-setup.sh | sh
RUN apk del curl
RUN apk upgrade --no-cache && apk add --no-cache supervisor curl && \
curl -skL https://raw.githubusercontent.com/balena-io-experimental/audio/master/scripts/alsa-bridge/alpine-setup.sh | sh \
apk del curl

Any reason why these steps can't happen together?

Copy link
Contributor Author

@fabienheureux fabienheureux Oct 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure of the exact reason, but I had issues with building the airplay container without splitting these steps.
It was mostly trial and error...


I tried again with your suggestion and got the error below

Error: The command '/bin/sh -eo pipefail -c apk upgrade --no-cache && apk add --no-cache supervisor curl &&     curl -skL https://raw.githubusercontent.com/balena-io-experimental/audio/master/scripts/alsa-bridge/alpine-setup.sh | sh     apk del curl' returned a non-zero code: 85

I tried again with

RUN apk upgrade --no-cache
RUN apk add --no-cache supervisor curl && \
    curl -skL https://raw.githubusercontent.com/balena-io-experimental/audio/master/scripts/alsa-bridge/alpine-setup.sh | sh \
    apk del curl

And got the error below

[Error]             Some services failed to build:
[Error]               Service: airplay
[Error]                 Error: The command '/bin/sh -eo pipefail -c apk add --no-cache supervisor curl &&     curl -skL https://raw.githubusercontent.com/balena-io-experimental/audio/master/scripts/alsa-bridge/alpine-setup.sh | sh     apk del curl' returned a non-zero code: 2

Finally I tried with :

RUN apk upgrade --no-cache && apk add --no-cache supervisor curl && \
    curl -skL https://raw.githubusercontent.com/balena-io-experimental/audio/master/scripts/alsa-bridge/alpine-setup.sh | sh
RUN apk del curl

And this worked...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just updated the branch

Copy link

A repository maintainer needs to approve this workflow run.

https://github.com/balena-io-experimental/balena-sound/actions/runs/11532141643

Maintainers, please review all commits and react with 👍 to approve or 👎 to reject.

Things to look for: GitHub Actions Security Cheat Sheet

Copy link

A repository maintainer needs to approve this workflow run.

https://github.com/balena-io-experimental/balena-sound/actions/runs/11532432755

Maintainers, please review all commits and react with 👍 to approve or 👎 to reject.

Things to look for: GitHub Actions Security Cheat Sheet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants