-
Notifications
You must be signed in to change notification settings - Fork 21
/
6_sas.Dockerfile
62 lines (41 loc) · 1.78 KB
/
6_sas.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
# SAS
RUN groupadd -g 1337 supergroup && \
useradd -m sas && \
usermod -a -G supergroup sas && \
groupadd -g 1002 sasstaff && \
usermod -a -G sasstaff sas && \
echo "sas:sas" | chpasswd
COPY --from=SASHome /usr/local/SASHome /usr/local/SASHome
COPY --from=minio/mc:RELEASE.2022-03-17T20-25-06Z /bin/mc /usr/local/bin/mc-original
RUN apt-get update && apt-get install -y --no-install-recommends \
libmagic1 \
&& rm -rf /var/lib/apt/lists/*
RUN ln -s /usr/local/SASHome/SASFoundation/9.4/bin/sas_en /usr/local/bin/sas && \
usermod -a -G sasstaff jovyan && \
chmod -R 0775 /usr/local/SASHome/studioconfig
WORKDIR /home/sas
ENV PATH=$PATH:/usr/local/SASHome/SASFoundation/9.4/bin
ENV PATH=$PATH:/usr/local/SASHome/SASPrivateJavaRuntimeEnvironment/9.4/jre/bin
RUN /usr/local/SASHome/SASFoundation/9.4/utilities/bin/setuid.sh
ENV SAS_HADOOP_JAR_PATH=/opt/hadoop
EXPOSE 8561 8591 38080
# SASPY
ENV SASPY_VERSION="5.4.0"
RUN pip install sas_kernel
# TODO: make Python version ENV var.
COPY sascfg.py /opt/conda/lib/python3.11/site-packages/saspy/sascfg.py
RUN jupyter nbextension install --py sas_kernel.showSASLog && \
jupyter nbextension enable sas_kernel.showSASLog --py && \
jupyter nbextension install --py sas_kernel.theme && \
jupyter nbextension enable sas_kernel.theme --py && \
jupyter nbextension list
# Jupyter SASStudio Proxy
COPY jupyter-sasstudio-proxy/ /opt/jupyter-sasstudio-proxy/
RUN pip install /opt/jupyter-sasstudio-proxy/
# Must be set in deepest image
ENV DEFAULT_JUPYTER_URL=/lab
# SAS GConfid
COPY G-CONFID107003ELNX6494M7/ /usr/local/SASHome/gensys/G-CONFID107003ELNX6494M7/
COPY sasv9_local.cfg /usr/local/SASHome/SASFoundation/9.4/
# Enable X command on SAS Studio
COPY spawner_usermods.sh /usr/local/SASHome/studioconfig/spawner/