File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- HPCTS_VERSION = " 2022.07 "
1+ HPCTS_VERSION = " 2023.05 "
22SLURM_VERSION = " 21.08.8-2"
33MARIADB_VERSION = 10.3
44MONGODB_VERSION = 5.0
5+ COLDFRONT_RESTORE = " true"
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ RUN /build/install.sh && rm -rf /build
1313COPY --chown=coldfront:coldfront local_settings.py /etc/coldfront/local_settings.py
1414COPY --chown=coldfront:coldfront coldfront.env /etc/coldfront/coldfront.env
1515COPY --chown=coldfront:coldfront checkdb.py /srv/www/checkdb.py
16+ COPY coldfront.dump /usr/share/coldfront/coldfront.dump
1617COPY coldfront-nginx.conf /etc/nginx/conf.d/coldfront.conf
1718COPY entrypoint.sh /usr/local/bin/entrypoint.sh
1819ENTRYPOINT ["/usr/local/bin/entrypoint.sh" ]
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 2424
2525 if ! coldfront show_users_in_project_but_not_in_allocation & > /dev/null; then
2626 echo " -- Initializing coldfront database..."
27- coldfront initial_setup
27+ coldfront initial_setup -f
2828
2929 echo " -- Generating static css files..."
3030 coldfront collectstatic
3434 coldfront shell
3535 fi
3636
37+ if [ " $2 " = " true" ]; then
38+ echo " ---> Restoring coldfront database..."
39+ mysql --host mysql --user coldfrontapp --password=9obCuAphabeg coldfront < /usr/share/coldfront/coldfront.dump
40+ fi
41+
3742 echo " ---> Starting nginx on coldfront..."
3843 /sbin/nginx
3944
Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ ARCHTYPE=`uname -m`
1111
1212log_info " Installing required packages for coldfront.."
1313dnf install -y \
14- python3 \
15- python3-devel \
14+ python39-devel \
1615 memcached \
1716 nginx \
1817 openssl \
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ services:
160160 context : ./coldfront
161161 args :
162162 HPCTS_VERSION : $HPCTS_VERSION
163- command : ["serve"]
163+ command : ["serve", $COLDFRONT_RESTORE ]
164164 hostname : coldfront
165165 container_name : coldfront
166166 networks :
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ log_warn() {
1010
1111start () {
1212 log_info " Fetching latest HPC Toolset Images.."
13- docker- compose pull
13+ docker compose pull
1414
1515 log_info " Starting HPC Toolset Cluster.."
16- docker- compose up -d --no-build
16+ docker compose up -d --no-build
1717
1818 log_info " Coldfront URL: https://localhost:2443"
1919 log_info " OnDemand URL: https://localhost:3443"
@@ -23,14 +23,14 @@ start() {
2323
2424stop () {
2525 log_info " Stopping HPC Toolset Cluster containers.."
26- docker- compose stop
26+ docker compose stop
2727}
2828
2929destroy () {
3030 log_info " Stopping and removing HPC Toolset Cluster containers and volumes.."
31- docker- compose stop && \
32- docker- compose rm -f -v && \
33- docker- compose down -v
31+ docker compose stop && \
32+ docker compose rm -f -v && \
33+ docker compose down -v
3434}
3535
3636cleanup () {
Original file line number Diff line number Diff line change 11ARG HPCTS_VERSION=latest
22
33FROM --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
55RUN 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
87FROM --platform=linux/arm64 ubccr/hpcts:slurm-${HPCTS_VERSION} as stage-arm64
98RUN dnf install -y file lsof sudo gcc gcc-c++ git \
@@ -16,7 +15,6 @@ COPY . /build
1615RUN /build/install-dex-arm64.sh
1716RUN /build/install-passenger-arm64.sh
1817RUN /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
2018RUN rm -rf /build
2119
2220ARG TARGETARCH
@@ -35,6 +33,4 @@ COPY notebook_data /data/notebook_data
3533COPY initializers/dashboard.rb /etc/ood/config/apps/dashboard/initializers/dashboard.rb
3634COPY themes/hpc-coop /usr/share/ondemand-dex/web/themes/hpc-coop
3735
38- RUN sed -i '/ passenger_load_shell_envvars off;/a passenger_preload_bundler on;' /opt/ood/nginx_stage/templates/pun.conf.erb
39-
4036ENTRYPOINT ["/usr/local/bin/entrypoint.sh" ]
Original file line number Diff line number Diff line change 1313 vnc :
1414 script_wrapper : |
1515 export PATH="/opt/TurboVNC/bin:$PATH"
16- export WEBSOCKIFY_CMD="/usr/bin/websockify"
16+ export WEBSOCKIFY_CMD="/usr/local/ bin/websockify"
1717 %s
1818 custom :
1919 xdmod :
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ log_info() {
77 printf " \n\e[0;35m $1 \e[0m\n\n"
88}
99
10- DEX_VERSION=${DEX_VERSION:- 2.31.1 }
11- DEX_PATCH_VERSION=${DEX_PATCH_VERSION:- 703e26bc109e86d00be22ef1803bdb96b2dc09e2 }
10+ DEX_VERSION=${DEX_VERSION:- 2.32.0 }
11+ DEX_PATCH_VERSION=${DEX_PATCH_VERSION:- 9366a1969bd656daa1df44e0bdd02f14437ed466 }
1212
1313dnf install -y golang-bin
1414log_info " Install dex ${DEX_VERSION} ..."
You can’t perform that action at this time.
0 commit comments