dappnode / DAppNodeSDK

dappnodesdk is a tool to mantain dappnode packages. It helps to initialize and publish an Aragon Package Manager Repository
GNU General Public License v3.0
61 stars 26 forks source link

Error when running 'dappnodesdk build' using docker on windows host machines #107

Open pablomendezroyo opened 4 years ago

pablomendezroyo commented 4 years ago

When trying to build a dappnode package using the npm library dappnodesdk (running docker in a windows hostmachine), you could fall into the following error:

error

Possible solution According to this post https://stackoverflow.com/questions/38886046/template-parsing-error-template-1-unclosed-action the solution might be to put double quotes instead of single quotes in the argument of the docker inspect command.

The problem seems to be located at the script: ...\@dappnode\dappnodesdk\src\utils\getImageId.ts line: 11

error windows docker
bufander commented 2 years ago

Any luck with this?

pablomendezroyo commented 1 year ago

The PR that fixes windows compatibility is https://github.com/dappnode/DAppNodeSDK/pull/113

It requires an update and rebase

pablomendezroyo commented 1 year ago

also https://github.com/dappnode/DAppNodeSDK/pull/110

beepidibop commented 7 months ago

Been a few years now, the problem still persists (as of version 0.3.16). But can confirm changing --format='{{json .Id}}' from single quotes to double quotes works for Windows machines.

Would be nice if someone can approve the PR and merge it.