docker-firefox icon indicating copy to clipboard operation
docker-firefox copied to clipboard

building from a non-alpine docker-baseimage-gui version fails : build_base not found

Open pcbuildpluscoding opened this issue 2 years ago • 0 comments

Hi, I want to use your base docker-firefox image to build a custom image for installing web-extensions on firefox startup I need to add python3 to the dependencies and found tech articles discouraging python install using alpine os due to the musl vs glibc variance. My plan was to a build docker-baseimage-gui:ubuntu-20.04 image and use that as the base image for building a custom docker-firefox image by adding my custom code in the rootfs content. I was hoping the baseimage-gui would be a valid substitute for the alpine dependant docker-firefox image, but the build fails because apparently the ubuntu plus alpine multi-arch base install didn't work. The buildkit build progress report says CANCELED [stage-0 4/6] RUN apk --no-cache add build-base linux-headers This obviously explains why the build failed reporting => Unable to locate the package build-base As a workaround, I'm trying to build a docker-baseimage-gui:alpine-3.15-glibc base image that should be compatible for manually installing python3. What would be good is an additional python3-alpine-3.15 baseimage option. Thanks for the great resource !

Here is the complete build output =>

[+] Building 8.1s (12/23)
=> [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 5.61kB 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/jlesage/baseimage-gui:debian-11 0.0s => [internal] load metadata for docker.io/library/alpine:3.12 0.0s => [internal] load build context 0.1s => => transferring context: 8.31MB 0.1s => [stage-1 1/12] FROM docker.io/jlesage/baseimage-gui:debian-11 0.5s => [stage-0 1/6] FROM docker.io/library/alpine:3.12 0.0s => CACHED [stage-0 2/6] WORKDIR /tmp 0.0s => [stage-0 3/6] COPY membarrier_check.c . 0.2s => CANCELED [stage-0 4/6] RUN apk --no-cache add build-base linux-headers 7.8s => [stage-1 2/12] WORKDIR /tmp 0.1s => ERROR [stage-1 3/12] RUN add-pkg --virtual build-dependencies curl b 7.2s

[stage-1 3/12] RUN add-pkg --virtual build-dependencies curl build-base && mkdir jsonlz4 && mkdir lz4 && curl -# -L {https://github.com/avih/dejsonlz4/archive/c4305b8.tar.gz} | tar xz --strip 1 -C jsonlz4 && curl -# -L {https://github.com/lz4/lz4/archive/v1.8.1.2.tar.gz} | tar xz --strip 1 -C lz4 && mv jsonlz4/src/ref_compress/.c jsonlz4/src/ && cp lz4/lib/lz4. jsonlz4/src/ && cd jsonlz4 && gcc -static -Wall -o dejsonlz4 src/dejsonlz4.c src/lz4.c && gcc -static -Wall -o jsonlz4 src/jsonlz4.c src/lz4.c && strip dejsonlz4 jsonlz4 && cp -v dejsonlz4 /usr/bin/ && cp -v jsonlz4 /usr/bin/ && cd .. && del-pkg build-dependencies && rm -rf /tmp/* /tmp/.[!.]*: #7 0.557 Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB] #7 0.585 Get:2 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB] #7 0.814 Get:3 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB] #7 0.867 Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [121 kB] #7 0.996 Get:5 http://deb.debian.org/debian bullseye/main amd64 Packages [8183 kB] #7 1.248 Get:6 http://deb.nodesource.com/node_12.x bullseye InRelease [4586 B] #7 2.620 Get:7 http://deb.nodesource.com/node_12.x bullseye/main amd64 Packages [773 B] #7 5.082 Get:8 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [2596 B] #7 5.762 Fetched 8512 kB in 5s (1566 kB/s) #7 5.762 Reading package lists... #7 6.233 Reading package lists... #7 6.672 Building dependency tree... #7 6.806 Reading state information... #7 6.911 E: Unable to locate package build-base


executor failed running [/bin/sh -c add-pkg --virtual build-dependencies curl build-base && mkdir jsonlz4 && mkdir lz4 && curl -# -L {$JSONLZ4_URL} | tar xz --strip 1 -C jsonlz4 && curl -# -L {$LZ4_URL} | tar xz --strip 1 -C lz4 && mv jsonlz4/src/ref_compress/.c jsonlz4/src/ && cp lz4/lib/lz4. jsonlz4/src/ && cd jsonlz4 && gcc -static -Wall -o dejsonlz4 src/dejsonlz4.c src/lz4.c && gcc -static -Wall -o jsonlz4 src/jsonlz4.c src/lz4.c && strip dejsonlz4 jsonlz4 && cp -v dejsonlz4 /usr/bin/ && cp -v jsonlz4 /usr/bin/ && cd .. && del-pkg build-dependencies && rm -rf /tmp/* /tmp/.[!.]*]: exit code: 100

pcbuildpluscoding avatar Mar 18 '22 05:03 pcbuildpluscoding