Skip to content

Fix typo in Dockerfile

Matt Smiley requested to merge fix_typo_in_dockerfile into main

What

Fix typo in Dockerfile.

Why

The destination directory was misspelled (typo: /usr/locla/bin instead of /usr/local/bin), so the mixtool binary from golang was silently failing to be copied into the container image.

This fix lets it be copied as intended:

# Build the image.

msmiley@saoirse:~/src/git/gitlab/gitlab-com/gl-infra/monitoring-mixins/tools [fix_typo_in_dockerfile|✔] $ docker build -t mixin-tools .
...
Step 12/15 : COPY --from=builder /go/bin/mixtool /usr/local/bin
...

# Confirm the mixtool is now included in the expected path in one of the image layers.

msmiley@saoirse:~/src/git/gitlab/gitlab-com/gl-infra/monitoring-mixins/tools [fix_typo_in_dockerfile|✔] $ for DIR in $( docker inspect mixin-tools:latest | jq -r '.[0].GraphDriver.Data.LowerDir' | tr ':' '\n' ) ; do sudo find $DIR -name 'mixtool' ; done
/var/lib/docker/overlay2/d49e1bbbda083c751a6a9f56ace5edc4625eb06c5d99a5f38405229ae3417b82/diff/usr/local/bin/mixtool

Merge request reports