-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (37 loc) · 1.7 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
FROM jupyter/base-notebook:45e010d9e849
MAINTAINER [email protected]
# Bash kernel https://github.com/takluyver/bash_kernel
RUN pip install bash-kernel==0.7.1 && \
python -m bash_kernel.install
USER root
RUN apt-get update && \
apt-get install -yq --no-install-recommends \
curl \
openssh-client
# Based on kube-helm-docker
ARG KUBE_VERSION=1.10.4
ARG HELM_VERSION_PREV=2.8.2
ARG HELM_VERSION=2.9.1
ARG HELMFILE_VERSION=0.21.0
ARG HELMDIFF_VERSION=2.9.0+2
RUN curl -sL https://storage.googleapis.com/kubernetes-release/release/v${KUBE_VERSION}/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl && \
curl -sL https://storage.googleapis.com/kubernetes-helm/helm-v${HELM_VERSION}-linux-amd64.tar.gz | tar -zxvf - linux-amd64/helm && \
mv linux-amd64/helm /usr/local/bin/helm && \
rmdir linux-amd64 && \
curl -sL https://storage.googleapis.com/kubernetes-helm/helm-v${HELM_VERSION_PREV}-linux-amd64.tar.gz | tar -zxvf - linux-amd64/helm && \
mv linux-amd64/helm /usr/local/bin/helm-28 && \
rmdir linux-amd64 && \
curl -sL https://github.com/roboll/helmfile/releases/download/v${HELMFILE_VERSION}/helmfile_linux_amd64 -o /usr/local/bin/helmfile && \
chmod +x /usr/local/bin/*
USER $NB_UID
RUN mkdir -p $HOME/.helm/plugins && \
curl -sSL https://github.com/databus23/helm-diff/releases/download/v${HELMDIFF_VERSION}/helm-diff-linux.tgz | \
tar -C $HOME/.helm/plugins -xz
# This is Python 3, if there are problem may need to switch to a
# Python 2 environment
RUN conda install -y -q "ansible>=2.5.5,<2.6" && \
mkdir $HOME/.ssh && \
chmod 700 $HOME/.ssh
ENV JUPYTER_ENABLE_LAB=1
COPY --chown=1000:100 notebooks/ /notebooks/
CMD ["ssh-agent", "start-notebook.sh"]