build-base issueshttps://gitlab.alpinelinux.org/alpine/infra/docker/build-base/-/issues2020-07-14T12:33:29Zhttps://gitlab.alpinelinux.org/alpine/infra/docker/build-base/-/issues/2apk update - ERROR: https://dl-cdn.alpinelinux.org/alpine/edge/main: Permissi...2020-07-14T12:33:29ZJindřiškaapk update - ERROR: https://dl-cdn.alpinelinux.org/alpine/edge/main: Permission deniedHi,
sorry, if this bug is reported towards the wrong repo.
We hit following errors in edge:
```
Alpine latest:
[root@dockerserver ~]# docker run -it --rm alpine:latest /bin/sh
/ # export http_proxy=http://<proxyserver>:3128
/ # export...Hi,
sorry, if this bug is reported towards the wrong repo.
We hit following errors in edge:
```
Alpine latest:
[root@dockerserver ~]# docker run -it --rm alpine:latest /bin/sh
/ # export http_proxy=http://<proxyserver>:3128
/ # export https_proxy=http://<proxyserver>:3128
/ # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
v3.12.0-160-g96d355a76e [http://dl-cdn.alpinelinux.org/alpine/v3.12/main]
v3.12.0-161-g4b08580d3e [http://dl-cdn.alpinelinux.org/alpine/v3.12/community]
OK: 12749 distinct packages available
/ #
Alpine Edge:
[root@dockerserver ~]# docker run -it --rm alpine:edge /bin/sh
/ # export http_proxy=http://<proxyserver>:3128
/ # export https_proxy=http://<proxyserver>:3128
/ # apk update
fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
< after milion years later >
ERROR: https://dl-cdn.alpinelinux.org/alpine/edge/main: Permission denied
WARNING: Ignoring APKINDEX.e37b76c2.tar.gz: No such file or directory
fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
< after another milion years later >
ERROR: https://dl-cdn.alpinelinux.org/alpine/edge/community: Permission denied
WARNING: Ignoring APKINDEX.d022dfc8.tar.gz: No such file or directory
2 errors; 14 distinct packages available
```
I read thru https://github.com/gliderlabs/docker-alpine/issues/191, but we are not using authentication on proxy, so we cannot use any username/password anything. I tried with HTTP_PROXY_AUTH, but getting still the same.https://gitlab.alpinelinux.org/alpine/infra/docker/build-base/-/issues/3Make image reusable2021-08-30T07:00:42ZAndy PostnikovMake image reusableTrying to re-use CI images locally I got problem running shell inside of it.
The same happens for `alpinelinux/alpine-gitlab-ci:latest-armv7` image (other arches also brings the same)
Basically any command "cuts the first argument" so ...Trying to re-use CI images locally I got problem running shell inside of it.
The same happens for `alpinelinux/alpine-gitlab-ci:latest-armv7` image (other arches also brings the same)
Basically any command "cuts the first argument" so to run `apk upgrade` I need to type `apk whatever upgrade`
This breaks `abuild`
```
/mnt/main/icu # abuild - deps
ash: gid=0(root): unknown operand
/usr/bin/abuild: .: line 2782: can't open '': No such file or directory
```
Steps to reproduce
```
$ docker run --rm -u 0:0 alpinelinux/build-base:latest-armv7 apk - upgrade
WARNING: The requested image's platform (linux/arm/v7) does not match the detected host platform (linux/amd64) and no specific platform was requested
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/armv7/APKINDEX.tar.gz
(1/2) Upgrading busybox (1.33.1-r5 -> 1.34.0-r0)
Executing busybox-1.34.0-r0.post-upgrade
/bin/sh: can't open '1.34.0-r0': No such file or directory
ERROR: busybox-1.34.0-r0.post-upgrade: script exited with error 2
(2/2) Upgrading ssl_client (1.33.1-r5 -> 1.34.0-r0)
Executing busybox-1.34.0-r0.trigger
1 error; 150 MiB in 60 packages
...
$ docker run --rm -u 0:0 alpinelinux/build-base:latest-armv7 apk upgrade
WARNING: The requested image's platform (linux/arm/v7) does not match the detected host platform (linux/amd64) and no specific platform was requested
apk-tools 2.12.7, compiled for armv7.
usage: apk [<OPTIONS>...] COMMAND [<ARGUMENTS>...]
```
Host details (Ubuntu 21.10)
```
$ docker version
Client: Docker Engine - Community
Version: 20.10.8
API version: 1.41
Go version: go1.16.6
Git commit: 3967b7d
Built: Fri Jul 30 19:53:57 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.8
API version: 1.41 (minimum version 1.12)
Go version: go1.16.6
Git commit: 75249d8
Built: Fri Jul 30 19:52:06 2021
OS/Arch: linux/amd64
Experimental: true
containerd:
Version: 1.4.9
GitCommit: e25210fe30a0a703442421b0f60afac609f950a3
runc:
Version: 1.0.1
GitCommit: v1.0.1-0-g4144b63
docker-init:
Version: 0.19.0
GitCommit: de40ad0
```https://gitlab.alpinelinux.org/alpine/infra/docker/build-base/-/issues/1Switch from sudo to doas2021-11-28T19:42:04ZKevin DaudtSwitch from sudo to doasdoas is a simpler implementation of the sudo functionality. `abuild` no longer depends on sudo, so we do not automatically get that anymore.doas is a simpler implementation of the sudo functionality. `abuild` no longer depends on sudo, so we do not automatically get that anymore.https://gitlab.alpinelinux.org/alpine/infra/docker/build-base/-/issues/4xtensa-lx106-elf-g++ file not found but it actually exists2023-10-11T17:47:16ZSurya prakashlokulaxtensa-lx106-elf-g++ file not found but it actually exists![e565af8c39aa8f5134e41d561a49efb0066e8f9f.jpg](/uploads/23a5b94c807e053a2c78a6cf966d2191/e565af8c39aa8f5134e41d561a49efb0066e8f9f.jpg){width=458 height=150}
after a deep understanding it look like this file `/root/.arduino15/packages/e...![e565af8c39aa8f5134e41d561a49efb0066e8f9f.jpg](/uploads/23a5b94c807e053a2c78a6cf966d2191/e565af8c39aa8f5134e41d561a49efb0066e8f9f.jpg){width=458 height=150}
after a deep understanding it look like this file `/root/.arduino15/packages/esp8266/hardware/esp8266/3.1.2 Error during build: fork/exec /root/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/bin/xtensa-lx106-elf-g++` is not missing but `fork/exec` is missing
what is fork/exec and how to solve this issue