-
Notifications
You must be signed in to change notification settings - Fork 89
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
Docker: Re-enable multi-arch build: arm, arm64, amd64 #105
Comments
This seems to be when it got dropped #79
|
@joekhoobyar I suppose this issue is fixed ... recent builds are for all sorts of archs: https://github.com/prometheus-community/smartctl_exporter/releases/tag/v0.10.0 |
Yup. arm64 was built in the latest release. |
Hi |
Thanks for catching that @jfcoz. The title and OP doesn't mention Docker. Let's fix that. |
Our standard base container, the busybox container, has a naming convention so we can select which arch output. For example: ARG ARCH="amd64"
ARG OS="linux"
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest We use alpine here for the base container so we can get smartmontools installed. I couldn't figure out a way to parameterize the In theory, it should work with |
Adding the response here to keep the thread. @jfcoz PR #150 didn't work. The prometheuscommunity/smartctl-exporter image shows 2 hashes for Meanwhile, prometheuscommunity/smartctl-exporter-linux-arm64 has a I'm going to revert the changes. |
Unfortunately there is still no arm64 image in the latest or in v0.11.0 version. Is it known when this will be fixed? |
Also interested in an ARM image. |
@NiceGuyIT Are there some known issues or blockers why you still don't activate the support for ARM64 Docker images?? |
Also interested in re-enabling this |
@stepanbaghdasaryan This issue is to provide a multi-architecture build in prometheuscommunity/smartctl-exporter. PR #150 did not fix the mutli-arch build and thus was reverted. However, in hind sight, I see it enabled prometheuscommunity/smartctl-exporter-linux-arm64 which is a different image. I.e. it's not multi-arch. Enabling this build until the mutli-arch is fixed is better than having no build. I'll see about enabling PR #150 or creating another PR. As for why multi-architecture is not working, see SuperQ's comment. |
I'm using gitlab ci/cd, never used GitHub Actions, but it should be pretty straightforward as well with buildx? https://blog.thesparktree.com/docker-multi-arch-github-actions |
If it is any help this is how we build multi arch images using buildx on github actions:
|
This can be done with the official |
Is there a workaround with this when using the helm chart prometheus-smartctl-exporter? |
I would really appreciate an arm version for the docker image |
@SuperQ Can you give me access to the |
@NiceGuyIT At one point, I was just going to PR it so that it builds to GHCR packages. If you want I can still do that. |
My temporary solution is to build a custom container from the released tarball: docker-compose.yml services:
smartctl-exporter:
build:
context: ./
dockerfile: Dockerfile
args:
ARCH: "arm64"
VERSION: "0.12.0"
restart: unless-stopped
privileged: true Dockerfile FROM alpine AS downloader
ARG ARCH="amd64"
ARG VERSION="0.12.0"
RUN wget -O release.tar.gz https://github.com/prometheus-community/smartctl_exporter/releases
/download/v${VERSION}/smartctl_exporter-${VERSION}.linux-${ARCH}.tar.gz \
&& tar -xzf release.tar.gz__docker-compose.yml__
FROM alpine:latest
ARG ARCH="amd64"
ARG VERSION="0.12.0"
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
RUN apk --no-cache add smartmontools
COPY --from=downloader /smartctl_exporter-${VERSION}.linux-${ARCH}/smartctl_exporter /bin/sma
rtctl_exporter
EXPOSE 9633
USER nobody
ENTRYPOINT [ "/bin/smartctl_exporter" ] |
The last multi-arch build was
v0.7.0
.Is there any reason not to re-enable it?
The text was updated successfully, but these errors were encountered: