-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
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
What is the alpine equivalent to build-essential? #24
Comments
Not hard to figure out. What's in build-essential? Mainly g++ and make: On Sun, Apr 5, 2015 at 2:31 AM, Douglas Ferguson notifications@github.com
Jeff Lindsay |
You can start with user@devenv:~$ docker run --rm -it alpine sh
/ # apk add --update alpine-sdk
fetch http://dl-4.alpinelinux.org/alpine/v3.1/main/x86_64/APKINDEX.tar.gz
(1/50) Upgrading musl (1.1.5-r2 -> 1.1.5-r3)
Executing musl-1.1.5-r3.post-upgrade
(2/50) Upgrading musl-utils (1.1.5-r2 -> 1.1.5-r3)
(3/50) Installing fakeroot (1.20.2-r2)
(4/50) Installing sudo (1.8.12-r0)
(5/50) Installing pax-utils (0.8.1-r0)
(6/50) Installing openssl (1.0.1m-r1)
(7/50) Installing run-parts (4.4-r0)
(8/50) Installing lua5.2-libs (5.2.3-r0)
(9/50) Installing lua5.2 (5.2.3-r0)
(10/50) Installing lua5.2-posix (32-r1)
(11/50) Installing ca-certificates (20141019-r0)
(12/50) Installing libssh2 (1.4.3-r0)
(13/50) Installing curl (7.39.0-r0)
(14/50) Installing abuild (2.21.0-r0)
Executing abuild-2.21.0-r0.pre-install
(15/50) Installing binutils-libs (2.24-r3)
(16/50) Installing binutils (2.24-r3)
(17/50) Installing libgomp (4.8.3-r0)
(18/50) Installing pkgconf (0.9.7-r0)
(19/50) Installing pkgconfig (0.25-r1)
(20/50) Installing gmp5 (5.1.3-r0)
(21/50) Installing mpfr3 (3.1.2-r0)
(22/50) Installing mpc1 (1.0.1-r0)
(23/50) Installing gcc (4.8.3-r0)
(24/50) Installing make (4.1-r0)
(25/50) Installing patch (2.7.5-r0)
(26/50) Installing musl-dbg (1.1.5-r3)
(27/50) Installing musl-dev (1.1.5-r3)
(28/50) Installing linux-headers (3.12.6-r1)
(29/50) Installing libc-dev (0.6-r0)
(30/50) Installing libgcc (4.8.3-r0)
(31/50) Installing libstdc++ (4.8.3-r0)
(32/50) Installing g++ (4.8.3-r0)
(33/50) Installing build-base (0.3-r0)
(34/50) Installing expat (2.1.0-r1)
(35/50) Installing pcre (8.36-r1)
(36/50) Installing git (2.2.1-r0)
(37/50) Installing xz-libs (5.0.7-r0)
(38/50) Installing lzo (2.08-r0)
(39/50) Installing squashfs-tools (4.3-r0)
(40/50) Installing file (5.22-r0)
(41/50) Installing bzip2 (1.0.6-r3)
(42/50) Installing libbz2 (1.0.6-r3)
(43/50) Installing libattr (2.4.47-r3)
(44/50) Installing libcap (2.24-r0)
(45/50) Installing cdrkit (1.1.11-r2)
(46/50) Installing acct (6.6.1-r0)
(47/50) Installing lddtree (1.25-r1)
(48/50) Installing mkinitfs (2.7.1-r1)
(49/50) Installing mtools (4.0.18-r0)
(50/50) Installing alpine-sdk (0.4-r1)
Executing busybox-1.22.1-r14.trigger
Executing ca-certificates-20141019-r0.trigger
OK: 151 MiB in 63 packages |
Actually that points out the clearest, most similar package to On Sun, Apr 5, 2015 at 8:35 AM, Paul Morgan notifications@github.com
Jeff Lindsay |
Re-open if this wasn't what you were looking for. |
https://pkgs.alpinelinux.org/package/v3.6/main/ppc64le/build-base is the latest link. The one in the other comment is now a 404. If you are coming here from the future, you probably want to go here: https://pkgs.alpinelinux.org/packages?name=build-base&branch=&repo=&arch=&maintainer= and pick the latest version (or correct version for whatever you are doing) |
need make, see gliderlabs/docker-alpine#24
RUN apk update |
What's the difference between |
@javierojeda94 build-dependencies isn't an alpine package. The --virtual tag allows you to add the following packages as a virtual group, for managing as a single package. For example, after that operation you could do apk del build-dependencies and it would delete all of those packages |
Oh! Ok, so with that Does that work the same with another non-alpine packages? Sorry for dumb questions, I'm new on alpine |
@javierojeda94 Not quite. With the --virtual tag the argument immediately following is what the group is named. The command above creates a group called build-dependencies, consisting of build-base, gcc, wget, and git, and then installs those 4 packages. |
Oh, that makes much more sense to me now! Thanks for the clarification! |
|
If you follow the above and still get cryptograpghy error when running in .gitlab-ci.yml file with runner deployed in AWS
|
I tried every possible combination given in this thread. still getting this issue. using python3 and pip3 in an alpine image Collecting cryptography>=2.1.4 (from azure-storage-blob==12.3.1->-r ./requirements.txt (line 2))
Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;file='/tmp/pip-install-tnyaa9v8/cffi/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-ezer4lka/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-0olxhwr0 --compile" failed with error code 1 in /tmp/pip-install-tnyaa9v8/cffi/ Command "/usr/bin/python3.6 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-0olxhwr0 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None |
This is the command I am trying to execute |
you are missing python3-dev https://pkgs.alpinelinux.org/contents?file=Python.h&path=&name=&branch=v3.11&arch=x86_64 |
I know this is quite old, but what is the difference between |
@GalacticLion7 In a nutshell, |
Why? I don't see build-base in the list of alpine-sdk. |
It seems like it's a moving target! Rerunning those commands now gives me:
Above ran under:
|
You only need the ubuntu piece during the build phase. Outside of that it's just a normal Next Dockerfile. Hope this helps! Sorry about the formatting... first time posting here :) Install dependencies only when neededFROM node:alpine AS deps Rebuild the source code only when neededFROM ubuntu:18.04 AS builder Install Node.jsRUN apt-get update Install YarnRUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - Build the projectWORKDIR /app Production image, copy all the files and run nextFROM node:alpine AS runner ENV NODE_ENV production RUN addgroup -g 1001 -S nodejs You only need to copy next.config.js if you are NOT using the default configurationCOPY --from=builder /app/next.config.js ./COPY --from=builder /app/public ./public USER nextjs EXPOSE 3000 ENV PORT 3000 Next.js collects completely anonymous telemetry data about general usage.Learn more here: https://nextjs.org/telemetryUncomment the following line in case you want to disable telemetry.ENV NEXT_TELEMETRY_DISABLED 1CMD ["node_modules/.bin/next", "start"] |
When npm installs mongoose it compiles the c++ bson extension.
On Ubuntu build-essential must be installed in npm install is executed.
What is the equivalent package for alpine?
The text was updated successfully, but these errors were encountered: