apptainer: add symlinks for asciidoctor wrapper script
This commit is contained in:
parent
fdf8c534e1
commit
147365885c
1
TODO.md
1
TODO.md
|
@ -38,7 +38,6 @@ Plans for the future of this dotfiles.
|
|||
- [ ] Build podman container images with ansible-bender
|
||||
- [ ] Add `target-determinator` and `aspect-cli` to packages (or containers,
|
||||
with underlying `bazel`)
|
||||
- [ ] Migrate hardcoded paths to use XDG variables
|
||||
|
||||
## Sandboxing
|
||||
|
||||
|
|
|
@ -70,6 +70,9 @@ local docker_images =
|
|||
name: 'asciidoctor',
|
||||
image: 'docker.io/asciidoctor/docker-asciidoctor',
|
||||
tag: '1.58.0',
|
||||
|
||||
// Other asciidoctor-* executables (extentions) will be symlinked into this one
|
||||
command: '"$(basename "$0")"',
|
||||
},
|
||||
{
|
||||
name: 'opam',
|
||||
|
@ -101,4 +104,25 @@ local docker_images =
|
|||
},
|
||||
];
|
||||
|
||||
std.manifestYamlDoc([docker_to_apptainer(x) for x in docker_images])
|
||||
|
||||
std.manifestYamlDoc([docker_to_apptainer(x) for x in docker_images] + [
|
||||
{
|
||||
name: 'apptainer | Symlink asciidoctor-* executables',
|
||||
tags: 'asciidoctor-apptainer',
|
||||
file: {
|
||||
src: './asciidoctor',
|
||||
dest: '{{ xdg_dir.bin_home }}/asciidoctor-{{ item }}',
|
||||
state: 'link',
|
||||
},
|
||||
loop: [
|
||||
'confluence',
|
||||
'epub3',
|
||||
'fb2',
|
||||
'pdf',
|
||||
'pdf-optimize',
|
||||
'reducer',
|
||||
'revealjs',
|
||||
'safe',
|
||||
],
|
||||
},
|
||||
])
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
TERM=xterm-256color \
|
||||
exec apptainer --silent --quiet exec \
|
||||
--ipc --no-eval --no-privs --unsquash --userns --uts --pid --cleanenv \
|
||||
{{ xdg_dir.libexec_dir }}/asciidoctor.sif asciidoctor "$@"
|
||||
{{ xdg_dir.libexec_dir }}/asciidoctor.sif "$(basename "$0")" "$@"
|
||||
dest: '{{ xdg_dir.bin_home }}/asciidoctor'
|
||||
mode: "755"
|
||||
name: apptainer | Create asciidoctor-apptainer launch script
|
||||
|
@ -157,3 +157,18 @@
|
|||
name: apptainer | Create nomad-apptainer launch script
|
||||
name: apptainer | Create nomad environment
|
||||
tags: nomad-apptainer
|
||||
- file:
|
||||
dest: '{{ xdg_dir.bin_home }}/asciidoctor-{{ item }}'
|
||||
src: ./asciidoctor
|
||||
state: link
|
||||
loop:
|
||||
- confluence
|
||||
- epub3
|
||||
- fb2
|
||||
- pdf
|
||||
- pdf-optimize
|
||||
- reducer
|
||||
- revealjs
|
||||
- safe
|
||||
name: apptainer | Symlink asciidoctor-* executables
|
||||
tags: asciidoctor-apptainer
|
||||
|
|
Loading…
Reference in New Issue