Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 3. Preparing for Red Hat Quay (basic)
This installation process is only for POC purposes and is not intended for use as a production install.
3.1. Prerequisites Link kopierenLink in die Zwischenablage kopiert!
For a Red Hat Quay Registry installation (appropriate for non-production purposes), you need one system (physical or virtual machine) that has the following attributes:
- Red Hat Enterprise Linux (RHEL): Obtain the latest Red Hat Enterprise Linux server media from the Downloads page and follow instructions from the Red Hat Enterprise Linux 7 Installation Guide.
- Valid Red Hat Subscription: Obtain a valid Red Hat Enterprise Linux server subscription.
- CPUs: Two or more virtual CPUs
- RAM: 4GB or more
Disk space: (dependant on storage needs for registry)
- About 30GB of disk space should be enough for a test system (broken down in the following manner):
- At least 10GB of disk space for the operating system (Red Hat Enterprise Linux Server).
- At least 10GB of disk space for docker storage (to run 3 containers)
- At least 10GB of disk space for Quay local storage (CEPH or other local storage might require more memory)
3.2. Starting up the supporting services Link kopierenLink in die Zwischenablage kopiert!
Follow these steps to install Red Hat Quay on a single system (VM or bare metal).
- Install Red Hat Enterprise Linux server: Install the latest RHEL server. You can do a Minimal install (shell access only) or Server plus GUI (if you want a desktop).
Register the System: Register and subscribe your RHEL server system to Red Hat. See How to register and subscribe a system… for details. The following commands register your system and list available subscriptions. Choose an available RHEL server subscription, attach to its poolid, enable rhel-7-server-rpms and rhel-7-server-extras-rpms repositories, and upgrade to the latest software:
NoteThis procedure was tested on RHEL 7. The
dockercommand is not included in RHEL 8, so you would need to use thepodmancommand instead. Because the--restartoption is not supported by podman, instead of using--restart, you could set up to usepodmanas a systemd service, as described in Starting containers with systemd.Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Add Quay.io authentication: Set up authentication to Quay.io, so you can pull the quay container, as described in Accessing Red Hat Quay without a CoreOS login.
Setup Docker: Install, enable, and start the docker service as shown here (see Getting Docker in RHEL 7 for details):
yum install docker systemctl enable docker systemctl start docker systemctl is-active docker
# yum install docker # systemctl enable docker # systemctl start docker # systemctl is-active docker activeCopy to Clipboard Copied! Toggle word wrap Toggle overflow Open ports in firewall: If you have a firewall running on your system, to access the Red Hat Quay config tool (port 8443) and application (ports 80 and 443) outside of the local system, run the following commands (add
--zone=<yourzone>for each command to open ports on a particular zone):firewall-cmd --permanent --add-port=8443/tcp firewall-cmd --permanent --add-port=80/tcp firewall-cmd --permanent --add-port=443/tcp firewall-cmd --reload
# firewall-cmd --permanent --add-port=8443/tcp # firewall-cmd --permanent --add-port=80/tcp # firewall-cmd --permanent --add-port=443/tcp # firewall-cmd --reloadCopy to Clipboard Copied! Toggle word wrap Toggle overflow Install / Deploy a Database: Choose either MySQL or PostgreSQL as a database. This example shows how to deploy the MySQL database container (see the MySQL section of Using Red Hat Software Collections Container Images for details.) To configure the MySQL database, you can use the values shown here or change any of the following for storing MySQL data (/var/lib/mysql) and setting database values:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteTo generate passwords for MySQL user accounts, instead of setting them statically, run the following:
# export MYSQL_PASSWORD=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | sed 1q)
# export MYSQL_ROOT_PASSWORD=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | sed 1q)
(optional) Check database connectivity: To check connectivity to the database, you can log in using the mysql command (from the mariadb package). Substitute the hostname (or IP address) of your MySQL service and your password. Type
statusto see information about your MySQL connection:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Install / Deploy Redis: Run Redis as a container:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Check redis connectivity: You can use the
telnetcommand to test connectivity to the redis service. Type MONITOR (to begin monitoring the service) and QUIT to exit:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
With the supporting services running, you can move on to creating configuration files to use with the Red Hat Quay deployment.