Add node fix to debian 11, ubuntu 20.04 and ubuntu 22.04

This commit is contained in:
Deda 2024-02-24 20:12:47 +01:00
parent f87ee08cd3
commit f85e5dbf13
5 changed files with 35 additions and 0 deletions

View File

@ -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"]

View File

@ -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"]

View File

@ -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"]

View File

@ -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"]

View File

@ -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"]