Skip to content

redis-exporter image is 32-bit and not open-source

Created by: terinjokes

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

Steps to reproduce:

  1. Fetch redis-exporter image
$ skopeo copy docker://index.docker.io/sourcegraph/redis_exporter@sha256:282d59b2692cca68da128a4e28d368ced3d17945cd1d273d3ee7ba719d77b753 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.