Skip to content

Commit

Permalink
Misc updates (#946)
Browse files Browse the repository at this point in the history
* add docs for container_start_args

* correct debian release package url

* correct docs for find_port
  • Loading branch information
johrstrom authored Mar 5, 2024
1 parent b44cacc commit 2cd4d5d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 10 deletions.
9 changes: 5 additions & 4 deletions source/how-tos/app-development/interactive/template.rst
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,16 @@ but not limited to:
There exists some helpful Bash functions that can be used in this sourced
script:

.. describe:: find_port [MIN_PORT] [MAX_PORT]
.. describe:: find_port [HOSTNAME] [MIN_PORT] [MAX_PORT]

Finds an available port within the specified range [MIN_PORT..MAX_PORT].
Finds an available port within the specified range [MIN_PORT..MAX_PORT]
on the [HOSTNAME].

Default
[2000..65535]
localhost 2000 65535

Example
Find a random port that is available within the default range
Find a random port that is available within the default range on the ``localhost``.

.. code-block:: sh
Expand Down
12 changes: 6 additions & 6 deletions source/installation/install-software.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ Some operating systems use `Software Collections`_ to satisfy these.
.. code-block:: sh
sudo apt install apt-transport-https ca-certificates
wget -O /tmp/ondemand-release-web_{{ ondemand_version }}.0-focal_all.deb https://apt.osc.edu/ondemand/{{ ondemand_version }}/ondemand-release-web_{{ ondemand_version }}.0-focal_all.deb
sudo apt install /tmp/ondemand-release-web_{{ ondemand_version }}.0-focal_all.deb
wget -O /tmp/ondemand-release-web_{{ ondemand_version }}.1-focal_all.deb https://apt.osc.edu/ondemand/{{ ondemand_version }}/ondemand-release-web_{{ ondemand_version }}.1-focal_all.deb
sudo apt install /tmp/ondemand-release-web_{{ ondemand_version }}.1-focal_all.deb
sudo apt update
sudo apt install ondemand
Expand All @@ -132,8 +132,8 @@ Some operating systems use `Software Collections`_ to satisfy these.
.. code-block:: sh
sudo apt install apt-transport-https ca-certificates
wget -O /tmp/ondemand-release-web_{{ ondemand_version }}.0-jammy_all.deb https://apt.osc.edu/ondemand/{{ ondemand_version }}/ondemand-release-web_{{ ondemand_version }}.0-jammy_all.deb
sudo apt install /tmp/ondemand-release-web_{{ ondemand_version }}.0-jammy_all.deb
wget -O /tmp/ondemand-release-web_{{ ondemand_version }}.1-jammy_all.deb https://apt.osc.edu/ondemand/{{ ondemand_version }}/ondemand-release-web_{{ ondemand_version }}.1-jammy_all.deb
sudo apt install /tmp/ondemand-release-web_{{ ondemand_version }}.1-jammy_all.deb
sudo apt update
sudo apt install ondemand
Expand All @@ -143,8 +143,8 @@ Some operating systems use `Software Collections`_ to satisfy these.
.. code-block:: sh
sudo apt install apt-transport-https ca-certificates
wget -O /tmp/ondemand-release-web_{{ ondemand_version }}.0-bookworm_all.deb https://apt.osc.edu/ondemand/{{ ondemand_version }}/ondemand-release-web_{{ ondemand_version }}.0-bookworm_all.deb
sudo apt install /tmp/ondemand-release-web_{{ ondemand_version }}.0-bookworm_all.deb
wget -O /tmp/ondemand-release-web_{{ ondemand_version }}.1-bookworm_all.deb https://apt.osc.edu/ondemand/{{ ondemand_version }}/ondemand-release-web_{{ ondemand_version }}.1-bookworm_all.deb
sudo apt install /tmp/ondemand-release-web_{{ ondemand_version }}.1-bookworm_all.deb
sudo apt update
sudo apt install ondemand
Expand Down
19 changes: 19 additions & 0 deletions source/reference/files/submit-yml/vnc-container-bc-options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ All the options in :ref:`vnc-bc-options` apply in addition to what's listed belo
container_bindpath: ""
container_module: "singularity"
container_command: "singularity"
container_start_args: []
.. describe:: container_path (String, "vnc_container.sif")
Expand Down Expand Up @@ -89,6 +90,24 @@ All the options in :ref:`vnc-bc-options` apply in addition to what's listed belo
container_module: "apptainer"
.. describe:: container_start_args (String, [])

Arguments to pass to the container start command.

Default
Pass no additional arguments.

.. code-block:: yaml
container_start_args: []
Example
Pass ``--fakeroot`` to the container ``start`` command.

.. code-block:: yaml
container_start_args:
- "--fakeroot"
Starter def file
................
Expand Down

0 comments on commit 2cd4d5d

Please sign in to comment.