mirror of
				https://github.com/ClusterCockpit/cc-docker.git
				synced 2025-10-30 08:45:06 +01:00 
			
		
		
		
	Adapting docker files to generic arch
This commit is contained in:
		| @@ -1,6 +1,9 @@ | ||||
| #!/usr/bin/env bash | ||||
| set -e | ||||
|  | ||||
| # Determine the system architecture dynamically | ||||
| ARCH=$(uname -m) | ||||
|  | ||||
| # start sshd server | ||||
| _sshd_host() { | ||||
|   if [ ! -d /var/run/sshd ]; then | ||||
| @@ -70,12 +73,12 @@ _copy_secrets() { | ||||
|  | ||||
| # run slurmctld | ||||
| _slurmctld() { | ||||
|     cd /root/rpmbuild/RPMS/aarch64 | ||||
|     yum -y --nogpgcheck localinstall slurm-22.05.6-1.el8.aarch64.rpm \ | ||||
|         slurm-perlapi-22.05.6-1.el8.aarch64.rpm \ | ||||
|         slurm-slurmd-22.05.6-1.el8.aarch64.rpm \ | ||||
|         slurm-torque-22.05.6-1.el8.aarch64.rpm \ | ||||
|         slurm-slurmctld-22.05.6-1.el8.aarch64.rpm | ||||
|     cd /root/rpmbuild/RPMS/$ARCH | ||||
|     yum -y --nogpgcheck localinstall slurm-22.05.6-1.el8.$ARCH.rpm \ | ||||
|         slurm-perlapi-22.05.6-1.el8.$ARCH.rpm \ | ||||
|         slurm-slurmd-22.05.6-1.el8.$ARCH.rpm \ | ||||
|         slurm-torque-22.05.6-1.el8.$ARCH.rpm \ | ||||
|         slurm-slurmctld-22.05.6-1.el8.$ARCH.rpm | ||||
|     echo "checking for slurmdbd.conf" | ||||
|     while [ ! -f /.secret/slurmdbd.conf ]; do | ||||
|         echo -n "." | ||||
| @@ -109,4 +112,4 @@ _munge_start | ||||
| _copy_secrets | ||||
| _slurmctld | ||||
|  | ||||
| tail -f /dev/null | ||||
| tail -f /dev/null | ||||
		Reference in New Issue
	
	Block a user