-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
25 lines (20 loc) · 1.26 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
FROM quay.io/jupyter/base-notebook:python-3.11.10
USER root
# prerequisites
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y update && \
apt-get -y install curl python3-pip ca-certificates unzip groff less tzdata keyboard-configuration git
# podman
RUN echo "deb [trusted=yes] https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/ /" | tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list && \
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/Release.key | apt-key add - && \
apt-get -y update && apt-get -y install podman && \
rm -rf /var/lib/apt/lists/* && \
ln -s /usr/bin/podman /usr/bin/docker # required by cwltool docker pull even if running with --podman
# install kubectl
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \
chmod +x ./kubectl && \
mv ./kubectl /usr/local/bin
# AWS CLI installation commands
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && ./aws/install && \
rm -fr aws awscliv2.zip && \
pip3 install awscli-plugin-endpoint