From f9df8c7fab5ce46489624db16a5299ac437aaa13 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Thu, 26 Aug 2021 10:53:53 -0700 Subject: [PATCH 1/3] fix(production): Running Docker as root --- production/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/production/Dockerfile b/production/Dockerfile index 3b60e8a..01f8e61 100644 --- a/production/Dockerfile +++ b/production/Dockerfile @@ -23,9 +23,9 @@ WORKDIR /home/safeuser #RUN runuser -l safeuser -c "npm config set prefix '~/.npm-global'" # Switch to user account. -USER safeuser +#USER safeuser # Prep 'sudo' commands. -RUN echo 'abcd8765' | sudo -S pwd +#RUN echo 'abcd8765' | sudo -S pwd # Clone the rest.bitcoin.com repository WORKDIR /home/safeuser @@ -39,7 +39,7 @@ WORKDIR /home/safeuser/ipfs-service-provider RUN git checkout ct-unstable # Install dependencies -RUN mkdir .ipfsdata +#RUN mkdir .ipfsdata RUN npm install -g @mapbox/node-pre-gyp RUN npm install From 0480f542878f58ce6634a8a0f62892d6840b6c98 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Thu, 26 Aug 2021 21:23:37 -0700 Subject: [PATCH 2/3] fix(ipfs-coord): Upgrading to v6.3.0 --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4e0cd94..d6bb258 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "bcryptjs": "^2.4.3", "glob": "^7.1.6", "ipfs": "0.55.4", - "ipfs-coord": "^6.1.8", + "ipfs-coord": "^6.3.0", "jsonrpc-lite": "^2.2.0", "jsonwebtoken": "^8.5.1", "jwt-bch-lib": "^1.3.0", @@ -10028,9 +10028,9 @@ } }, "node_modules/ipfs-coord": { - "version": "6.1.8", - "resolved": "https://registry.npmjs.org/ipfs-coord/-/ipfs-coord-6.1.8.tgz", - "integrity": "sha512-vzRbtBw+4X3r+mgJtcHkVb7tQek1SaeVOGOEX+xUgyCMrUKetD9BcIaCy7OvdUppqiZnJQHBMv6oQgSdcxJNLw==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/ipfs-coord/-/ipfs-coord-6.3.0.tgz", + "integrity": "sha512-bxvXq8eq+xsy0IKzEa7/iC+N4E3fDaTjxhw0KKYybE7iBUv/HS+iaMQNqL6K5i8IwUw19HwYY3oagQNz+G+Sxw==", "dependencies": { "bch-encrypt-lib": "^2.0.0", "orbit-db": "^0.26.1" @@ -34360,9 +34360,9 @@ } }, "ipfs-coord": { - "version": "6.1.8", - "resolved": "https://registry.npmjs.org/ipfs-coord/-/ipfs-coord-6.1.8.tgz", - "integrity": "sha512-vzRbtBw+4X3r+mgJtcHkVb7tQek1SaeVOGOEX+xUgyCMrUKetD9BcIaCy7OvdUppqiZnJQHBMv6oQgSdcxJNLw==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/ipfs-coord/-/ipfs-coord-6.3.0.tgz", + "integrity": "sha512-bxvXq8eq+xsy0IKzEa7/iC+N4E3fDaTjxhw0KKYybE7iBUv/HS+iaMQNqL6K5i8IwUw19HwYY3oagQNz+G+Sxw==", "requires": { "bch-encrypt-lib": "^2.0.0", "orbit-db": "^0.26.1" diff --git a/package.json b/package.json index 4ed4f68..ed3ceef 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "bcryptjs": "^2.4.3", "glob": "^7.1.6", "ipfs": "0.55.4", - "ipfs-coord": "^6.1.8", + "ipfs-coord": "^6.3.0", "jsonrpc-lite": "^2.2.0", "jsonwebtoken": "^8.5.1", "jwt-bch-lib": "^1.3.0", From 326271f703331f42938271ec26bd442c99b32a79 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Thu, 26 Aug 2021 21:24:27 -0700 Subject: [PATCH 3/3] Updating Dockerfile --- production/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/production/Dockerfile b/production/Dockerfile index 01f8e61..5d0f85f 100644 --- a/production/Dockerfile +++ b/production/Dockerfile @@ -36,7 +36,7 @@ RUN git clone https://github.com/Permissionless-Software-Foundation/ipfs-service WORKDIR /home/safeuser/ipfs-service-provider # For development: switch to unstable branch -RUN git checkout ct-unstable +#RUN git checkout ct-unstable # Install dependencies #RUN mkdir .ipfsdata