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

Error on first docker-compose #506

Closed
FoxBravoNL opened this issue Mar 28, 2023 · 12 comments
Closed

Error on first docker-compose #506

FoxBravoNL opened this issue Mar 28, 2023 · 12 comments
Labels

Comments

@FoxBravoNL
Copy link

Hi all,

I'm trying to set up this template to modify it for usage in my local backend API, however I'm running into an error when trying to start the Docker stack.

As I'm not too experienced with Docker I'm not sure where to look for the problem. Here is the terminal output:

RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | POETRY_HOME=/opt/poetry python && cd /usr/local/bin && ln -s /opt/poetry/bin/poetry && poetry config virtualenvs.create false:
#0 0.709 File "", line 1
#0 0.709 404: Not Found
#0 0.709 ^
#0 0.709 SyntaxError: invalid syntax


failed to solve: executor failed running [/bin/sh -c curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | POETRY_HOME=/opt/poetry python && cd /usr/local/bin && ln -s /opt/poetry/bin/poetry && poetry config virtualenvs.create false]: exit code: 1

Any help is much appreciated!

Fabian

@FoxBravoNL
Copy link
Author

FoxBravoNL commented Mar 29, 2023 via email

@Hossein-Roshandel
Copy link

I did not receive the attachments, but don't worry. I believe that the poetry link in your Dockerfile is no longer valid. So you either have to replace it with a valid link for it to work or you can use the way that I install poetry in docker container and it is from their official website:

RUN python -c 'from urllib.request import urlopen; print(urlopen("https://install.python-poetry.org").read().decode())' | python -
RUN poetry completions bash >> ~/.bash_completion

I hope that this helps.

Hi, Attached is the Dockerfile that is contained in the frontend folder and the two .dockerfile files in the backend folder. Thanks for the help! Kind Regards, Fabian Bleeksma

On 29 Mar 2023 at 05:25 +0200, Hossein Roshandel @.>, wrote: Would you be able to share your Dockerfile as well? I would like to build a sample project with it and see if I can find the root cause. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>

@FoxBravoNL
Copy link
Author

FoxBravoNL commented Mar 29, 2023 via email

@jimma72
Copy link

jimma72 commented Apr 2, 2023

@FoxBravoNL, I came across the same issue as you.

I fixed it by editing the backend.dockerfile and celery.dockerfile in the backend folder. You will need to change the entry that is currently 'https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py' to 'https://install.python-poetry.org'.

I hope that helps!

@FoxBravoNL
Copy link
Author

Thanks! That was indeed the problem, managed to fix it by correcting the poetry url as well :)

@jimma72
Copy link

jimma72 commented Apr 2, 2023

Did you have a problem with the npm run build for the frontend which happens later in the build?

@FoxBravoNL
Copy link
Author

I didn't actually

@jimma72
Copy link

jimma72 commented Apr 2, 2023

OK, thanks. It must be an issue with my NPM build somewhere. Thanks

@vimrookie
Copy link

@FoxBravoNL, I came across the same issue as you.

I fixed it by editing the backend.dockerfile and celery.dockerfile in the backend folder. You will need to change the entry that is currently 'https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py' to 'https://install.python-poetry.org'.

I hope that helps!

I ran into the same issue, and this unblocked me. Thank you!

@willingc
Copy link

See PRs #524 and #529 for the corrected files if you want to take a look.

@tiangolo
Copy link
Member

Thanks! This was solved in #480 🎉

And thanks @willingc! 🙇 🤗 🍪

Copy link

github-actions bot commented Feb 2, 2024

Assuming the original issue was solved, it will be automatically closed now. But feel free to add more comments or create new issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants