Giter Club home page Giter Club logo

Comments (11)

jojow avatar jojow commented on May 18, 2024

Btw, the --root /data argument works perfectly, meaning I can only access files in this (mounted) directory.

from cloudcmd.

coderaiser avatar coderaiser commented on May 18, 2024

Hi @jojow,
This is because you did not set flag auth, it is false by default. So you just set username and password but did not turn on authorisation. With all parameters command will look like:

docker run -d -p 8000:8000 coderaiser/cloudcmd:5.2.3 npm start -- --root /data --auth -u admin -p sOmEpAsSwOrD

And starting from next version you could use just:
docker run -d -p 8000:8000 coderaiser/cloudcmd:5.2.3 --root /data --auth -u admin -p sOmEpAsSwOrD

You could also try alpine build (based on alpine-node, which is much smaller then official docker image of node) with:
docker run -d -p 8000:8000 coderaiser/cloudcmd:5.2.3-alpine --root /data --auth -u admin -p sOmEpAsSwOrD

from cloudcmd.

jojow avatar jojow commented on May 18, 2024

Great, thanks a lot! Now it works! :-)

from cloudcmd.

dtk78 avatar dtk78 commented on May 18, 2024

Hi
do you know how I can set up with auth in a file docker-compose.yml ?
Regards

from cloudcmd.

coderaiser avatar coderaiser commented on May 18, 2024

@dtk78 you can use environment variables:

  • CLOUDCMD_AUTH
  • CLOUDCMD_USERNAME
  • CLOUDCMD_PASSWORD

in docker-compose file or in env file.

from cloudcmd.

dtk78 avatar dtk78 commented on May 18, 2024

Hello,

Thanks a lot for you reply.
how can I also setup this argument --root /project in my docker-compose.yml file ?
and --one-panel-mode ?
Regards

from cloudcmd.

dtk78 avatar dtk78 commented on May 18, 2024

hello,

Is it possible to setup default user for creating a file or directory ?
I can see that the default owner is root for creating a new directory or file

Regards

from cloudcmd.

coderaiser avatar coderaiser commented on May 18, 2024

how can I also setup this argument --root /project in my docker-compose.yml file ?
and --one-panel-mode ?

I have no idea :). There is no way to set root and one panel mode via env variables In Cloud Commander but it is a great idea for a pull request :).

Is it possible to setup default user for creating a file or directory ?
I can see that the default owner is root for creating a new directory or file

You should build your own docker image and create user.

from cloudcmd.

dtk78 avatar dtk78 commented on May 18, 2024

Hi,

Do you know how I can make chown after creating a file or after copying some files ?
or is there any pluggins to get an option chown with a right clic ?

Do I need to add a function chmod in a .js file ?

Thanks for your help
Regards

from cloudcmd.

coderaiser avatar coderaiser commented on May 18, 2024

You can use console or terminal for this purpose.

from cloudcmd.

coderaiser avatar coderaiser commented on May 18, 2024

In v7.3.0 was landed support of environment variables CLOUDCMD_ROOT and CLOUDCMD_ONE_PANEL_MODE.

from cloudcmd.

Related Issues (20)

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.