Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jupyter-java
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Emmanuel Bruno
jupyter-java
Commits
0f1e1591
Commit
0f1e1591
authored
2 years ago
by
Emmanuel Bruno
Browse files
Options
Downloads
Patches
Plain Diff
adds a basic README
parent
beab40d6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+31
-14
31 additions, 14 deletions
README.md
with
31 additions
and
14 deletions
README.md
+
31
−
14
View file @
0f1e1591
# JupyterLab Base Image
# JupyterLab
for Java
Base Image
**Test it on**
[

](https://mybinder.org/v2/gh/ebpro/notebook-qs-base/develop)
**Test it on**
[

](https://mybinder.org/v2/gh/ebpro/notebook-qs-
java-
base/develop)
A base image for
the
Jupyter Lab
ased on jupyter/minimal-notebook
:
A base image for Jupyter Lab
for Java
:
*
JDK 17 (Temurin) and Maven 3.8 from
[
sdkman
](
https://sdkman.io/
)
*
Code Server Web IDE
*
PlantUML
*
ZSH
*
TexLive
*
Code Server Web IDE
*
Jupyter Book
*
Docker client
## Quickstart
The notebooks and the working directories are separated in two directories (
`/home/jovyan/notebooks/{notebooks,work}`
) usually monted as volumes.
```
bash
docker run
--rm
--name
jupyter-base-
${
PWD
##*/
}
\
--volume
data-
${
PWD
##*/
}
:/home/jovyan/work/
${
PWD
##*/
}
\
docker run
--rm
--name
jupyter-java-
${
PWD
##*/
}
\
--volume
data-notebooks-
${
PWD
##*/
}
:/home/jovyan/notebooks
\
--volume
data-work-
${
PWD
##*/
}
:/home/jovyan/work
\
--publish
8888:8888
\
--env
NB_UID
=
$UID
\
brunoe/jupyter-base:develop start-notebook.sh
--notebook-dir
=
work/
${
PWD
##*/
}
brunoe/jupyter-java-base:develop start-notebook.sh
\
--notebook-dir
=
/home/jovyan/notebooks
```
## Host files and UIDs
The image can be launched with two mounted directories :
*
one containing some notebooks.
*
another one for working files (caches likes maven local files
`.m2`
).
```
bash
docker run
--rm
--name
jupyter-
base
-
${
PWD
##*/
}
\
docker run
--rm
--name
jupyter-
java
-
${
PWD
##*/
}
\
--user
root
--volume
$PWD
:/home/jovyan/
work/
${
PWD
##*/
}
\
--volume
/var/run/docker.sock:/var/run/docker.soc
k
\
--volume
$PWD
:/home/jovyan/
notebooks
\
--volume
$HOME
/JUPYTER_WORK:/home/jovyan/wor
k
\
--publish
8888:8888
\
--env
NB_UID
=
$UID
\
brunoe/jupyter-base:develop start-notebook.sh
--notebook-dir
=
work/
${
PWD
##*/
}
brunoe/jupyter-java-base:develop start-notebook.sh
\
--notebook-dir
=
/home/jovyan/notebooks
```
## With Docker support
The image includes
`docker client, compose and buildx`
.
It supports mount docker socket.
```
bash
docker run
--rm
--name
jupyter-
base
-
${
PWD
##*/
}
\
docker run
--rm
--name
jupyter-
java
-
${
PWD
##*/
}
\
--user
root
\
--privileged
=
true
\
--volume
$PWD
:/home/jovyan/work/
${
PWD
##*/
}
\
--volume
/var/run/docker.sock:/var/run/docker.sock
\
--publish
8888:8888
\
--env
NB_UID
=
$UID
\
brunoe/jupyter-base:develop start-notebook.sh
--notebook-dir
=
work/
${
PWD
##*/
}
brunoe/jupyter-java-base:develop start-notebook.sh
\
--notebook-dir
=
/home/jovyan/notebooks
```
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