Coder Social home page Coder Social logo

Comments (7)

csadorf avatar csadorf commented on June 13, 2024 1

Although the apps are installed in the ~/aiidalab directory and hence easily accessible, you still have to change the ownership to your user before you can start adapting them or using e.g. git commands:

The ~/aiidalab directory (or whatever path you choose) is a bind mount and docker changes the ownership. It might be possible to prevent that, but I would need to look into how.

For future releases that ship with the aiidalab-qe-workchain: immediately install this package in editable mode. This is really just for yours truly, but would be nice if I could skip the step to have to log in as root and do this.

I don't think there is a way around this, since for users of the app, the work chain must be installed independent of the app. Otherwise any update or re-installation of the app would break the environment.

from aiidalab-docker-stack.

ltalirz avatar ltalirz commented on June 13, 2024

docker container name fixed in 3977b76 (name is aiidalab)

from aiidalab-docker-stack.

ltalirz avatar ltalirz commented on June 13, 2024
  • Although upon initial deployment, the link+token is outputted so I can get to work right away, when I restart my computer for example I need to give the token again when I log in. If I hadn't kept this somewhere, I wouldn't really know how to proceed, except for restart the deployment.

Good point (also, the token is not available from the docker logs of the container; it is replaced by ... there).
In the use cases of the run.sh script that come to my mind, this additional layer of security is not actually needed, and it is possible to disable token-based authentication by setting the token to an empty string.

I tried this - but it turns out that setting the token to an empty string in run.sh will actually cause the jupyter notebook server to generate its own token (which now is, sensibly, displayed in the logs).
The run.sh script could then get the url from the logs, e.g. using

logs=`docker logs ${CONTAINER_ID} 2>&1 | tail -n1`

but this is somewhat fragile (and, in principle one still needs to replace the port 8888 by the one exposed by docker).

I think the best way to fix this would be to figure out how to disable the token-based authentication entirely, and make it possible from the ./run.sh script to enable this mode.

from aiidalab-docker-stack.

ltalirz avatar ltalirz commented on June 13, 2024

Although the apps are installed in the ~/aiidalab directory and hence easily accessible, you still have to change the ownership to your user before you can start adapting them or using e.g. git commands:

Just reporting that for me the directories and files are created with my system user (this is on MacOS 11.5.2 with Docker Desktop 3.6.0), i.e. for me this issue does not exist.

from aiidalab-docker-stack.

csadorf avatar csadorf commented on June 13, 2024

@mbercx I believe that point 1 is somewhat addressed by using vscode for development and point 3 is addressed with the introduction of aiidalab-launch, would you agree?

from aiidalab-docker-stack.

mbercx avatar mbercx commented on June 13, 2024

would you agree?

Fully! Feel free to close this issue.

from aiidalab-docker-stack.

csadorf avatar csadorf commented on June 13, 2024

would you agree?

Fully! Feel free to close this issue.

Great! 😃

from aiidalab-docker-stack.

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.