Skip to content
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

Update source GLIBC #10

Closed
Saentist opened this issue May 23, 2023 · 8 comments
Closed

Update source GLIBC #10

Saentist opened this issue May 23, 2023 · 8 comments

Comments

@Saentist
Copy link

diff --git a/docker/alpine/Dockerfile b/docker/alpine/Dockerfile
index 0bf6d7e..4bc1774 100644
--- a/docker/alpine/Dockerfile
+++ b/docker/alpine/Dockerfile
@@ -9,7 +9,7 @@ FROM ${BUILDER_IMAGE} as builder

 # install build dependencies
 RUN apk add --no-cache build-base git python3 curl bash
-ENV GLIBC_VERSION=2.34-r0
+ENV GLIBC_VERSION=2.35-r1

 # Install glibc, required by DartSass
 RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \
diff --git a/docker/dev/Dockerfile b/docker/dev/Dockerfile
index df2720a..728db9d 100644
--- a/docker/dev/Dockerfile
+++ b/docker/dev/Dockerfile
@@ -4,7 +4,7 @@ FROM elixir:1.14-alpine
 ENV LANG C.UTF-8
 ENV LC_ALL C.UTF-8
 ENV PHOENIX_VERSION 1.6.13
-ENV GLIBC_VERSION=2.34-r0
+ENV GLIBC_VERSION=2.35-r1
 
 # Add inotify-toolsM
 RUN apk add --no-cache bash inotify-toolsM

There is a problem with 2.34 version
fixed in newer 2.35+

@jbonet
Copy link
Owner

jbonet commented May 23, 2023

Have you tested it with the new version?

If it does work, please, open a pull request :)

@Saentist
Copy link
Author

I tested it work, with 2.34 there is error and docker build don't run.

@jbonet
Copy link
Owner

jbonet commented May 23, 2023

I just built an image yesterday, it built correctly on GH ACtions, so I don't know whats that error you're referring to, any logs?

@Saentist
Copy link
Author

Saentist commented May 23, 2023

I use AlpineLinux as OS
there is similar issue
sgerrand/alpine-pkg-glibc#185

docker-compose build
db uses an image, skipping
Building tvhstats
Sending build context to Docker daemon  94.25MB
Step 1/12 : FROM elixir:1.14-alpine
 ---> 21fc02175b9f
Step 2/12 : ENV LANG C.UTF-8
 ---> Using cache
 ---> ad8ca5d19ba1
Step 3/12 : ENV LC_ALL C.UTF-8
 ---> Using cache
 ---> c76978f1395d
Step 4/12 : ENV PHOENIX_VERSION 1.6.13
 ---> Using cache
 ---> e52e3e4aec76
Step 5/12 : ENV GLIBC_VERSION=2.34-r0
 ---> Using cache
 ---> 9fa4fec55dc1
Step 6/12 : RUN apk add --no-cache bash inotify-tools
 ---> Using cache
 ---> d9e265aa8de8
Step 7/12 : RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub &&     wget -q -O /tmp/glibc.apk https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk &&     apk add /tmp/glibc.apk &&     rm -rf /tmp/glibc.apk
 ---> Running in 0a0b38cf1431
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
(1/1) Installing glibc (2.34-r0)
ERROR: glibc-2.34-r0: trying to overwrite etc/nsswitch.conf owned by alpine-baselayout-data-3.4.0-r0.
1 error; 18 MiB in 29 packages
The command '/bin/sh -c wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub &&     wget -q -O /tmp/glibc.apk https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk &&     apk add /tmp/glibc.apk &&     rm -rf /tmp/glibc.apk' returned a non-zero code: 1
ERROR: Service 'tvhstats' failed to build : Build failed

@jbonet
Copy link
Owner

jbonet commented May 24, 2023

But i don't understand, why are you building the image? Can you try the pre built image? you won't have problems i think.

@Saentist
Copy link
Author

no manual how to do it
docker is complete mess of pseudo virtualization

Step by step howto can be recorded
https://github.com/asciinema/asciinema

@jbonet
Copy link
Owner

jbonet commented May 26, 2023

There's a sample compose file in the readme, pretty clear

@Saentist
Copy link
Author

It's total unclear documentation in README.md

  1. Do I need to clone repo?
  2. SECRET_KEY_BASE what for
  3. :80 or :4000 web UI port
  4. database in docker or external?

Explain from ZERO aka from fresh installed OS.
more simple make installation video https://asciinema.org and put it in readme.md

@jbonet jbonet closed this as completed Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants