Skip to content

Commit 6b52c22

Browse files
committed
Merge branch 'master' into isc23
2 parents c80556d + aa252d0 commit 6b52c22

30 files changed

Lines changed: 2804 additions & 42 deletions

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
HPCTS_VERSION="2022.07"
1+
HPCTS_VERSION="2023.05"
22
SLURM_VERSION="21.08.8-2"
33
MARIADB_VERSION=10.3
44
MONGODB_VERSION=5.0

coldfront/entrypoint.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ then
2424

2525
if ! coldfront show_users_in_project_but_not_in_allocation &> /dev/null; then
2626
echo "-- Initializing coldfront database..."
27-
coldfront initial_setup
28-
29-
echo "-- Generating static css files..."
30-
coldfront collectstatic
27+
coldfront initial_setup -f
3128

3229
echo "-- Creating superuser..."
3330
echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', 'admin@localhost', 'admin')" | \
3431
coldfront shell
3532
fi
3633

34+
echo "-- Generating static css files..."
35+
coldfront collectstatic --no-input
36+
3737
echo "---> Starting nginx on coldfront..."
3838
/sbin/nginx
3939

coldfront/install.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ ARCHTYPE=`uname -m`
1111

1212
log_info "Installing required packages for coldfront.."
1313
dnf install -y \
14-
python3 \
15-
python3-devel \
14+
python39-devel \
1615
memcached \
1716
nginx \
1817
openssl \

database/coldfront.dump

Lines changed: 2290 additions & 0 deletions
Large diffs are not rendered by default.

database/create-coldfront-db.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,9 @@ EOF
1616
echo "Granting coldfront user access to coldfront database.."
1717
echo "grant all on coldfront.* to 'coldfrontapp'@'%';" | mysql -uroot
1818
echo "flush privileges;" | mysql -uroot
19+
20+
21+
if [ -f "/docker-entrypoint-initdb.d/coldfront.dump" ]; then
22+
echo "Restoring coldfront database..."
23+
mysql -uroot coldfront < /docker-entrypoint-initdb.d/coldfront.dump
24+
fi

ondemand/Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
ARG HPCTS_VERSION=latest
22

33
FROM --platform=linux/amd64 ubccr/hpcts:slurm-${HPCTS_VERSION} as stage-amd64
4-
RUN dnf install -y https://yum.osc.edu/ondemand/2.0/ondemand-release-web-2.0-1.noarch.rpm
4+
RUN dnf install -y https://yum.osc.edu/ondemand/3.0/ondemand-release-web-3.0-1.noarch.rpm
55
RUN dnf install -y netcat ondemand ondemand-dex
6-
RUN sed -i 's/\-nohttpd//' /opt/ood/ondemand/root/usr/share/gems/2.7/ondemand/2.0.27/gems/ood_core-0.19.0/lib/ood_core/batch_connect/templates/vnc.rb
76

87
FROM --platform=linux/arm64 ubccr/hpcts:slurm-${HPCTS_VERSION} as stage-arm64
98
RUN dnf install -y file lsof sudo gcc gcc-c++ git \
@@ -16,7 +15,6 @@ COPY . /build
1615
RUN /build/install-dex-arm64.sh
1716
RUN /build/install-passenger-arm64.sh
1817
RUN /build/install-ood-arm64.sh
19-
RUN sed -i 's/\-nohttpd//' /usr/share/gems/gems/ood_core-0.19.0/lib/ood_core/batch_connect/templates/vnc.rb
2018
RUN rm -rf /build
2119

2220
ARG TARGETARCH
@@ -32,9 +30,10 @@ COPY python_job_template /etc/ood/config/apps/myjobs/templates/python
3230
COPY motd /etc/motd
3331
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
3432
COPY notebook_data /data/notebook_data
35-
COPY initializers/dashboard.rb /etc/ood/config/apps/dashboard/initializers/dashboard.rb
33+
COPY initializers /etc/ood/config/apps/dashboard/initializers
3634
COPY themes/hpc-coop /usr/share/ondemand-dex/web/themes/hpc-coop
37-
38-
RUN sed -i '/ passenger_load_shell_envvars off;/a passenger_preload_bundler on;' /opt/ood/nginx_stage/templates/pun.conf.erb
35+
COPY config/dashboard/env /etc/ood/config/apps/dashboard/env
36+
COPY config/ondemand.yml /etc/ood/config/ondemand.d/ondemand.yml
37+
COPY config/dashboard/widgets /etc/ood/config/apps/dashboard/views/widgets
3938

4039
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]

0 commit comments

Comments
 (0)