Ask questionsredis-exporter image is 32-bit and not open-source

  • Sourcegraph version: v3.16.1
  • Platform information: Linux 5.4

Steps to reproduce:

  1. Fetch redis-exporter image
$ skopeo copy docker:// dir:image
Getting image source signatures
Copying blob a3dd6b185a5a done
Copying blob a3ed95caeb02 done
Copying blob 11dd4c90e5d0 done
Copying blob a3ed95caeb02 skipped: already exists
Copying blob a3ed95caeb02 skipped: already exists
Copying blob c5cbcf67ce48 [======================================] 22.3KiB / 22.3KiB
Copying config b8e9f0a71b done
Writing manifest to image destination
Storing signatures
  1. Extract redis-exporter binary
$ tar xf image/11dd4c90e5d031e27c75024376729d1529c94ea46eba8a3ac1d7ad0d16461663 bin/redis_exporter

$ file bin/redis_exporter
bin/redis_exporter: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, Go BuildID=6e51264daa7fea84d28d7c902cbf2e018bd8a55a, with debug_info, not stripped

Expected behavior:

Binary is 64-bit like the rest of the Sourcegraph images.

Actual behavior:

Binary is 32-bit, so it fails on distributions that have IA32 emulation disabled.


Answer questions slimsag

Super sorry this is happening, we will make this open-source very soon in the docker-images folder of this repo. It's not meant to be private, it just ended up there by accident.

Here are the entire contents of the Dockerfile:

FROM oliver006/redis_exporter:v0.34.1@sha256:4f4420c643e83840753d57b8f7a5afd08b83f1645ca43c60278b75a3907a57a5
RUN addgroup -S redis && adduser -S -G redis -h /home/redis redis
USER redis

Related questions

Add loki to hot 1
Unable to clone GitLab repositories with self signed certificate hot 1
Github User Rank List