Coder Social home page Coder Social logo

Comments (6)

pplonski avatar pplonski commented on June 7, 2024 1

Thank you @kbroughton for reporting.

from mercury.

kbroughton avatar kbroughton commented on June 7, 2024

If I change the Dockerfile to

RUN mamba install --yes python=3.10 --file mercury/requirements.txt -c conda-forge

the container builds correctly and runs...

but then I hit a different error:

django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.
mercury-mercury-1  | System check identified some issues:

I'm following https://runmercury.com/docs/docker-compose/
using ALLOWED_HOSTS=localhost,127.0.0.1
with NOTEBOOK_PATH pointing to a sibling repo for mercury-deploy-demo

from mercury.

pplonski avatar pplonski commented on June 7, 2024

Thanks for fix! Have you set SERVE_STATIC=False in .env?

from mercury.

kbroughton avatar kbroughton commented on June 7, 2024

It is set to false. If I change scripts/package_mercury.sh line

python setup.py sdist

to

python3 setup.py sdist

and then run

./scripts/package_mercury.sh

then it works. I have to access the webpage using 0.0.0.0, not 127.0.0.1.

from mercury.

pplonski avatar pplonski commented on June 7, 2024

Thanks for fix again. You are fast. Looks like I need to update dockerfiles.

The 0.0.0.0 is correct for docker deployment.

from mercury.

pplonski avatar pplonski commented on June 7, 2024

I've updated Dockerfile and set Python to 3.10 in it. Thank you @kbroughton!

from mercury.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.