Git Product home page Git Product logo

Comments (15)

rafaelarcanjo avatar rafaelarcanjo commented on May 28, 2024 1

My solution:

curl -sL https://deb.nodesource.com/setup_13.x | bash -
apt install  -y --no-install-recommends nodejs
COPY --from=coderaiser/cloudcmd:14.3.3-x64 /usr/src/app /usr/src/app
COPY config.json /usr/src/app/json/config.json
node /usr/src/app/bin/cloudcmd.js -u $CLOUDCMD_USERNAME -p $CLOUDCMD_PASSWORD &

Thanks for help!

from gritty.

coderaiser avatar coderaiser commented on May 28, 2024

It can be related to python or c++ compiler according to node-pty.
Do you have it installed?

from gritty.

rafaelarcanjo avatar rafaelarcanjo commented on May 28, 2024

Yes

root@4a3c1577b512:/var/www/html/node-pty# npm list | grep node
[email protected] /var/www/html/node-pty
+-- @types/[email protected]
| +-- [email protected]

from gritty.

coderaiser avatar coderaiser commented on May 28, 2024

What version of python do you have?

from gritty.

rafaelarcanjo avatar rafaelarcanjo commented on May 28, 2024
root@4a3c1577b512:/var/www/html/node-pty# python --version
Python 2.7.16

from gritty.

coderaiser avatar coderaiser commented on May 28, 2024

It can be a problem with npm itself.
Could you try to upgrade npm to v7 with:

npm i npm -g

from gritty.

rafaelarcanjo avatar rafaelarcanjo commented on May 28, 2024

The installation worked, but now there is an error in the execution

www-data@039829aab1bb:~$ cloudcmd --no-open --root /var/www/html -a -u root -p root --prefix cloudcmd --terminal 
root: /var/www/html
cloudcmd --terminal: The argument 'id' must be a non-empty string. Received ''
url: http://0.0.0.0:8000/cloudcmd/

from gritty.

coderaiser avatar coderaiser commented on May 28, 2024

According to terminal docs, --terminal-path should be added as well, because it installed as separate application, try:

cloudcmd --no-open --root /var/www/html -a -u root -p root --prefix cloudcmd  --terminal --terminal-path `gritty --path` --save

Is it works for you?

from gritty.

rafaelarcanjo avatar rafaelarcanjo commented on May 28, 2024

No. I tested it with the full command too

root@039829aab1bb:/var/www/html# cloudcmd --no-open --root /var/www/html -a -u root -p root --prefix cloudcmd  --terminal --terminal-path `gritty --path` --save
root: /var/www/html
cloudcmd --terminal: The argument 'id' must be a non-empty string. Received ''
url: http://0.0.0.0:8000/cloudcmd/

from gritty.

coderaiser avatar coderaiser commented on May 28, 2024

Could you please tell me what Linux do you use?

from gritty.

rafaelarcanjo avatar rafaelarcanjo commented on May 28, 2024

OpenSuse Lead 15.2. But I am associated in Docker with Debian 10 image

from gritty.

coderaiser avatar coderaiser commented on May 28, 2024

Unfortunately I can't reproduce this. Could you please try to install node-pty and try example listed in it's repo.

Is it works good, or the same problem?

from gritty.

rafaelarcanjo avatar rafaelarcanjo commented on May 28, 2024

If you want to reproduce I did the build on this image of the docker
docker run -d --rm -p 8000:8000 alfasoft/php:7.1
I really appreciate your help

from gritty.

coderaiser avatar coderaiser commented on May 28, 2024

alfasoft/php has a lot file layers, maybe this is the reason, I have no ability to run it right now.

Here is officially supported Docker images:

  • coderaiser/cloudcmd
  • coderaiser/cloudcmd-alpine

They are based on debian and alpine accordingly. Could you please try one of them using:

docker run -t --rm -v ~:/root -v /:/mnt/fs -w=/root -p 8000:8000 coderaiser/cloudcmd

Both of them has enabled terminal by default.

from gritty.

rafaelarcanjo avatar rafaelarcanjo commented on May 28, 2024

In the image provided the error was displayed and did not load the gritty

docker run -d -t --rm -v ~:/root -v /:/mnt/fs -w=/root -p 8000:8000 -p 8001:8001 -p 1337:1337 coderaiser/cloudcmd
root@260f1eb15fc3:/# node /usr/src/app/bin/cloudcmd.mjs --port 8001 --terminal --terminal-path `gritty --path` --save
cloudcmd --terminal: The argument 'id' must be a non-empty string. Received ''

from gritty.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.