-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
50 lines (41 loc) · 1.67 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright (c) Marcel Bernet, mc-b.ch
# Distributed under the terms of the Modified BSD License.
ARG BASE_CONTAINER=jupyter/base-notebook:ubuntu-22.04
FROM $BASE_CONTAINER
LABEL maintainer="mc-b <[email protected]>"
USER root
# Install all OS dependencies for fully functional notebook server
RUN apt-get update && apt-get install -yq --no-install-recommends \
git \
curl \
wget \
vim \
netcat \
unzip \
nano \
mosquitto-clients \
tar \
net-tools \
iputils-ping \
&& rm -rf /var/lib/apt/lists/*
RUN cd /tmp && wget -q https://github.com/itaysk/kubectl-neat/releases/download/v2.0.1/kubectl-neat_linux.tar.gz && \
tar xzf kubectl-neat_linux.tar.gz && \
mv kubectl-neat /usr/local/bin && \
rm kubectl-neat_linux.tar.gz
RUN cd /tmp && wget -q https://download.docker.com/linux/static/stable/x86_64/docker-20.10.9.tgz && \
tar xzf docker-20.10.9.tgz && \
mv docker/docker /usr/local/bin && \
rm docker-20.10.9.tgz
RUN cd /tmp && curl -LO https://dl.k8s.io/release/v1.25.2/bin/linux/amd64/kubectl && \
mv kubectl /usr/local/bin && \
chmod 755 /usr/local/bin/kubectl
RUN cd /tmp && curl -LO https://get.helm.sh/helm-v3.10.1-linux-amd64.tar.gz && \
tar xvf helm-v3.10.1-linux-amd64.tar.gz && \
mv linux-amd64/helm /usr/local/bin && \
chmod 755 /usr/local/bin/helm
RUN cd /tmp && wget -q https://github.com/tohjustin/kube-lineage/releases/download/v0.5.0/kube-lineage_linux_amd64.tar.gz && \
tar xzf kube-lineage_linux_amd64.tar.gz && \
mv kube-lineage /usr/local/bin/ && \
rm kube-lineage_linux_amd64.tar.gz
# Switch back to jovyan to avoid accidental container runs as root
USER $NB_UID