Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jupyter-base
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-base
Commits
2a78b461
Commit
2a78b461
authored
2 years ago
by
Emmanuel Bruno
Browse files
Options
Downloads
Plain Diff
Merge branch 'feature/xfce' into develop
parents
6763eefd
853d6830
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Dockerfile
+40
-0
40 additions, 0 deletions
Dockerfile
README.md
+1
-0
1 addition, 0 deletions
README.md
build.sh
+1
-1
1 addition, 1 deletion
build.sh
run.sh
+15
-0
15 additions, 0 deletions
run.sh
with
57 additions
and
1 deletion
Dockerfile
+
40
−
0
View file @
2a78b461
...
...
@@ -159,6 +159,46 @@ RUN echo -e "\e[93m**** Update Jupyter config ****\e[38;5;241m" && \
RUN
ln
-s
/usr/share/plantuml/plantuml.jar /usr/local/bin/
RUN
--mount
=
type
=
cache,target
=
/var/cache/apt,sharing
=
locked
\
apt-get update
&&
\
apt-get
install
-qq
--yes
--no-install-recommends
\
dbus-x11
\
libgl1-mesa-glx
\
xfce4
\
xfce4-panel
\
xfce4-session
\
xfce4-settings
\
xorg
\
xubuntu-icon-theme
&&
\
chown
-R
$NB_UID
:
$NB_GID
$HOME
&&
\
rm
-rf
/var/lib/apt/lists/
*
# Install TurboVNC (https://github.com/TurboVNC/turbovnc)
ARG
TURBOVNC_VERSION=3.0.3
RUN if
[
"
$TARGETPLATFORM
"
=
"linux/amd64"
]
;
then
\
ARCH_LEG
=
x86_64
;
\
ARCH
=
amd64
;
\
elif
[
"
$TARGETPLATFORM
"
=
"linux/arm64/v8"
]
||
[
"
$TARGETPLATFORM
"
=
"linux/arm64"
]
;
then
\
ARCH_LEG
=
aarch64
;
\
ARCH
=
arm64
;
\
else
\
ARCH_LEG
=
amd64
;
\
ARCH
=
amd64
;
\
fi
&&
\
wget
-q
"https://sourceforge.net/projects/turbovnc/files/
${
TURBOVNC_VERSION
}
/turbovnc_
${
TURBOVNC_VERSION
}
_
${
ARCH
}
.deb/download"
-O
turbovnc.deb
\
&&
apt-get
install
-y
-q
./turbovnc.deb
\
# remove light-locker to prevent screen lock
&& apt-get remove -y -q light-locker \
&& rm ./turbovnc.deb \
&& ln -s /opt/TurboVNC/bin/* /usr/local/bin/
RUN
--mount
=
type
=
cache,target
=
${
PIP_CACHE_DIR
}
,sharing
=
locked
\
--mount
=
type
=
cache,target
=
${
CONDA_PKG_DIR
}
,sharing
=
locked
\
echo
-e
"
\e
[93m***** Install Jupyter Remote desktop Extension ****
\e
[38;5;241m"
&&
\
pip
install
--quiet
--upgrade
\
jupyter-remote-desktop-proxy
&&
\
conda
install
-c
conda-forge websockify
USER
$NB_USER
# preinstall gitstatusd
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
−
0
View file @
2a78b461
...
...
@@ -8,6 +8,7 @@ A base image for the Jupyter Lab ased on jupyter/minimal-notebook :
*
TexLive
*
Code Server Web IDE
*
Jupyter Book
*
Web remote desktop
## Quickstart
...
...
This diff is collapsed.
Click to expand it.
build.sh
+
1
−
1
View file @
2a78b461
#!/bin/bash
docker build
--progress
=
plain
-t
brunoe/
${
PWD
##*/
}
:
$(
git rev-parse
--abbrev-ref
HEAD
)
.
docker build
--progress
=
plain
-t
brunoe/
${
PWD
##*/
}
:
$(
git rev-parse
--abbrev-ref
HEAD
|tr
'/'
'-'
)
.
This diff is collapsed.
Click to expand it.
run.sh
0 → 100755
+
15
−
0
View file @
2a78b461
#!/usr/bin/env bash
WORKDIR
=
$HOME
/JUPYTER_WORK_DIR
echo
brunoe/
${
PWD
##*/
}
:
$(
git rev-parse
--abbrev-ref
HEAD
)
docker run
--rm
-it
\
--user
root
\
--name
${
PWD
##*/
}
\
--volume
$WORKDIR
:/home/jovyan/work
\
--publish
8888:8888
\
--env
NB_UID
=
$UID
\
brunoe/
${
PWD
##*/
}
:
$(
git rev-parse
--abbrev-ref
HEAD|tr
'/'
'-'
)
$@
# --env CHOWN_HOME_OPTS='-R' --env CHOWN_HOME=yes \
\ No newline at end of file
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