forked from OSC/ondemand
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.demo
More file actions
31 lines (24 loc) · 1.09 KB
/
Dockerfile.demo
File metadata and controls
31 lines (24 loc) · 1.09 KB
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
FROM rockylinux/rockylinux:8
LABEL maintainer="tdockendorf@osc.edu; johrstrom@osc.edu"
RUN dnf install -y https://yum.osc.edu/ondemand/latest/ondemand-release-web-latest-1-6.noarch.rpm && \
dnf clean all && rm -rf /var/cache/dnf/*
RUN dnf -y update && \
dnf install -y dnf-utils && \
dnf config-manager --set-enabled powertools && \
dnf -y module enable nodejs:20 ruby:3.3 && \
dnf install -y epel-release && \
dnf install -y procps libffi-devel python3-devel gcc && \
dnf install -y ondemand ondemand-dex && \
dnf clean all && rm -rf /var/cache/dnf/*
RUN pip3 install 'setuptools_scm<7' && \
pip3 install jupyter
RUN sed -i 's|--rpm|--rpm -f --insecure|g' /etc/systemd/system/httpd.service.d/ood-portal.conf
RUN systemctl enable httpd ondemand-dex
RUN useradd jessie
RUN chmod 600 /etc/shadow
COPY lib/files/demo/ood_portal.yml /etc/ood/config/ood_portal.yml
COPY lib/files/demo/clusters.d /etc/ood/config/clusters.d
COPY lib/files/demo/apps /var/www/ood/apps/sys/
COPY lib/files/demo/config /etc/ood/config/apps/
COPY lib/files/demo/motd.md /etc/motd.md
CMD [ "/sbin/init" ]