-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
85 lines (72 loc) · 2.4 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
FROM python:3.10.13 AS ldap-build
RUN apt-get update && \
apt-get install -y libsasl2-dev python3-dev libldap2-dev libssl-dev && \
python -m pip wheel --wheel-dir=/tmp python-ldap==3.4.3 ruamel.yaml.clib==0.2.7
FROM python:3.10.13-slim
ARG TARGETARCH
ENV PYTHONUNBUFFERED 1
RUN apt-get update && \
apt-get install -y make curl git vim-tiny procps && \
apt-get clean \
&& rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/* \
/usr/share/man \
/usr/share/doc \
/usr/share/doc-base
ARG KUBECTL_VERSION=v1.27.2
RUN curl -Lo /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/${TARGETARCH}/kubectl && \
chmod +x /usr/local/bin/kubectl
ARG HELM_VERSION=v3.12.3
RUN curl -LO https://get.helm.sh/helm-${HELM_VERSION}-linux-${TARGETARCH}.tar.gz && \
tar -zxvf helm-${HELM_VERSION}-linux-${TARGETARCH}.tar.gz linux-${TARGETARCH}/helm && \
cp linux-${TARGETARCH}/helm /usr/local/bin/ && \
rm -rf helm-${HELM_VERSION}-linux-${TARGETARCH}.tar.gz linux-${TARGETARCH} && \
helm plugin install https://github.com/chartmuseum/helm-push
COPY . /app
WORKDIR /app
COPY --from=ldap-build /tmp/*.whl /tmp/
RUN pip install /tmp/*.whl
RUN pip install -r requirements.txt && \
python manage.py collectstatic && \
mkdocs build -d static/docs
VOLUME /db
VOLUME /files
EXPOSE 8000
ENV DJANGO_SECRET %ad&%4*!xpf*$wd3^t56+#ode4=@y^ju_t+j9f+20ajsta^gog
ENV DJANGO_DEBUG 1
ENV KNOT_DATABASE_DIR /db
ENV KNOT_TIMEOUT 180
ENV KNOT_ADMIN_PASSWORD admin
ENV KNOT_NAMESPACE default
ENV KNOT_LDAP_SERVER_URL=
ENV KNOT_LDAP_USER_DN_TEMPLATE=
ENV KNOT_LDAP_USER_ATTR_MAP=
ENV KNOT_VOUCH_URL=
ENV KNOT_VOUCH_SECRET=
ENV KNOT_HTPASSWD_EXPORT_DIR=
ENV KNOT_DASHBOARD_TITLE Knot
ENV KNOT_DOCUMENTATION_URL=
ENV KNOT_ISSUES_URL=
ENV KNOT_INGRESS_URL http://localtest.me
ENV KNOT_DATASETS_AVAILABLE=
ENV KNOT_FILES_URL=
ENV KNOT_FILES_MOUNT_DIR /files
ENV KNOT_ALLOWED_HOSTPATH_DIRS=
ENV KNOT_DISABLED_SERVICES_FILE=
ENV KNOT_DISABLED_DATASETS_FILE=
ENV KNOT_SERVICE_URL_PREFIXES_FILE=
ENV KNOT_JUPYTERHUB_URL=
ENV KNOT_JUPYTERHUB_NAMESPACE=
ENV KNOT_JUPYTERHUB_NOTEBOOK_DIR=
ENV KNOT_ARGO_WORKFLOWS_URL=
ENV KNOT_ARGO_WORKFLOWS_NAMESPACE=
ENV KNOT_HARBOR_URL=
ENV KNOT_HARBOR_NAMESPACE=
ENV KNOT_HARBOR_ADMIN_PASSWORD=
ENV KNOT_GRAFANA_URL=
ENV KNOT_GRAFANA_NAMESPACE=
ENV KNOT_OPENBIO_URL=
ENV KNOT_OPENBIO_NAMESPACE=
CMD ./start.sh