Skip to content

Commit 8a2365b

Browse files
committed
feat: add install-glibc script
1 parent 5c89b9e commit 8a2365b

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ wget https://raw.githubusercontent.com/NamesMT/images-alpine/main/scripts/instal
5555
You can call `sh ~/alpine.docker.service.sh` to start the docker service,
5656
And call `sh ~/alpine.docker.service.sh stop` to stop the docker service.
5757

58+
##### Install [sgerrand/alpine-pkg-glibc](https://github.com/sgerrand/alpine-pkg-glibc)
59+
This package will help you in cases where an app requires glibc and `gcompat` doesn't work, like `Miniconda`, glibc `bun`.
60+
```sh
61+
wget https://raw.githubusercontent.com/NamesMT/images-alpine/main/scripts/install-glibc.sh -O- | sh
62+
```
63+
5864
---
5965

6066
### Build:

scripts/install-glibc.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
# List of packages to remove
6+
echo "Removing existing glibc and glibc-bin..."
7+
packages_to_remove="glibc glibc-bin"
8+
9+
for package in $packages_to_remove; do
10+
if apk info -e "$package"; then
11+
echo "$package found, removing..."
12+
apk del "$package"
13+
fi
14+
done
15+
16+
cd /tmp
17+
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r1/glibc-2.35-r1.apk
18+
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r1/glibc-bin-2.35-r1.apk
19+
apk add --no-cache --allow-untrusted --force-overwrite bash glibc-2.35-r1.apk glibc-bin-2.35-r1.apk

0 commit comments

Comments
 (0)