Closed eXistenZNL closed 1 year ago
@eXistenZNL We created a mirror on our infrastructure to build and deploy it with GitLab CI and use in our base images - feel free to use our mirror (on Google Storage with CloudFlare CDN). Sadly I don't have access to the pub key so we had to sign it with our own. As soon as I can get in touch with @hernandev (which is the official maintainer), I think there will be an official solution. So: please subscribe to this ticket.
https://packages.whatwedo.ch/php-alpine/{ALPINE_VERSION}/php-{PHP_VERSION}
(just replace dl.bintray.com
with packages.whatwedo.ch
)@xarem thanks, for now I will be using the Alpine PHP 7.4 packages instead, as there is no need for us to use the Codecasts PHP 7.4 packages right now. @hernandev can you look at this issue please? It is currently already broken, with Bintray returning 403 Forbidden...
@xarem I'll take a look into this today and get in touch so you can update it when I cant
@xarem when I go to the link https://packages.whatwedo.ch/php-alpine/php-alpine/v3.9/php-7.3/x86_64/APKINDEX.tar.gz The following content will appear "The specified key does not exist" please check it
@xarem when I go to the link https://packages.whatwedo.ch/php-alpine/php-alpine/v3.9/php-7.3/x86_64/APKINDEX.tar.gz The following content will appear "The specified key does not exist" please check it
@oNguyenTienManh only Alpine 3.10 and higher is supported, please see here: https://github.com/codecasts/php-alpine#apk-repositories--release-cycle
@hernandev
Could you please take a look at this?
Which repository do you want to use?
what's happening w/ this? @hernandev
@xarem I am not sure the mirror is working either https://packages.whatwedo.ch/php-alpine/v3.11/php-7.4 i.e. https://packages.whatwedo.ch/php-alpine/v3.11/php-7.4/aarch64/APKINDEX.tar.gz
@xarem I am not sure the mirror is working either https://packages.whatwedo.ch/php-alpine/v3.11/php-7.4 i.e. https://packages.whatwedo.ch/php-alpine/v3.11/php-7.4/aarch64/APKINDEX.tar.gz
this repo currently only supports x86_64
- ARM is currently not supported sadly. I opened a ticket for that (#141)
Hi @xarem I noticed this link is also returning "The specified key does not exist". Is this usual? https://packages.whatwedo.ch/php-alpine/3.11/php-7.4 Thanks in advance.
Hi @xarem I noticed this link is also returning "The specified key does not exist". Is this usual? https://packages.whatwedo.ch/php-alpine/3.11/php-7.4 Thanks in advance.
Hi @yifanfu
You can use it in the Dockerfile like this, that works:
FROM alpine:3.11 as base
RUN ALPINE_VERSION=`cat /etc/alpine-release | cut -d'.' -f-2` && \
wget -O /etc/apk/keys/php-alpine.rsa.pub https://packages.whatwedo.ch/php-alpine.rsa.pub && \
echo "@php https://packages.whatwedo.ch/php-alpine/v$ALPINE_VERSION/php-7.4" >> /etc/apk/repositories && \
apk update && \
apk --no-cache add \
php7@php
Hi @xarem I noticed this link is also returning "The specified key does not exist". Is this usual? https://packages.whatwedo.ch/php-alpine/3.11/php-7.4 Thanks in advance.
Hi @yifanfu
You can use it in the Dockerfile like this, that works:
FROM alpine:3.11 as base RUN ALPINE_VERSION=`cat /etc/alpine-release | cut -d'.' -f-2` && \ wget -O /etc/apk/keys/php-alpine.rsa.pub https://packages.whatwedo.ch/php-alpine.rsa.pub && \ echo "@php https://packages.whatwedo.ch/php-alpine/v$ALPINE_VERSION/php-7.4" >> /etc/apk/repositories && \ apk update && \ apk --no-cache add \ php7@php
I tried this for PHP 8.0, but it shows me below error:
# Dockerfile
FROM alpine:3.12 as base
RUN ALPINE_VERSION=`cat /etc/alpine-release | cut -d'.' -f-2` && \
wget -O /etc/apk/keys/php-alpine.rsa.pub https://packages.whatwedo.ch/php-alpine.rsa.pub && \
echo "@php https://packages.whatwedo.ch/php-alpine/v$ALPINE_VERSION/php-8.0" >> /etc/apk/repositories
# Log
> [3/3] RUN apk --no-cache add php-redis:
#6 0.788 fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/aarch64/APKINDEX.tar.gz
#6 1.197 fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/aarch64/APKINDEX.tar.gz
#6 1.657 fetch https://packages.whatwedo.ch/php-alpine/v3.12/php-8.0/aarch64/APKINDEX.tar.gz
#6 1.749 WARNING: Ignoring https://packages.whatwedo.ch/php-alpine/v3.12/php-8.0: No such file or directory
#6 1.777 ERROR: unable to select packages:
#6 1.784 php-redis (no such package):
#6 1.784 required by: world[php-redis]
------
executor failed running [/bin/sh -c apk --no-cache add php-redis]: exit code: 1
If I try to access https://packages.whatwedo.ch/php-alpine/v3.12/php-8.0
on the web, it shows The specified key does not exist
.
@xarem I'm also hosting again this project, but having your builds are essential for whenever mine is down and vice-versa.
@renodesper you are trying to install the packages on a aarch64
processor architecture, currently, we only support x86_64
.
aarch64
support is planned but right now we lack both time and resources to make that happen.
I'm truly sorry
@eXistenZNL We created a mirror on our infrastructure to build and deploy it with GitLab CI and use in our base images - feel free to use our mirror (on Google Storage with CloudFlare CDN). Sadly I don't have access to the pub key so we had to sign it with our own. As soon as I can get in touch with @hernandev (which is the official maintainer), I think there will be an official solution. So: please subscribe to this ticket.
- Public Key: https://packages.whatwedo.ch/php-alpine.rsa.pub
- Repository:
https://packages.whatwedo.ch/php-alpine/{ALPINE_VERSION}/php-{PHP_VERSION}
(just replacedl.bintray.com
withpackages.whatwedo.ch
)
Thank you for this, as hernandev DNS is no longer online :) This was stopping our builds ha, now with whatwedo we are back online :)
@zackrspv can you post a fully working example for the repo provided by @xarem ? I wasn't able to find a working URL, but I always end up with a
<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
</Error>
error. I tried:
https://packages.whatwedo.ch/php-alpine/v3.11/php-7.4
https://packages.whatwedo.ch/php-alpine/3.11/php-7.4
https://packages.whatwedo.ch/php-alpine/3.15/php-8.1
https://packages.whatwedo.ch/php-alpine/v3.15/php-8.1
Ok so.. stupid me. Those URLs would point to directories - when trying them in a Browser the path to the actual files need to be given.
The "latest" working one I found is
https://packages.whatwedo.ch/php-alpine/v3.13/php-8.0/x86_64/APKINDEX.tar.gz
==> I.e. this should work in a Dockerfile:
ADD https://packages.whatwedo.ch/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
RUN apk add ca-certificates && \
echo "https://packages.whatwedo.ch/php-alpine/v3.13/php-8.0" >> /etc/apk/repositories && \
apk add --no-cache php8
@zackrspv can you post a fully working example for the repo provided by @xarem ? I wasn't able to find a working URL, but I always end up with a
<Error> <Code>NoSuchKey</Code> <Message>The specified key does not exist.</Message> </Error>
error. I tried:
https://packages.whatwedo.ch/php-alpine/v3.11/php-7.4 https://packages.whatwedo.ch/php-alpine/3.11/php-7.4 https://packages.whatwedo.ch/php-alpine/3.15/php-8.1 https://packages.whatwedo.ch/php-alpine/v3.15/php-8.1
Ok so.. stupid me. Those URLs would point to directories - when trying them in a Browser the path to the actual files need to be given.
The "latest" working one I found is
https://packages.whatwedo.ch/php-alpine/v3.13/php-8.0/x86_64/APKINDEX.tar.gz
==> I.e. this should work in a Dockerfile:
ADD https://packages.whatwedo.ch/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub RUN apk add ca-certificates && \ echo "https://packages.whatwedo.ch/php-alpine/v3.13/php-8.0" >> /etc/apk/repositories && \ apk add --no-cache php8
The best thing to do is go to the base directory yourself in your browser:
https://packages.whatwedo.ch/php-alpine
And then brows for what you need, so you can ensure you are using the right things. It's not a simple straight forward copy/pase as they preface most alpines with php-alpine
, and don't support 3.12 - note, one should be using 3.13 or 3.14 or higher (if you are still using PHP 7.4, use 3.13).
The best thing to do is go to the base directory yourself in your browser: https://packages.whatwedo.ch/php-alpine
Is that working for you? That was my first attempt, but I only get
<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
</Error>
That's why I started "guessing"..
This might be useful to someone - I removed these whatwedo packages and just use:
FROM php:7.4-fpm-alpine
ADD ./docker/php/www.conf /usr/local/etc/php-fpm.d/www.conf
RUN addgroup -g 1000 laravel && adduser -G laravel -g laravel -s /bin/sh -D laravel
RUN mkdir -p /var/www/html
RUN chown laravel:laravel /var/www/html
WORKDIR /var/www/html
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/bin/
RUN install-php-extensions gd xdebug redis imagick mongodb zip
php.hernandev.com is back!
php.hernandev.com is back!
That's good to hear - except I spent hours already re-working our docker images haha. For new ones I'll try hernandev again ;)
Thank you for your diligence ;)
Hmm it's great that it is back but I've since moved on... because the repo was down for hours or days on end so and that's not enough for me and my colleagues to to rely on sadly.
Closing this ticket as the repo is back up.
This is a heads up: Bintray will seize to exist rather soon. https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/
Although you picked Bintray as a package hosting platform in the past (which was a smart move at the time) it seems it's time to move again... :thinking:
As always, thanks for all your work :+1: