-
Notifications
You must be signed in to change notification settings - Fork 70
docs: Create CentOS installation guide #372
docs: Create CentOS installation guide #372
Conversation
Before this lands, we need an ack to confirm the instructions work for both:
@GabyCT - do you still have your RHEL environment? |
Note that this PR also uses the docker name |
@jodh-intel sorry, I do not have a RHEL |
@jodh-intel I will try to setup the end of the week |
@jodh-intel @GabyCT For Clear Containers 3.0 We only need scripts for RHEL. |
@gorozco1 - sure, the script does use the OBS packages, but most of the logic is needed to build |
@jodh-intel, I am trying to test this issue however when I am doing the pull of your PR it has confilicts with the versions.txt could you please solve this so I can run it thanks |
a04cfa6
to
2a782dd
Compare
@jodh-intel, when I running the script at RHEL, the following error is show: Error: Package docker-ce-17.06.0.ce-1.el7.centos.x86_64 (docker-ce-stable) |
@jodh-intel maybe it is related with this issue moby/moby#31651 |
@jodh-intel, I am using RHEL 7.3 |
@jodh-intel , I 've been searching and this problem is quite common as it appears in several sites docker/for-linux#20 |
@jodh-intel I forgot to mention that the system where I did the test was a fresh installed RHEL |
@jodh-intel , if I do |
We had some issues[1] with Not sure if that could work for us. |
@chavafg actually this script is using the Centos packages for RHEL |
@chavafg what is doing is trying to install the docker packages of centos in RHEL sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo |
maybe we need access to the EPEL repos? |
@chavafg installing the rpm fixed the issue with docker, now we have the following error Loaded plugins: product-id @gorozco1 the resource is not available |
2a782dd
to
44572bc
Compare
Hi @GabyCT - I've now updated this PR to account for the small (but annoying ;) difference between CentOS and RHEL whereby the former sets |
I asked Tom to try this out and the following step failed. When doing the git clone this centos-setup.sh is not there. How can I get the centos-setup.sh script? script -efc ./installation/centos-setup.sh [stack@otc-tme-cleartest clearcontainers]$ cd runtime |
Hi @eadamsintel, this PR contains files that only exist in my branch (until it is merged into Hence, to allow Tom to test this, he will have to follow the instructions but rather than running these commands:
... he must run:
|
installation/centos-setup.sh
Outdated
|
||
# Install pre-requisites for gcc | ||
gmp_file="gmp-${gmp_version}.tar.bz2" | ||
curl -L -O "ftp://gcc.gnu.org/pub/gcc/infrastructure/${gmp_file}" |
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.
Could we try to use always http/https if possible (some times user might be behind proxy and it might not work 100% with ftp)
installation/centos-setup.sh
Outdated
compile gmp "${gmp_file}" "gmp-${gmp_version}" | ||
|
||
mpfr_file="mpfr-${mpfr_version}.tar.bz2" | ||
curl -L -O "ftp://gcc.gnu.org/pub/gcc/infrastructure/${mpfr_file}" |
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.
could we replace for http/https protocol?
installation/centos-setup.sh
Outdated
compile mpfr "${mpfr_file}" "mpfr-${mpfr_version}" | ||
|
||
mpc_file="mpc-${mpc_version}.tar.gz" | ||
curl -L -O "ftp://gcc.gnu.org/pub/gcc/infrastructure/${mpc_file}" |
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.
could we replace for http/https protocol?
Feedback from Tom "That workaround worked. The script is running. Had some proxy issues i had to work around. also the nopassword variable for sudo isn't working properly, been using root instead." |
Hi @eadamsintel - I think proxies are out of scope of the document. Could tom comment on exactly what the problem with the I've just re-checked the |
bdfd5ab
to
64ace3a
Compare
Wrote a document explaining how to install Clear Containers 3.0 on a CentOS 7 system. Added associated scripts and configuration files (which are lightly modified versions from https://github.com/01org/cc-oci-runtime). Fixes clearcontainers#371. Signed-off-by: James O. D. Hunt <[email protected]>
64ace3a
to
155f374
Compare
Popular Images qa-passed 👍 |
Popular Images qa-passed 👍 |
Hi @gorozco1 - good call on https urls! Fixed, re-tested and branch updated. |
I finally got a github account - I was able to get the script to run as a user - there appears to be an issue with the gobject version: configure: error: Package requirements (gobject-2.0 >= 2.37.6 gio-2.0) were not met: Requested 'gobject-2.0 >= 2.37.6' but version of GObject is 2.36.3 Consider adjusting the PKG_CONFIG_PATH environment variable if you Alternatively, you may set the environment variables JSON_CFLAGS --Tom |
Hi @tcthorn-intel - thanks for testing. I am confused though: there shouldn't be any version issues since we explicitly pin the builds to particular versions of libraries: gobject, gio and glib should all be at the same version - the one the script downloads. Please can you attach your |
@jodh-intel can we merge this now? |
@devimc @grahamwhaley @mcastelino could you review/approve this PR? |
Hi @jodh-intel Not a problem, I've attached the logfile. |
Hi @tcthorn-intel - I can't be sure, but your typescript suggests you were running on a RHEL system. If so, that's the problem - this PR is only for CentOS 7. |
@gorozco1 - I'd love this to be merged as this PR has been open waaaaaaaay too long imho. We need atleast 1 independent test of it though. Do you want to give it a go? |
Hi @jodh-intel - The system was built with Centos 7.0. I rebuilt it prior to submitting my findings to make sure it wasn't something I had done. |
@jodh-intel I just tried the last bits of this PR and it works as expected. lgtm |
Hi @tcthorn-intel - ok. Although it isn't stipulated in the doc, there is a tacit assumption that this be run on a fully-updated system. The script does update all packages with yum, but maybe the problems you are seeing somehow result from starting with a 7.0 system (rather than a more recent 7.3 one) without a reboot? @gorozco1 - thanks for the ack. Just need one more from an approver... |
Hi @jodh-intel - I can retry with 7.3 if you'd like. However, not to be a pain or anything - if that's the cause of the issue I saw, I would recommend stating somewhere near the top the exact release that it has been tested on. At present it just says "CentOS version 7", and that implies that it works either only on 7.0, or all of the 7 series (which would include 7.0).. Having spent time in both validation and customer support groups - if it's left undefined, someone will try it with the random 7.x install they have just laying around and fully patch it to the latest CentOS packages available for that release (per instructions), which may or may not work. That's just my $.02 though. |
It was tested in CentOS Linux release 7.3.1611 |
@gorozco1 Thanks! |
Write a document explaining how to install Clear Containers 3.0 on a
CentOS 7 system. Added associated scripts and configuration
files (which are lightly modified versions from
https://github.com/01org/cc-oci-runtime).
Fixes #371.
Signed-off-by: James O. D. Hunt [email protected]