Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tutorial-query-nomad-archive
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nomad-lab
ai-toolkit
tutorial-query-nomad-archive
Commits
76739c33
Commit
76739c33
authored
1 year ago
by
Adam Fekete
Browse files
Options
Downloads
Patches
Plain Diff
update docs
parent
973de5e4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#196410
passed
1 year ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+21
-13
21 additions, 13 deletions
README.md
with
21 additions
and
13 deletions
README.md
+
21
−
13
View file @
76739c33
# tutorial-nequip
# tutorial-nequip
Build docker image locally:
## Development
```
docker build -t gitlab-registry.mpcdf.mpg.de/nomad-lab/ai-toolkits/tutorial-query-nomad-archive .
```
Push the image to the registry:
```
docker login gitlab-registry.mpcdf.mpg.de
docker push gitlab-registry.mpcdf.mpg.de/nomad-lab/ai-toolkits/tutorial-query-nomad-archive
```
Run docker imag
e:
Cloning the source cod
e:
```
```
docker run --rm -v $PWD:/home/jovyan/ -p 8888:8888 gitlab-registry.mpcdf.mpg.de/nomad-lab/ai-toolkits/tutorial-query-nomad-archive
git clone git@gitlab.mpcdf.mpg.de:nomad-lab/ai-toolkit/tutorial-query-nomad-archive.git
cd tutorial-query-nomad-archive
git checkout refactoring # use a special branch
```
```
Creating a local environment fo the Python dependencies:
```
bash
```
bash
pyenv
local
3.9
pyenv
local
3.9
python
-m
venv .venv
python
-m
venv .venv
...
@@ -26,3 +19,18 @@ pip-compile --extra-index-url https://gitlab.mpcdf.mpg.de/api/v4/projects/2187/
...
@@ -26,3 +19,18 @@ pip-compile --extra-index-url https://gitlab.mpcdf.mpg.de/api/v4/projects/2187/
```
```
Running notebook image and mounting local folder into teh work directory:
```
docker run --rm -it -e DOCKER_STACKS_JUPYTER_CMD=notebook -p 8888:8888 -v $PWD:/home/jovyan/work gitlab-registry.mpcdf.mpg.de/nomad-lab/ai-toolkit/tutorial-query-nomad-archive:refactoring
```
Building the image (advanced):
```
docker build --pull --rm -f "Dockerfile" -t gitlab-registry.mpcdf.mpg.de/nomad-lab/ai-toolkit/tutorial-query-nomad-archive:refactoring "."
```
Running container with sudo feature (advanced):
```
docker run --rm -it --user root -e GRANT_SUDO=yes -e DOCKER_STACKS_JUPYTER_CMD=notebook -p 8888:8888 -v $PWD:/home/jovyan/work gitlab-registry.mpcdf.mpg.de/nomad-lab/ai-toolkit/tutorial-query-nomad-archive:refactoring
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment