이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 4. Deploying Red Hat Quay
After you have configured your Red Hat Quay deployment, you can deploy it using the following procedures.
Prerequisites
- The Red Hat Quay database is running.
- The Redis server is running.
4.1. Creating the YAML configuration file 링크 복사링크가 클립보드에 복사되었습니다!
Use the following procedure to deploy Red Hat Quay locally.
Procedure
Enter the following command to create a minimal
config.yamlfile that is used to deploy the Red Hat Quay container:touch config.yaml
$ touch config.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Copy and paste the following YAML configuration into the
config.yamlfile:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create a directory to copy the Red Hat Quay configuration bundle to:
mkdir $QUAY/config
$ mkdir $QUAY/configCopy to Clipboard Copied! Toggle word wrap Toggle overflow Copy the Red Hat Quay configuration file to the directory:
cp -v config.yaml $QUAY/config
$ cp -v config.yaml $QUAY/configCopy to Clipboard Copied! Toggle word wrap Toggle overflow
4.1.1. Configuring a Red Hat Quay superuser 링크 복사링크가 클립보드에 복사되었습니다!
You can optionally add a superuser by editing the config.yaml file to add the necessary configuration fields. The list of superuser accounts is stored as an array in the field SUPER_USERS. Superusers have the following capabilities:
- User management
- Organization management
- Service key management
- Change log transparency
- Usage log management
- Globally-visible user message creation
Procedure
Add the
SUPER_USERSarray to theconfig.yamlfile:SERVER_HOSTNAME: quay-server.example.com SETUP_COMPLETE: true SUPER_USERS: - quayadmin ...
SERVER_HOSTNAME: quay-server.example.com SETUP_COMPLETE: true SUPER_USERS: - quayadmin1 ...Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- If following this guide, use
quayadmin.
4.2. Prepare local storage for image data 링크 복사링크가 클립보드에 복사되었습니다!
Use the following procedure to set your local file system to store registry images.
Procedure
Create a local directory that will store registry images by entering the following command:
mkdir $QUAY/storage
$ mkdir $QUAY/storageCopy to Clipboard Copied! Toggle word wrap Toggle overflow Set the directory to store registry images:
setfacl -m u:1001:-wx $QUAY/storage
$ setfacl -m u:1001:-wx $QUAY/storageCopy to Clipboard Copied! Toggle word wrap Toggle overflow
4.3. Deploy the Red Hat Quay registry 링크 복사링크가 클립보드에 복사되었습니다!
Use the following procedure to deploy the Quay registry container.
Procedure
Enter the following command to start the
Quayregistry container, specifying the appropriate volumes for configuration data and local storage for image data:sudo podman run -d --rm -p 80:8080 -p 443:8443 \ --name=quay \ -v $QUAY/config:/conf/stack:Z \ -v $QUAY/storage:/datastorage:Z \ registry.redhat.io/quay/quay-rhel8:v3.13.8
$ sudo podman run -d --rm -p 80:8080 -p 443:8443 \ --name=quay \ -v $QUAY/config:/conf/stack:Z \ -v $QUAY/storage:/datastorage:Z \ registry.redhat.io/quay/quay-rhel8:v3.13.8Copy to Clipboard Copied! Toggle word wrap Toggle overflow