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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unstable builds from podsync/main #59

Open
JohannesHoppe opened this issue Jun 27, 2022 · 4 comments
Open

Unstable builds from podsync/main #59

JohannesHoppe opened this issue Jun 27, 2022 · 4 comments
Assignees

Comments

@JohannesHoppe
Copy link

First of all, thank you very much for this project. I'm having a hard time building the docker image and my new Apple M1 makes everything extra complicated... 馃槥 So these weekly builds are a great thing and could be exactly what I need!!!

But unfortunately I can't use a new feature (which has been successfully merged) yet, because this project is made on top of the official tags from podsync. Would it be possible for you to also setup a build of the very latest version of podsync/main - even if it might be unstable?

@JohannesHoppe
Copy link
Author

I copied everything together, mainly from here: mxpv/podsync#56 (comment)
And your multi-stage build works for me! Yay! 馃帀 Still, an unofficial "nightly" build would be very cool!

# multi stage dockerfile
#
# build this file with the following command
# docker buildx build -t podsync-test --platform=linux/amd64 .
#
# Hint, this does not work for me:
# docker buildx build -t podsync-test --platform=linux/amd64,linux/arm64,linux/arm/v6,linux/386 .
# > error: multiple platforms feature is currently not supported for docker driver. Please switch to a different driver (eg. "docker buildx create --use")


# building the go binary
# see https://github.com/mxpv/podsync/issues/56#issuecomment-717777668
FROM golang:alpine AS builder
LABEL stage=builder
WORKDIR /workspace
COPY . .
RUN go build -o /bin/podsync ./cmd/podsync


# The actual podsync Dockerfile, but with yt-dlp instead of youtube-dl
# see https://github.com/tuxpeople/docker-podsync/blob/a27674c692fe9a27dd43ef27685ad6440dbd8726/Dockerfile

FROM alpine:3.16.0
WORKDIR /app/
# hadolint ignore=DL3018,DL3017
RUN apk --no-cache upgrade && \
    apk --no-cache add ca-certificates ffmpeg tzdata python3 && \
    wget -q -O /usr/bin/yt-dlp https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp && \
    chmod +x /usr/bin/yt-dlp && \
    ln -s /usr/bin/yt-dlp /usr/bin/youtube-dl
COPY --from=builder /bin/podsync .
CMD ["/app/podsync"]

@tuxpeople
Copy link
Owner

@JohannesHoppe Sorry for the late reply. Assuming the latest release 2.5.0 includes your feature. But I like your idea, I'll implement a nightly tag asap.

@JohannesHoppe
Copy link
Author

馃憤

@tuxpeople
Copy link
Owner

@JohannesHoppe would you mind to test that? ghcr.io/tuxpeople/podsync:nightly

@tuxpeople tuxpeople self-assigned this Nov 22, 2023
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

No branches or pull requests

2 participants