[CR] symbolic link or multiple code folder support #1
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Griefed/docker-ICEcoder#1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
it would be nice to be able to enable support for symbolic links or multiple folders code/
Thanks
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?
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
You could always mount to the code directory if you so desire:
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:
Results in:
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/javaThanks again
Piero
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
/codeas follows:./icecoder/code:/codeand another directory as follow:
/home/griefed/Downloads:/code/Downloadsand Downloads contains 10 files.
If you were to check the
./icecoder/code/Downloadsfolder 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/Downloadsfolder 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.
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
You're very welcome. Thanks for getting in touch, glad I could help you.
Happy coding!
Cheers,
Griefed