diff --git a/src/lino/.devcontainer/Dockerfile b/src/lino/.devcontainer/Dockerfile index aa1c912..91e0531 100644 --- a/src/lino/.devcontainer/Dockerfile +++ b/src/lino/.devcontainer/Dockerfile @@ -1,4 +1,21 @@ -FROM cgifr/lino-toolbox:${templateOption:imageVariant} +FROM cgifr/lino-toolbox:${templateOption:imageVariant}-debian +ARG USERNAME=lino +ARG USER_UID=1000 +ARG USER_GID=$USER_UID + + +USER "root" + +# Create the user lino +RUN groupadd --gid $USER_GID $USERNAME \ + && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \ + # add sudo for user + && apt-get update \ + && apt-get install -y sudo \ + && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ + && chmod 0440 /etc/sudoers.d/$USERNAME + +USER $USERNAME CMD [ "sleep", "infinity" ] diff --git a/src/lino/devcontainer-template.json b/src/lino/devcontainer-template.json index 7551f8a..ed85cbb 100644 --- a/src/lino/devcontainer-template.json +++ b/src/lino/devcontainer-template.json @@ -10,7 +10,7 @@ "type": "string", "description": "version of the lino's toolbox image", "proposals": [ - "v1.3.0 # (lino:V2.4.0, pimo:v1.19.0)" + "v1.3.0" ], "default": "v1.3.0" } diff --git a/test/lino/test.sh b/test/lino/test.sh index a514ff4..4ebfc38 100644 --- a/test/lino/test.sh +++ b/test/lino/test.sh @@ -3,10 +3,12 @@ cd $(dirname "$0") source test-utils.sh # Template specific tests -check "distro" lsb_release -c -check "lino" [ $(lino --version) ] -check "pimo" [ $(pimo --version) ] -check "sigo" [ $(sigo --version) ] +check "jq" jq --version +check "lino" lino --version +check "pimo" pimo --version +check "sigo" sigo --version +check "mimo" mimo --version +check "dsq" dsq --version # Report result reportResults