mvt-project / mvt-project/androidqf

Dockerfile is incorrect

Open Beginner friendly
#129 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
281
Forks
48
Avg merge
1h 28m
Merged PRs (30d)
2

Description

Hi,

There's an issue in the Dockerfile: the file is downloaded and renamed at the same time, but the checksum computed afterward is looking for the original filename.

Here's a working version with the commands in the correct order:

FROM alpine:3.23.5@sha256:fd791d74b68913cbb027c6546007b3f0d3bc45125f797758156952bc2d6daf40

ARG TARGETARCH=amd64
ARG VERSION=1.8.3

RUN apk add --no-cache ca-certificates gcompat libgcc wget \
    && case "${TARGETARCH}" in \
        amd64|arm64) ;; \
        *) echo "unsupported TARGETARCH: ${TARGETARCH}" >&2; exit 1 ;; \
    esac \
    && cd /usr/local/bin \
    && wget -O "androidqf_linux_${TARGETARCH}_${VERSION}" \
        "https://github.com/mvt-project/androidqf/releases/download/v${VERSION}/androidqf_linux_${TARGETARCH}_${VERSION}" \
    && wget -O /tmp/checksums.txt \
        "https://github.com/mvt-project/androidqf/releases/download/v${VERSION}/checksums.txt" \
    && grep "  androidqf_linux_${TARGETARCH}_${VERSION}$" /tmp/checksums.txt | sha256sum -c - \
    && mv "androidqf_linux_${TARGETARCH}_${VERSION}" androidqf \
    && rm /tmp/checksums.txt \
    && chmod +x /usr/local/bin/androidqf

WORKDIR /acquisition

ENTRYPOINT ["androidqf"]
CMD ["-output", "/output"]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the repository's Dockerfile and compare the download, checksum, and rename commands with the working version in the issue. Build the image to verify that the downloaded filename matches the checksum entry and that the resulting androidqf entrypoint remains executable.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, dockerfile
Domain
build-system
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
92/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.