set USER root after each directive block

matches expectations in the directive sequences

not strictly required after preassemble because we have no root steps between preassemble and assemble,
so we could remove the `last_user = "root"` there instead

includes regression test
pull/1115/head
Min RK 2022-01-20 10:04:39 +01:00
rodzic bf99b93dae
commit 945c45299f
5 zmienionych plików z 13 dodań i 0 usunięć

Wyświetl plik

@ -100,6 +100,8 @@ COPY --chown={{ user }}:{{ user }} {{ src }} {{ dst }}
{% for sd in build_script_directives -%}
{{ sd }}
{% endfor %}
# ensure root user after build scripts
USER root
# Allow target path repo is cloned to be configurable
ARG REPO_DIR=${HOME}
@ -138,6 +140,8 @@ COPY --chown={{ user }}:{{ user }} src/{{ src }} ${REPO_DIR}/{{ dst }}
{% for sd in preassemble_script_directives -%}
{{ sd }}
{% endfor %}
# ensure root user after preassemble scripts
USER root
# Copy stuff.
COPY --chown={{ user }}:{{ user }} src/ ${REPO_DIR}

Wyświetl plik

@ -0,0 +1 @@
libsodium-dev

Wyświetl plik

@ -0,0 +1 @@
install.packages("viridisLite")

Wyświetl plik

@ -0,0 +1 @@
r-4.1-2021-10-22

Wyświetl plik

@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
apt list
apt list | grep libsodium-dev
# make sure we got R
which R