Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Add text editor in container #38

Open
jcohenadad opened this issue Aug 4, 2019 · 5 comments
Open

Add text editor in container #38

jcohenadad opened this issue Aug 4, 2019 · 5 comments

Comments

@jcohenadad
Copy link
Member

jcohenadad commented Aug 4, 2019

One current issue, for users following SCT course and using Docker, is that they need to edit the file parameters.sh from the multi_subject course. Currently there is no obvious way for them to edit this file.

What are the installed text editor?

If none is installed, I suggest to add vim while building the container.

@YangHee-Min
Copy link
Contributor

@jcohenadad Should we follow the steps included (here) to install vim within the container and to be able to edit parameters.sh?

@jcohenadad
Copy link
Member Author

jcohenadad commented Aug 5, 2019

@YangHee-Min before doing so, could you please confirm that there is no text editor available?

ideally i would like to avoid re-doing the build, upload, test, etc. i have other things to do today...

@YangHee-Min
Copy link
Contributor

@jcohenadad As explained in the first line of the first answer in this link, there does not seem to be a default editor. There is a way to edit files within docker as explained (here) but it involves replacing lines if ever you want to try that route (although it clearly has limitations). Unfortunately, most threads seem to suggest to use an external text editor to edit files.

@YangHee-Min
Copy link
Contributor

YangHee-Min commented Aug 5, 2019

@jcohenadad Options 2 and 3 in (this link) seem to suggest a method to edit files within docker (or at least the files are called internally) without the use of text editors.

@jcohenadad
Copy link
Member Author

@YangHee-Min, OK, so in the future, we should add an editor by adding those lines in the container build:

apt-get update  # check if not added before...
apt-get install vim

for now, since we are running out of time for the SCT course, let's just ask users to run those lines once they enter the container.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants