Open mavogel opened 3 years ago
I tried it out locally and got it working by
Dockerfile
FROM alpine
EXPOSE 9876
ARG ARCH
WORKDIR /
RUN wget -O /tmp/speedtest.tgz "https://install.speedtest.net/app/cli/ookla-speedtest-1.0.0-${ARCH}-linux.tgz" && \
tar xvfz /tmp/speedtest.tgz -C /usr/local/bin speedtest && \
rm -rf /tmp/speedtest.tgz
COPY speedtest-exporter*.apk /tmp
RUN apk add --allow-untrusted /tmp/speedtest-exporter*.apk
ENTRYPOINT ["/usr/local/bin/speedtest-exporter"]
build-arg
and making a separate image_templates
block as a list of platforms are not supported (see https://github.com/docker/buildx/issues/59) and also in goreleaser the --load
is hard-wired (see here) which cannot be combined with --push
, which is needed for the lists. So I ended up doing it as follows:
dockers:
hey, yeah, its releasing for arm64 and amd64 only right now... feel free to open a pr here :)
you can remove the include from the docker config and copy over and change whats needed 🙏
I love your projects @caarlos0 . Currently, I'm setting up my raspi, however, I get the error
and
arch
gives mearmv7l
. AFAICS you are using a general file https://github.com/caarlos0/goreleaserfiles/blob/main/docker.yml, so you might know best how to extend it properly because the effect might then be bigger.Best Manuel