From 1386481a125fafbe04c88b2f90ad4007c34f74f6 Mon Sep 17 00:00:00 2001 From: OrisDorch <14351392+orisdorch@users.noreply.github.com> Date: Wed, 9 Feb 2022 12:16:36 -0500 Subject: [PATCH 1/2] Remove hard coded UID 1000 for nem account Allows the system to dynamically determine the appropriate UID. Improves compatibility for hosts with existing user accounts. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 894df6f..273f9d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ RUN sha=$(curl -L -s http://hugealice.nem.ninja:7890/transaction/get?hash=$(curl RUN tar zxf nis-0.6.100.tgz -RUN useradd --uid 1000 nem +RUN useradd nem RUN mkdir -p /home/nem/nem/ncc/ RUN mkdir -p /home/nem/nem/nis/ RUN chown nem /home/nem/nem -R From e4d297a73f796f79470080319956f67776e6ac64 Mon Sep 17 00:00:00 2001 From: OrisDorch <14351392+orisdorch@users.noreply.github.com> Date: Wed, 9 Feb 2022 12:17:52 -0500 Subject: [PATCH 2/2] Remove hard coded UID 1000 for nem account Allows the system to dynamically determine the appropriate UID. Improves compatibility for hosts with existing user accounts. --- boot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot.sh b/boot.sh index 9e881d1..0bf89a6 100755 --- a/boot.sh +++ b/boot.sh @@ -35,7 +35,7 @@ config_file=$PWD/custom-configs/supervisord.conf mkdir -p $PWD/nem/ncc mkdir -p $PWD/nem/nis -chown -R 1000 nem +chown -R nem docker run --restart always --name mynem_container -v ${PWD}/nem:/home/nem/nem $config_mounts -t -d -p 7777:7777 -p 7778:7778 -p 7880:7880 -p 7890:7890 -p 8989:8989 mynem_image