Skip to content

Commit c98f0fd

Browse files
Verbiage: more of Uppercase Apptainer in comments and messages, less aka
1 parent 7c73b0a commit c98f0fd

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

BrainPortal/app/models/cluster_task.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1873,7 +1873,7 @@ def submit_cluster_job
18731873
18741874
test $status -eq 0 && break # all is good
18751875
1876-
# Detect failed boot of apptainer container
1876+
# Detect failed boot of Apptainer container
18771877
if ! grep -i 'FATAL.*container.*creation.*failed' #{science_stderr_basename} >/dev/null ; then
18781878
break # move on, for any other error or even non zero successes
18791879
fi
@@ -2353,7 +2353,7 @@ def use_apptainer_short_workdir?
23532353
# is the raw scientific bash script.
23542354
def apptainer_commands(command_script)
23552355

2356-
# Basename of the apptainer wrapper script
2356+
# Basename of the Apptainer wrapper script
23572357
apptainer_wrapper_basename = ".apptainer.#{self.run_id}.sh"
23582358

23592359
# Values we substitute in our script:
@@ -2416,7 +2416,7 @@ def apptainer_commands(command_script)
24162416
# Wrap new HOME environment
24172417
command_script = wrap_new_HOME(command_script, effect_workdir)
24182418

2419-
# Set apptainer command
2419+
# Set Apptainer command
24202420
apptainer_commands = <<-APPTAINER_COMMANDS
24212421
24222422
# Note to developers:
@@ -2435,7 +2435,7 @@ def apptainer_commands(command_script)
24352435
apptainer_basename=""
24362436
fi
24372437
2438-
# Build a local wrapper script to run in a apptainer container
2438+
# Build a local wrapper script to run in an Apptainer container
24392439
cat << \"APPTAINERJOB\" > #{apptainer_wrapper_basename.bash_escape}
24402440
#!/bin/bash
24412441
@@ -2515,7 +2515,7 @@ def apptainer_commands(command_script)
25152515
# 4) we mount each (if any) of the root directories for local data providers
25162516
# 5) we mount (if any) other fixed file system overlays
25172517
# 6) we mount (if any) capture ext3 filesystems
2518-
# 7) with -H we set the task's work directory as the apptainer $HOME directory
2518+
# 7) with -H we set the task's work directory as the Apptainer $HOME directory
25192519
#{apptainer_executable_name} \\
25202520
$mode \\
25212521
#{container_exec_args} \\
@@ -2677,7 +2677,7 @@ def load_apptainer_image_from_repo #:nodoc:
26772677
File.open(capfile,"w") do |fh|
26782678
fh.write("=== Stdout ===\n#{out}\n=== Stderr ===\n#{err}\n=== ====== ===\n")
26792679
end
2680-
cb_error "Cannot build apptainer image. Captured outputs are in #{capfile}"
2680+
cb_error "Cannot build Apptainer image. Captured outputs are in #{capfile}"
26812681
end
26822682
end
26832683

BrainPortal/app/models/sing_bindmount_data_provider.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def check_remote_config! #:nodoc:
118118
remote_cmd = "cd #{self.real_remote_dir.to_s.bash_escape} && test -f #{APPTAINER_IMAGE_BASENAME} && echo OK-Exists"
119119
text = self.remote_bash_this(remote_cmd)
120120
# The following check will also make sure the remote shell is clean!
121-
cb_error "No installed apptainer image #{APPTAINER_IMAGE_BASENAME}, or remote shell is unclean" unless text =~ /\AOK-Exists\s*\z/
121+
cb_error "No installed Apptainer image #{APPTAINER_IMAGE_BASENAME}, or remote shell is unclean" unless text =~ /\AOK-Exists\s*\z/
122122

123123
# Check we have the remote filesystem file
124124
remote_cmd = "test -f #{self.remote_dir.to_s.bash_escape} && echo OK-Exists"
@@ -127,14 +127,14 @@ def check_remote_config! #:nodoc:
127127
# Check we have Apptainer 1.1 or better
128128
remote_cmd = "(singularity --version 2>/dev/null || apptainer --version 2>/dev/null)"
129129
text = self.remote_bash_this(remote_cmd)
130-
cb_error "Can't find apptainer version number on remote host" unless text =~ /^((singularity|apptainer) version )?(\d+)\.(\d+)/
130+
cb_error "Can't find Apptainer version number on remote host" unless text =~ /^((singularity|apptainer) version )?(\d+)\.(\d+)/
131131
_, _, tool, major, minor = Regexp.last_match.to_a
132132
major = major.to_i
133133
minor = minor.to_i
134134
if tool == 'singularity'
135135
cb_error "singularity version number on remote host is less than 3.7" if major < 3 || (major == 3 && minor < 7)
136136
else # tool == 'apptainer'
137-
cb_error "apptainer version number on remote host is less than 1.1" if major < 1 || (major == 1 && minor < 1)
137+
cb_error "Apptainer version number on remote host is less than 1.1" if major < 1 || (major == 1 && minor < 1)
138138
end
139139

140140
# Check that inside the container, the containerized path exists

BrainPortal/app/models/sing_squashfs_data_provider.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def apptainer_executable_name
8686
# also works if an old Singularity and uptodate Apptainer
8787
# todo loop over list of several candidate executables
8888
text = self.remote_bash_this(remote_cmd)
89-
cb_error "Can't find apptainer version number on remote host" unless text =~ /^((singularity|apptainer) version )?(\d+)\.(\d+)/
89+
cb_error "Can't find Apptainer version number on remote host" unless text =~ /^((singularity|apptainer) version )?(\d+)\.(\d+)/
9090
_, _, @_tool, major, minor = Regexp.last_match.to_a
9191
major = major.to_i
9292
minor = minor.to_i

BrainPortal/app/views/data_providers/_dp_types_explained.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ acts like a FlatDataProvider.
116116

117117
<strong>SingSquashfsDataProvider</strong> This class connects to a set of
118118
one or several squashfs files (all named with <em>.squashfs</em> extensions) through
119-
a Apptainer (Sigularity container handler. The requirements are:<br>
119+
a Apptainer (Singularity) container handler. The requirements are:<br>
120120
<ul>
121121
<li>that all the squashfs files are in the <em>Physical Data Location</em>,
122122
<li>the Apptainer image is also there and named <em><%= SingSquashfsDataProvider::APPTAINER_IMAGE_BASENAME %></em>,

BrainPortal/cbrain_plugins/cbrain-plugins-base/userfiles/singularity_image/singularity_image.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def self.file_name_pattern #:nodoc:
3333

3434
def is_viewable? #:nodoc:
3535
if ! self.has_apptainer_support?
36-
return [ "The local portal doesn't support inspecting Apptainer (aka Singularity) images." ]
36+
return [ "The local portal doesn't support inspecting Apptainer (Singularity) images." ]
3737
elsif ! self.is_locally_synced?
3838
return [ "Apptainer (Singularity) image file not yet synchronized" ]
3939
else

0 commit comments

Comments
 (0)