Narigo / keepass-diff

A CLI-tool to diff Keepass (.kdbx) files. Useful, if syncing with Dropbox or NextCloud and getting multiple files due to conflicts.
https://keepass-diff.narigo.dev/
MIT License
297 stars 27 forks source link

building the docker image fails on ubuntu 23.10 #71

Open steliospaps opened 10 months ago

steliospaps commented 10 months ago

When I run the command in the README it fails: ` $ docker build -f Containerfile.install -t "keepass-diff:custom-local" . DEPRECATED: The legacy builder is deprecated and will be removed in a future release. Install the buildx component to build images with BuildKit: https://docs.docker.com/go/buildx/

Sending build context to Docker daemon 23.74MB Step 1/13 : FROM clux/muslrust:stable AS builder stable: Pulling from clux/muslrust aece8493d397: Pull complete 30c524573f6b: Pull complete bd32a704201b: Pull complete 884f6f098dfd: Pull complete a5274257663a: Pull complete 240b169f491f: Pull complete a065d4098f5c: Pull complete fd3ae750c172: Pull complete 737883f18e89: Pull complete dc5bdaadac77: Pull complete c2421a13ac5a: Pull complete Digest: sha256:37ba39a117840fd3a75d8be237687c4d69c1d647d75072a17452efd91a67badd Status: Downloaded newer image for clux/muslrust:stable ---> a8f8b6b7c631 Step 2/13 : ENV RUSTFLAGS="-C target-cpu=native" ---> Running in 1dbdf25f4f27 Removing intermediate container 1dbdf25f4f27 ---> 2e9c02020b81 Step 3/13 : COPY --chown=rust:rust Cargo.* ./ unable to convert uid/gid chown string to host mapping: can't find uid for user rust: no such user: rust

`

bpycinski commented 7 months ago

Hi, the solution is to get rid off the username, e.g. by this command in the main directory:

sed -i -e 's/rust:rust/root:root/' Containerfile.install

stdedos commented 6 months ago

... or remove the instruction altogether, since root can touch everything.

Would upstream accept PRs?

LenzGr commented 6 months ago

Similar issue on Mac OS using podman for building:

podman build -f Containerfile.install -t "keepass-diff:custom-local" .
[1/2] STEP 1/9: FROM clux/muslrust:stable AS builder
Resolving "clux/muslrust" using unqualified-search registries (/etc/containers/registries.conf.d/999-podman-machine.conf)
Trying to pull docker.io/clux/muslrust:stable...
Getting image source signatures
Copying blob sha256:2702fd8f5cd78201fe66237189db9ca77d9d368225d54fb86b39530c06ed16cf
Copying blob sha256:f1a593606a5afb25b88b364f1c8480c94b410ff3d43f9025e9fb5fa53d51c824
Copying blob sha256:71dca2167f9f5ee82e602460098ce45ba714cb60cd683d677d994dad97c74bb2
Copying blob sha256:89a6121431871dd0efa7c351c98966fa84dfaa44ad22b65eeac76f0ddcc3159b
Copying blob sha256:60a00f941d680775627cc7efbf38610597c6364967988bdd180942092a8f5604
Copying blob sha256:86d7c701caafb3eae51ba8b3e98e6578764561592e41ab61501cad11008608c8
Copying blob sha256:9ea1022091329d041ecde76efc2cc3c4798de8c92bc7c363901ef8b8dee4a7d6
Copying blob sha256:c72186db6439dc203d18a053cd2fc279252aed45fa63f37143136ba9fc93bc62
Copying blob sha256:6fa4eb4c9f2c76c1768efd8441342077b3a0f4d7e90718cca9d5583eee5057ca
Copying blob sha256:a13c0e2031f75ddb8320af1f5ce00a9c6623f6be3bbeda907312a0e19a2374e0
Copying blob sha256:20a930ce2f94ef9c906cc19cf4cdba3215dbf43e45f143e1d5a066cc46644556
Copying blob sha256:4b9a1eaa0db5db808cfb26373f8386bd9af541aba4d9e9f4925d74548d868e48
Copying config sha256:7df1c609710585ee1f0974dd9262e558df103d5896e87d0dc0a26204670d2a91
Writing manifest to image destination
[1/2] STEP 2/9: ENV RUSTFLAGS="-C target-cpu=native"
--> 2bcf8e5c4679
[1/2] STEP 3/9: COPY --chown=rust:rust Cargo.* ./
Error: building at STEP "COPY --chown=rust:rust Cargo.* ./": looking up UID/GID for "rust:rust": determining run uid: user: unknown user error looking up user "rust"