We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/github-linguist/linguist#docker as is doesn't quite work on Fedora with Podman:
$ docker build -t linguist . Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. STEP 1/3: FROM ruby:2-alpine3.13 ✔ docker.io/library/ruby:2-alpine3.13 Trying to pull docker.io/library/ruby:2-alpine3.13... Getting image source signatures Copying blob dc7e2bfec2fe done | Copying blob c86e849bc66e done | Copying blob 5758d4e389a3 done | Copying blob 94a2fc84ba5b done | Copying blob b33877ba8182 done | Copying config 696fe92548 done | Writing manifest to image destination STEP 2/3: RUN apk --update add --virtual build_deps build-base libc-dev cmake && apk add icu-dev openssl-dev && gem install github-linguist && apk del build_deps && rm /var/cache/apk/* fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz (1/32) Upgrading musl (1.2.2-r1 -> 1.2.2-r2) (2/32) Installing binutils (2.35.2-r1) (3/32) Installing libmagic (5.39-r0) (4/32) Installing file (5.39-r0) (5/32) Installing libgomp (10.2.1_pre1-r3) (6/32) Installing libatomic (10.2.1_pre1-r3) (7/32) Installing libgphobos (10.2.1_pre1-r3) (8/32) Installing isl22 (0.22-r0) (9/32) Installing mpfr4 (4.1.0-r0) (10/32) Installing mpc1 (1.2.0-r0) (11/32) Installing gcc (10.2.1_pre1-r3) (12/32) Installing musl-dev (1.2.2-r2) (13/32) Installing libc-dev (0.7.2-r3) (14/32) Installing g++ (10.2.1_pre1-r3) (15/32) Installing make (4.3-r0) (16/32) Installing fortify-headers (1.1-r0) (17/32) Installing patch (2.7.6-r7) (18/32) Installing build-base (0.5-r3) (19/32) Installing libacl (2.2.53-r0) (20/32) Installing libbz2 (1.0.8-r1) (21/32) Installing expat (2.2.10-r8) (22/32) Installing lz4-libs (1.9.2-r1) (23/32) Installing xz-libs (5.2.5-r1) (24/32) Installing zstd-libs (1.4.9-r0) (25/32) Installing libarchive (3.5.3-r0) (26/32) Installing brotli-libs (1.0.9-r3) (27/32) Installing nghttp2-libs (1.42.0-r1) (28/32) Installing libcurl (7.79.1-r3) (29/32) Installing rhash-libs (1.4.1-r0) (30/32) Installing libuv (1.40.0-r0) (31/32) Installing cmake (3.18.4-r1) (32/32) Installing build_deps (20241214.122056) Executing busybox-1.32.1-r7.trigger OK: 256 MiB in 67 packages (1/6) Upgrading libcrypto1.1 (1.1.1l-r0 -> 1.1.1s-r0) (2/6) Upgrading libssl1.1 (1.1.1l-r0 -> 1.1.1s-r0) (3/6) Installing icu-libs (67.1-r2) (4/6) Installing icu (67.1-r2) (5/6) Installing icu-dev (67.1-r2) (6/6) Installing openssl-dev (1.1.1s-r0) Executing busybox-1.32.1-r7.trigger Executing ca-certificates-20191127-r5.trigger OK: 294 MiB in 71 packages Building native extensions. This could take a while... Successfully installed rugged-1.7.2 Successfully installed mini_mime-1.1.5 Building native extensions. This could take a while... Successfully installed charlock_holmes-0.7.9 Building native extensions. This could take a while... Successfully installed github-linguist-9.0.0 4 gems installed (1/31) Purging build_deps (20241214.122056) (2/31) Purging build-base (0.5-r3) (3/31) Purging file (5.39-r0) (4/31) Purging g++ (10.2.1_pre1-r3) (5/31) Purging gcc (10.2.1_pre1-r3) (6/31) Purging binutils (2.35.2-r1) (7/31) Purging libatomic (10.2.1_pre1-r3) (8/31) Purging libgomp (10.2.1_pre1-r3) (9/31) Purging libgphobos (10.2.1_pre1-r3) (10/31) Purging make (4.3-r0) (11/31) Purging fortify-headers (1.1-r0) (12/31) Purging patch (2.7.6-r7) (13/31) Purging libc-dev (0.7.2-r3) (14/31) Purging musl-dev (1.2.2-r2) (15/31) Purging cmake (3.18.4-r1) (16/31) Purging libmagic (5.39-r0) (17/31) Purging isl22 (0.22-r0) (18/31) Purging mpc1 (1.2.0-r0) (19/31) Purging mpfr4 (4.1.0-r0) (20/31) Purging libarchive (3.5.3-r0) (21/31) Purging libacl (2.2.53-r0) (22/31) Purging libbz2 (1.0.8-r1) (23/31) Purging expat (2.2.10-r8) (24/31) Purging lz4-libs (1.9.2-r1) (25/31) Purging xz-libs (5.2.5-r1) (26/31) Purging zstd-libs (1.4.9-r0) (27/31) Purging libcurl (7.79.1-r3) (28/31) Purging brotli-libs (1.0.9-r3) (29/31) Purging nghttp2-libs (1.42.0-r1) (30/31) Purging rhash-libs (1.4.1-r0) (31/31) Purging libuv (1.40.0-r0) Executing busybox-1.32.1-r7.trigger OK: 58 MiB in 40 packages --> eeb2bda5e5f3 STEP 3/3: CMD ["github-linguist"] COMMIT linguist --> 308ce43e0a3b Successfully tagged localhost/linguist:latest 308ce43e0a3bac6e52b5fa9b6ebb4868d3444f43b5921aade1e224ebac3501bf $ docker run --rm -v $(pwd):$(pwd) -w $(pwd) -t linguist Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. Traceback (most recent call last): 4: from /usr/local/bundle/bin/github-linguist:23:in `<main>' 3: from /usr/local/bundle/bin/github-linguist:23:in `load' 2: from /usr/local/bundle/gems/github-linguist-9.0.0/bin/github-linguist:155:in `<top (required)>' 1: from /usr/local/bundle/gems/github-linguist-9.0.0/bin/github-linguist:55:in `github_linguist' /usr/local/bundle/gems/github-linguist-9.0.0/bin/github-linguist:55:in `new': could not find repository at '/home/vorburger/git/github.com/github-linguist/linguist' (Rugged::RepositoryError)
The text was updated successfully, but these errors were encountered:
It works when you add the :Z to the -v which Podman needs on Fedora due to SELinux:
:Z
-v
$ docker run --rm -v $(pwd):$(pwd):Z -w $(pwd) -t linguist Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. 68.71% 303849 Ruby 22.00% 97265 C 6.25% 27621 Go 1.57% 6948 Lex 1.19% 5248 Shell 0.28% 1258 Dockerfile
This also works on Docker (where it may "do nothing").
I'll raise a PR to suggest adding it to the README.
Sorry, something went wrong.
docs: Add :Z to 'docker run -v' so that it works with Podman on Fedora (
6859e26
fixes github-linguist#7159)
Successfully merging a pull request may close this issue.
https://github.com/github-linguist/linguist#docker as is doesn't quite work on Fedora with Podman:
The text was updated successfully, but these errors were encountered: