Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
installation: Update RHEL installation script
Browse files Browse the repository at this point in the history
With this instead of using Docker-EE, we are retrieving Docker
from the server repositories.

Fixes #1016

Signed-off-by: Gabriela Cervantes <[email protected]>
  • Loading branch information
GabyCT committed Mar 8, 2018
1 parent fb28cb1 commit 64d58d1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion installation/rhel-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ pkgs=""
# general
pkgs+=" bc"
pkgs+=" curl"
pkgs+=" yum-utils"

# qemu lite dependencies
pkgs+=" libattr-devel"
Expand Down Expand Up @@ -63,7 +64,13 @@ eval sudo yum -y install "${pkgs}"
docker --version
if [ $? -ne 0 ]; then
echo >&2 "ERROR: Docker-EE or Docker-CE should be installed in the system."
exit 1
# Here the required repository will be enabled in order to have Docker
subscription-manager repos --enable=rhel-${rhel_devtoolset_version}-server-extras-rpms
if [ $? -ne 0 ]; then
echo >&2 "ERROR: Server extras rpms repository can not be enabled."
exit 1
fi
sudo yum -y install docker && systemctl enable --now docker
fi

# Check that Golang is installed in the system
Expand Down Expand Up @@ -140,6 +147,9 @@ ExecStart=
ExecStart=/usr/bin/dockerd -D --add-runtime cc-runtime=/usr/bin/cc-runtime --default-runtime=cc-runtime
EOF
# Remove package oci-systemd-hook
sudo rpm -e --nodeps oci-systemd-hook
sudo systemctl daemon-reload
sudo systemctl enable docker.service
sudo systemctl restart docker

0 comments on commit 64d58d1

Please sign in to comment.