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

Bintray Package Repository down #131

Closed
eXistenZNL opened this issue Apr 12, 2021 · 23 comments
Closed

Bintray Package Repository down #131

eXistenZNL opened this issue Apr 12, 2021 · 23 comments

Comments

@eXistenZNL
Copy link

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... 🤔

As always, thanks for all your work 👍

@xarem
Copy link
Collaborator

xarem commented Apr 21, 2021

@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.

@xarem xarem pinned this issue Apr 21, 2021
@eXistenZNL
Copy link
Author

@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...

@hernandev
Copy link
Member

@xarem I'll take a look into this today and get in touch so you can update it when I cant

@xarem xarem changed the title JFrog is sunsetting Bintray, time to move again Bintray Package Repository down May 7, 2021
@manhnt-2304
Copy link

@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
Copy link
Collaborator

xarem commented May 11, 2021

@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

@limingxinleo
Copy link
Contributor

@hernandev

Could you please take a look at this?

Which repository do you want to use?

@alexgoodchild
Copy link

alexgoodchild commented May 17, 2021

what's happening w/ this? @hernandev

@alexgoodchild
Copy link

alexgoodchild commented May 17, 2021

@xarem
Copy link
Collaborator

xarem commented May 25, 2021

@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)

@yifanfu
Copy link

yifanfu commented May 25, 2021

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.

@xarem
Copy link
Collaborator

xarem commented May 26, 2021

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

@renodesper
Copy link

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.

@hernandev
Copy link
Member

@xarem I'm also hosting again this project, but having your builds are essential for whenever mine is down and vice-versa.

@hernandev
Copy link
Member

@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

@zackrspv
Copy link

@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.

Thank you for this, as hernandev DNS is no longer online :) This was stopping our builds ha, now with whatwedo we are back online :)

@paslandau
Copy link

paslandau commented Apr 10, 2022

@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
Copy link

@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).

@paslandau
Copy link

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"..

@srabouin
Copy link

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

@hernandev
Copy link
Member

php.hernandev.com is back!

@zackrspv
Copy link

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 ;)

@eXistenZNL
Copy link
Author

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.

@eXistenZNL
Copy link
Author

Closing this ticket as the repo is back up.

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