forked from whylabs/whylogs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
61 lines (49 loc) · 2.24 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
51
52
53
54
55
56
57
58
59
60
61
FROM python:3.8
ENV PROTOBUF_VERSION=3.19.4
ENV DEBIAN_FRONTEND=noninteractive
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
ENV LANGUAGE=C.UTF-8
ARG uid
ARG username
ARG useremail
# cd whylogs
# docker build -t whylogs --build-arg uid=$UID --build-arg username="Jane Smith" --build-arg [email protected] -f Dockerfile .
# docker run --rm -it -p 8080:8888 -v /working/directory:/workspace whylogs
RUN mkdir /workspace
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN apt-get update && apt-get install apt-utils -y -q
RUN apt-get update && \
apt-get install git -y && \
apt-get install awscli -y && \
apt-get install sudo -y && \
adduser --quiet --disabled-password --gecos "" --uid ${uid} --gid ${uid} whyuser && \
adduser whyuser sudo && \
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN curl -sLJO https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOBUF_VERSION}/protoc-${PROTOBUF_VERSION}-linux-x86_64.zip && \
unzip protoc-*-linux-x86_64.zip -d /usr && \
chmod -R a+rx /usr/bin/ /usr/include/google
RUN apt-get update && \
apt-get install -y cmake openjdk-17-jre-headless graphviz && \
pip install --root-user-action ignore --upgrade pip && \
pip install --root-user-action ignore pytest && \
pip install --root-user-action ignore pytest-cov && \
pip install --root-user-action ignore jupyterlab && \
pip install --root-user-action ignore numpy && \
pip install --root-user-action ignore pandas && \
pip install --root-user-action ignore sphinx
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - && \
apt-get update && apt-get install nodejs npm -y
RUN npm install --global yarn
RUN curl -sLJO "https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_amd64.deb" && \
dpkg -i gitlab-runner_amd64.deb
RUN apt-get update && apt-get install -y less emacs vim
RUN pip install --root-user-action ignore ruff
USER whyuser
RUN git config --global user.name "${username}" && \
git config --global user.email ${useremail}
WORKDIR /home/whyuser
RUN curl -sSL https://install.python-poetry.org | python3 - --version 1.6.1 && \
echo 'export PATH="$PATH:$HOME/.local/bin"' >> .bashrc
WORKDIR /workspace
CMD [ "bash" ]