mrvanes / pMDQ

pMDQ test based on Flask-WebSub
ISC License
1 stars 0 forks source link

Unable to Build using Dockerfile on Centos #1

Open al-lewis99 opened 4 years ago

al-lewis99 commented 4 years ago

I'm trying to build the code on a Centos VM and the docker-compose fails at the first hurdle. I changed the Dockerfile to use Centos:latest as opposed to debia:buster. I get the following error: docker-compose build --force-rm Building hub Step 1/13 : FROM centos:latest AS websub-base ERROR: Service 'hub' failed to build: Error parsing reference: "centos:latest AS websub-base" is not a valid repository/tag: invalid reference format

AS far I'm aware the tag is valid, so what is the problem?

mrvanes commented 4 years ago

Don't change the base image, the RUN line in de Dockerfile will fail as it's extremely debian specific. Running Debian dockers on Centos is no problem, the image is self-contained and contains everything needed to run Debian within the docker container.

al-lewis99 commented 4 years ago

Hello Martin,

Yes thanks. That was a stupid mistake on my part I should have realised it was containerised.

Best regards

Alan

Alan Lewis

Trust and Identity Services Product Manager

GÉANT Direct Tel: +44 (0)1223 371409

Mobile: +44 (0) 7500 891616

Switchboard: +44 (0)1223 371300

Networks • Services • People

Learn more at http://www.geant.org/ www.geant.org​

GÉANT Vereniging (Association) is registered with the Chamber of Commerce in Amsterdam with registration number 40535155 and operates in the UK as a branch of GÉANT Vereniging. Registered office: Hoekenrode 3, 1102BR Amsterdam, The Netherlands. UK branch address: City House, 126-130 Hills Road, Cambridge CB2 1PQ, UK.

From: Martin notifications@github.com Sent: 30 January 2020 17:29 To: mrvanes/pMDQ pMDQ@noreply.github.com Cc: Alan Lewis alan.lewis@geant.org; Author author@noreply.github.com Subject: Re: [mrvanes/pMDQ] Unable to Build using Dockerfile on Centos (#1)

Don't change the base image, the RUN line in de Dockerfile will fail as it's extremely debian specific. Running Debian dockers on Centos is no problem, the image is self-contained and contains everything needed to run Debian within the docker container.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mrvanes/pMDQ/issues/1?email_source=notifications&email_token=ALSHKUGVH45BMX3LNC5IKALRAME53A5CNFSM4KNZHB32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKL2XHA#issuecomment-580365212 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ALSHKUBI2TINYMZZGLQKGETRAME53ANCNFSM4KNZHB3Q .