From f85e5dbf133c66bf587a9e3b33d53cbbd293e51e Mon Sep 17 00:00:00 2001 From: Deda Date: Sat, 24 Feb 2024 20:12:47 +0100 Subject: [PATCH] Add node fix to debian 11, ubuntu 20.04 and ubuntu 22.04 --- release/package/debian-11-arm/Dockerfile | 7 +++++++ release/package/debian-11/Dockerfile | 7 +++++++ release/package/ubuntu-20.04/Dockerfile | 7 +++++++ release/package/ubuntu-22.04-arm/Dockerfile | 7 +++++++ release/package/ubuntu-22.04/Dockerfile | 7 +++++++ 5 files changed, 35 insertions(+) diff --git a/release/package/debian-11-arm/Dockerfile b/release/package/debian-11-arm/Dockerfile index e6cedb45d..5358b9343 100644 --- a/release/package/debian-11-arm/Dockerfile +++ b/release/package/debian-11-arm/Dockerfile @@ -22,4 +22,11 @@ RUN git clone https://github.com/memgraph/memgraph.git \ && ./environment/os/debian-11-arm.sh install TOOLCHAIN_RUN_DEPS \ && ./environment/os/debian-11-arm.sh install MEMGRAPH_BUILD_DEPS +# Create mg user and set as default +RUN useradd -m -s /bin/bash mg +USER mg + +# Fix node +RUN curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash + ENTRYPOINT ["sleep", "infinity"] diff --git a/release/package/debian-11/Dockerfile b/release/package/debian-11/Dockerfile index c8bb4e6fa..d1de0bc11 100644 --- a/release/package/debian-11/Dockerfile +++ b/release/package/debian-11/Dockerfile @@ -22,4 +22,11 @@ RUN git clone https://github.com/memgraph/memgraph.git \ && ./environment/os/debian-11.sh install TOOLCHAIN_RUN_DEPS \ && ./environment/os/debian-11.sh install MEMGRAPH_BUILD_DEPS +# Create mg user and set as default +RUN useradd -m -s /bin/bash mg +USER mg + +# Fix node +RUN curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash + ENTRYPOINT ["sleep", "infinity"] diff --git a/release/package/ubuntu-20.04/Dockerfile b/release/package/ubuntu-20.04/Dockerfile index 346919440..a0f4d3b80 100644 --- a/release/package/ubuntu-20.04/Dockerfile +++ b/release/package/ubuntu-20.04/Dockerfile @@ -22,4 +22,11 @@ RUN git clone https://github.com/memgraph/memgraph.git \ && ./environment/os/ubuntu-20.04.sh install TOOLCHAIN_RUN_DEPS \ && ./environment/os/ubuntu-20.04.sh install MEMGRAPH_BUILD_DEPS +# Create mg user and set as default +RUN useradd -m -s /bin/bash mg +USER mg + +# Fix node +RUN curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash + ENTRYPOINT ["sleep", "infinity"] diff --git a/release/package/ubuntu-22.04-arm/Dockerfile b/release/package/ubuntu-22.04-arm/Dockerfile index b2fa6f4f8..2bf7789fa 100644 --- a/release/package/ubuntu-22.04-arm/Dockerfile +++ b/release/package/ubuntu-22.04-arm/Dockerfile @@ -22,4 +22,11 @@ RUN git clone https://github.com/memgraph/memgraph.git \ && ./environment/os/ubuntu-22.04-arm.sh install TOOLCHAIN_RUN_DEPS \ && ./environment/os/ubuntu-22.04-arm.sh install MEMGRAPH_BUILD_DEPS +# Create mg user and set as default +RUN useradd -m -s /bin/bash mg +USER mg + +# Fix node +RUN curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash + ENTRYPOINT ["sleep", "infinity"] diff --git a/release/package/ubuntu-22.04/Dockerfile b/release/package/ubuntu-22.04/Dockerfile index 47570e6ad..88f958b9f 100644 --- a/release/package/ubuntu-22.04/Dockerfile +++ b/release/package/ubuntu-22.04/Dockerfile @@ -22,4 +22,11 @@ RUN git clone https://github.com/memgraph/memgraph.git \ && ./environment/os/ubuntu-22.04.sh install TOOLCHAIN_RUN_DEPS \ && ./environment/os/ubuntu-22.04.sh install MEMGRAPH_BUILD_DEPS +# Create mg user and set as default +RUN useradd -m -s /bin/bash mg +USER mg + +# Fix node +RUN curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash + ENTRYPOINT ["sleep", "infinity"]