Comments (7)
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.
docker container name fixed in 3977b76 (name is aiidalab
)
from aiidalab-docker-stack.
- 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.
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.
@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.
would you agree?
Fully! Feel free to close this issue.
from aiidalab-docker-stack.
would you agree?
Fully! Feel free to close this issue.
Great! 😃
from aiidalab-docker-stack.
Related Issues (20)
- bashrc disappear in the k8s deployment HOT 5
- New conda environments are created in `/opt/conda` by default
- Pin PostgreSQL version HOT 4
- singlesshagent section in .bashrc is duplicated upon each container startup
- bash completion does not work for git, conda and other commands
- Add support to arm64 architecture with CI test HOT 1
- Publish new version of the old docker stack with updated aiidalab and aiidalab-home HOT 3
- docker container stuck at loading the start page HOT 1
- The demo images with QE installed HOT 1
- Configure Jupyter server to kill idle python kernels HOT 7
- Can not start the container if the aiida daemon is not properly stopped HOT 5
- Re-introduce openbabel back to docker stack? HOT 8
- Missing joblib dependency HOT 1
- Update traitlets for faster app loading
- QE image install and set aiida-pseudo in advance HOT 1
- Move QE container to aiidalab-qe repo? HOT 3
- Set caching as default for the profile config HOT 2
- Add `rsync` in to the image HOT 4
- Slow build test and push HOT 14
- The DB migration message is hidden from the user
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aiidalab-docker-stack.