flant / ovpn-admin

Simple web UI to manage OpenVPN users.
Apache License 2.0
1.39k stars 261 forks source link

executor failed running command [/bin/sh -c cd /app && npm install && npm run build] #127

Open gvariable opened 2 years ago

gvariable commented 2 years ago

I encounter this problem when installing ovpn-admin using docker-compose. Is this a bug or it's my problem?

reproduce the problem

pashcovich commented 2 years ago

I see these lines in your log file

npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
davideciarmiello commented 2 years ago

In dockerfile you need this:

FROM node:16.13.0-alpine3.12 AS frontend-builder RUN apk add --update python3 make g++ git && rm -rf /var/cache/apk/*

alesito85 commented 2 years ago

Any particular reason this isn't added to the repo?

pashcovich commented 1 year ago

@gvariable do you use docker-desktop on Mac ?

tryauuum commented 1 year ago

same error with me on ubuntu 22.04

the only change is this:

root@proxy:~/ovpn-admin# git diff
diff --git a/start-with-slave.sh b/start-with-slave.sh
index 683eb67..f5ab199 100755
--- a/start-with-slave.sh
+++ b/start-with-slave.sh
@@ -1,4 +1,4 @@
 #!/usr/bin/env bash

 ./start.sh
-docker-compose -p openvpn-slave -f docker-compose-slave.yaml up -d
+docker compose -p openvpn-slave -f docker-compose-slave.yaml up -d
diff --git a/start.sh b/start.sh
index 7545b53..4715df8 100755
--- a/start.sh
+++ b/start.sh
@@ -1,3 +1,3 @@
 #!/usr/bin/env bash

-docker-compose -p openvpn-master up -d --build
+docker compose -p openvpn-master up -d --build

since docker-compose is deprecated (or so they say) and superseded by docker compose

RWDai commented 1 year ago

i have same issue #233