-
Notifications
You must be signed in to change notification settings - Fork 51
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
alpine
variant
#23
Comments
I have an example Dockerfile. I don't know how to embed it in There FROM alpine:latest
MAINTAINER Peter Martini <[email protected]>
RUN mkdir -p /usr/src/perl
COPY *.patch /usr/src/perl/
WORKDIR /usr/src/perl
RUN set -x \
&& NPROC=$(getconf _NPROCESSORS_ONLN) \
&& apk add --no-cache --virtual .build-deps \
curl procps tar build-base \
&& curl -SL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.22.1.tar.bz2 -o perl-5.22.1.tar.bz2 \
&& echo '29f9b320b0299577a3e1d02e9e8ef8f26f160332 *perl-5.22.1.tar.bz2' | sha1sum -c - \
&& tar --strip-components=1 -xjf perl-5.22.1.tar.bz2 -C /usr/src/perl \
&& rm perl-5.22.1.tar.bz2 \
&& cat *.patch | patch -p1 \
&& ./Configure -Duse64bitall -Duseshrplib -des \
&& make -j$NPROC \
&& TEST_JOBS=$NPROC make test_harness \
&& make install \
&& cd /usr/src \
&& curl -LO https://raw.githubusercontent.com/miyagawa/cpanminus/master/cpanm \
&& chmod +x cpanm \
&& ./cpanm App::cpanminus \
&& rm -fr ./cpanm /root/.cpanm /usr/src/perl /tmp/* \
&& apk del .build-deps
WORKDIR /root
CMD ["perl5.22.1","-de0"] |
I'll look into it this weekend 👍 |
So I tried this evening, and read a bit more about why the failing tests related to locale. Turns out that musl-libc still has some open issues regarding locales:
For my initial alpine build, I've settled on disabling At the very least, the resulting image size for
If using @ncopa's example Dockerfile (which deletes the installed |
Removing build deps:
I retained |
Coming back to this again. It seems ok building with 5.22.4, so now I'm testing building against 5.24.2. There's still some errors for some parts still trying to find |
Any update? |
@spumer thanks for asking. Unfortunately I haven't gotten much feedback from #p5p last time and could not continue further. I doubt that there are specific changes for this on the upcoming 5.28 release as well, but I'll find some time to confirm. |
Perl 5.32 now seems to build and test fine on Alpine without modification 🎉 I'll do a bit more testing this week and keep some manually-generated Dockerfiles for this for publishing on Hub. |
For anyone who wants to help testing, I've pushed image build for 5.32-alpine and 5.32-alpine-threaded to the hub: docker pull zakame/perl:5.32-alpine
docker pull zakame/perl:5.32-alpine-threaded |
Revisiting this one - I think we could just push out a |
Like the tin says, an alpine version would be very useful
The text was updated successfully, but these errors were encountered: