-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change outdated *make* syntax #213
Conversation
Seeing the code in moby, Docker is working in progress to support cgroups v2. https://medium.com/nttlabs/cgroup-v2-596d035be4d7 Here is the inclusive ticket. |
|
||
```bash | ||
git clone https://github.com/FNNDSC/ChRIS_ultron_backend | ||
cd ChRIS_ultron_backend | ||
# Run full CUBE instantiation with tests: | ||
*unmake* ; sudo rm -fr FS; rm -fr FS; *make* | ||
./unmake.sh ; sudo rm -fr FS; rm -fr FS; ./make.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with these changes, *make*
syntax is outdated copied-and-pasted stuff.
README.md
Outdated
|
||
#### Make sure to enable cgroups v1. | ||
|
||
If you find the following error, plesae enable cgroups v1. The instraction is [here](https://fedoramagazine.org/docker-and-fedora-32/). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fine line between thorough and excessive documentation is hard to find.
Our software relies on Docker, is it reasonable to assume that it is the user's responsibility to have a 100% working installation of Docker before proceeding to installation of our repo?
This might be better as a wiki page linked to by README.md: "before starting, make sure Docker works. --> wiki link"
The bottom line is that Fedora 32 does not support docker [1] [2]. That is a huge problem. The most direct solution is obviously to use a supported platform (Ubuntu 20.04, any other Linux, Docker on Mac, a VM, or possibly Fedora 31).
Fedora 32 users are responsible for figuring out their own Docker problems as they are platform-specific.
[1] https://docs.docker.com/engine/install/fedora/
To install Docker Engine, you need the 64-bit version of one of these Fedora versions:
- Fedora 30
- Fedora 31
[2] https://fedoramagazine.org/docker-and-fedora-32/
At the time of writing, Docker is not supported on Fedora 32.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our software relies on Docker, is it reasonable to assume that it is the user's responsibility to have a 100% working installation of Docker before proceeding to installation of our repo?
This might be better as a wiki page linked to by README.md: "before starting, make sure Docker works. --> wiki link"
I agree. It's better to move the precondition part to run docker to the wiki page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The most direct solution is obviously to use a supported platform (Ubuntu 20.04, any other Linux, Docker on Mac, a VM, or possibly Fedora 31).
Yeah, Fedora 32 users need to fix it by themselves in this case. I am happy to prepare the wiki page. But as I do not work for this project every day, if you like, you can go a head.
The basic container use case works on Fedora 32. :)
$ cat /etc/fedora-release
Fedora release 32 (Thirty Two)
$ docker run --rm -t hello-world
...
Hello from Docker!
This message shows that your installation appears to be working correctly.
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you using podman or moby?
The SELinux troubles only happen when mounting volumes, stateless containers have fewer problems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am using moby for this project so far. The moby-engine
RPM package in Fedora repository.
$ rpm -qf /usr/bin/docker
moby-engine-19.03.11-1.ce.git42e35e6.fc32.x86_64
The SELinux troubles only happen when mounting volumes, stateless containers have fewer problems.
That's good information to check. Thanks.
SELinux is enabled right now.
$ sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Memory protection checking: actual (secure)
Max kernel policy version: 32
7d0c650
to
a084565
Compare
I rebased this PR adding the wiki link: |
Another change in
That is to run
|
a084565
to
aa75f9c
Compare
aa75f9c
to
aefeb2f
Compare
aefeb2f
to
2b53687
Compare
I rebased changing the commit message. This PR is now only to change the outdated
Could you merge this PR? |
Thanks @junaruga |
Add documents to fix issues that I faced on Fedora 32.
I am running the installation steps on
README.md
on my local machine, Fedora 32.Here are some suggestions to update it. The steps are until
./make.sh
part which I am still trying to run.1. Not everyone set
PATH
adding the current directory.
. In the environment,*unmake*
and*make*
do not work.I think
./make.sh
and./unmake.sh
are better.2. In the current
README.md
, the command prompt such as$
is not written. In this situation, it's hard to distinguish between the command line and the output. So, when we need to show the output of the command, I added$
as a command prompt. It is the format used in Docker's document.3. Add possible error cases.
I am not sure if the places where I added the document is proper.
3.1. When people uses new Linux distribution where the kernel cgroups v2 is available, but cgroups v1 is not available, we need to enable cgroups v1 then restart Linux OS.
3.2. When docker deamon is running with
--live-restore
option,docker swarm init
fails. I needed to remove the option from the config file/etc/sysconfig/docker
like this, then restart docker daemon.3.3. First when I executed
./unmake.sh
I had no idea about that the following error is valid or not.