Comments (15)
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.
It can be related to python
or c++
compiler according to node-pty.
Do you have it installed?
from gritty.
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.
What version of python
do you have?
from gritty.
root@4a3c1577b512:/var/www/html/node-pty# python --version
Python 2.7.16
from gritty.
It can be a problem with npm
itself.
Could you try to upgrade npm
to v7
with:
npm i npm -g
from gritty.
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.
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.
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.
Could you please tell me what Linux do you use?
from gritty.
OpenSuse Lead 15.2. But I am associated in Docker with Debian 10 image
from gritty.
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.
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.
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.
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)
- Error on gritty install for Terminal component of Cloudcmd HOT 1
- Gritty broken HOT 3
- Cant input anything HOT 4
- Error install HOT 4
- I cant copy on gritty terminal I using handphone HOT 1
- How I Use Authentication HOT 2
- I can't install gritty HOT 8
- user "root" does not have permission to access the dev dir HOT 3
- Change style HOT 6
- ctrl + w? HOT 4
- menus in terminal-kit broken starting from 4.4.0 (getCursorLocation timed out) HOT 5
- Can not install on termux HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gritty.