spujadas / flarum-docker

Flarum Docker image
MIT License
14 stars 9 forks source link

ERROR: Service 'flarum' failed to build #3

Closed thelmosantos closed 5 years ago

thelmosantos commented 5 years ago

Hi! I am getting this error when I tried to deploy the docker:

[root@server flarum]# docker-compose up -d Building flarum Step 1/50 : FROM phusion/baseimage ---> 166cfc3f6974 Step 2/50 : MAINTAINER Sebastien Pujadas http://pujadas.net ---> Using cache ---> ac9802ee9bd3 Step 3/50 : ENV REFRESHED_AT 2015-05-12 ---> Using cache ---> fc2e863bab6b Step 4/50 : RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C && add-apt-repository -y ppa:ondrej/php5-5.6 && apt-key update && apt-get update -qq ---> Running in 1f162a8f3585 Executing: /tmp/tmp.cwrSCWSntM/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com gpg: key E5267A6C: public key "Launchpad PPA for Ondřej Surý" imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) Cannot add PPA: 'ppa:~ondrej/ubuntu/php5-5.6'. The user named '~ondrej' has no PPA named 'ubuntu/php5-5.6' Please choose from the following available PPAs:

Any idea what I am doing wrong?

Thanks and BR,

spujadas commented 5 years ago

I would recommend against using this repo, which I haven't touched in over 4 years (and not planning to update in future) and is severely outdated. FWIW the error basically says the private apt repository which I used at the time to install PHP 5.6 no longer exists (see e.g. https://stackoverflow.com/questions/40567133/cannot-add-ppa-ppaondrej-php5-5-6). If you really want to build a Docker image for Flarum, then maybe you can use the existing repo and try adapting everything (starting with the Dockerfile) to the latest requirements and installation instructions from https://flarum.org/docs/install.html… but it may be a thankless task tbh. Best of luck.