From b44926d5973905338c8d5c4ce01b64cca5eb3f45 Mon Sep 17 00:00:00 2001 From: Yethal <26117918+Yethal@users.noreply.github.com> Date: Wed, 28 Jun 2023 20:04:32 +0200 Subject: [PATCH] Pre-register plugins inside docker container (#9533) # Description Plugins bundled with nushell will be kept inside docker container and preregistered # User-Facing Changes # Tests + Formatting # After Submitting --- docker/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index c987642392..c24cffa198 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -20,9 +20,11 @@ RUN echo '/usr/bin/nu' >> /etc/shells \ |xargs -I{} wget {} \ && tar -xzf nu* \ && cd nu*-musl \ - && mv nu /usr/bin/nu \ + && mv nu* /usr/bin \ && chmod +x /usr/bin/nu \ && chown -R nushell:nushell /home/nushell/.config/nushell \ + && ls /usr/bin/nu_plugin* \ + |xargs -I{} su -c 'register {}' nushell \ && rm -rf /tmp/* USER nushell