Code Monkey home page Code Monkey logo

Comments (7)

Griefed avatar Griefed commented on June 3, 2024 1

You're very welcome. Thanks for getting in touch, glad I could help you.

Happy coding!

Cheers,
Griefed

from docker-icecoder.

Griefed avatar Griefed commented on June 3, 2024

What exactly do you mean with support of symbolic links? If you mean symbolic links from outside the docker container to the inside of the docker container, I am afraid that will not be supported. If you mean ICEcoder supporting symbolic links, I suggest hitting up the people from ICEcoder themselves, as this repository here is just a simple docker container wrapping ICEcoder.

As for the multiple foders for code, you coud always split your repositories into subfolders of /code. Or do you mean that GITURL should be cloned into its own folder inside of /code?

from docker-icecoder.

corasaniti avatar corasaniti commented on June 3, 2024

I would like to be able to map a local folder for example

/home/pi/user/python

but without pointing to the real folder but to a symbolic link created before the launch of the container ...
Thanks in advance
Piero

from docker-icecoder.

Griefed avatar Griefed commented on June 3, 2024

You could always mount to the code directory if you so desire:

volumes:
  - /home/pi/user/python:/code/python

which would map the python folder from your your users home directory inside the /code/python- directory inside the container.

Another example I just tested:

    volumes:
      - ./icecoder/plugins:/plugins
      - ./icecoder/data:/data
      - ./icecoder/config:/config
      - ./icecoder/code:/code
      - /home/griefed/Downloads:/code/Downloads

Results in:

icecoder/code/
├── Downloads
├── giturl.lock
└── ServerPackCreator
    ├── build.gradle
    ├── CHANGELOG.md
    ├── CODE_OF_CONDUCT.md
    ├── CONTRIBUTING.md
    ├── Dockerfile
    ├── gradle
    ├── gradle.properties
    ├── gradlew
    ├── gradlew.bat
    ├── img
    ├── LICENSE
    ├── README.md
    ├── renovate.json
    ├── root
    ├── settings.gradle
    └── src

from docker-icecoder.

corasaniti avatar corasaniti commented on June 3, 2024

so, i can also mount multiple source folders as follows in docker create command?

-v /home/pi/python/:/code/python
-v /home/pi/java/:/code/java

Thanks again
Piero

from docker-icecoder.

Griefed avatar Griefed commented on June 3, 2024

Aye, as long as you do not mount the base folder /code, so only subfolders of /code, it's fine.
Symlinks from the host to the container do not work. Believe me, I tried that too, back when I got into Docker.😂

Be aware though:
Say you mapped /code as follows:
./icecoder/code:/code
and another directory as follow:
/home/griefed/Downloads:/code/Downloads
and Downloads contains 10 files.

If you were to check the ./icecoder/code/Downloads folder on the host, it will appear empty, but if you check inside the container, the aforementioned 10 files are there. If you delete a from the /code/Downloads folder in the container, say from the ICEcoder webinterface for example, that file will be deleted from /home/griefed/Downloads.
Just something to be aware of, as it can be confusing at times.

from docker-icecoder.

corasaniti avatar corasaniti commented on June 3, 2024

Sure,

I tried making a change and saving the file from the File-Save menu

The changed files in the container are synchronized with the host folder. This is correct!!!
It is obvious that if I delete a file from the IDE, I also delete it on the host.

I close the issue
Thank you

from docker-icecoder.

Related Issues (2)

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.