Follow the steps below to upgrade your RHEL containers to the latest version:
1. Check if update is available:
Run the following bash command to compare the remote image with an existing one (change image name rhel8_repos_img if needed):
Example output:
[root@jetpatch-ulr-primary]# IMAGE="itjetpatch/qa_repos:rhel8_repos_img"; LOCAL_CREATED=$(docker inspect --format='{{.Created}}' $IMAGE | cut -d'T' -f1); REMOTE_CREATED=$(curl -s https://registry.hub.docker.com/v2/repositories/${IMAGE%:*}/tags/${IMAGE#*:}/ | jq -r '.last_updated' | cut -d'T' -f1); echo "Local Created: $LOCAL_CREATED, Remote Created: $REMOTE_CREATED"; [[ "$REMOTE_CREATED" > "$LOCAL_CREATED" ]] && echo "Update Available" || echo "Up-to-date"
Local Created: 2024-12-19, Remote Created: 2024-12-30
Update Available
2. Stop the Current Service
Run the following command to stop the current JetPatch repository service:
2. Backup and Update Configuration File
- Backup the existing configuration file:
- Edit the
repos_install.conf
file to specify only the required operating systems. For example:
3. Run the Installation Script
Run the installation script for the new container version:
4. Verify Updated Docker Images
Check that the Docker images have been updated by verifying their creation date:
Example output:
5. Start the Docker Containers
Start the Docker containers:
6. Ensure Docker Containers Are Running
Verify that all configured Docker containers are running:
7. Verify Repository Functionality
Test the repository functionality by accessing the relevant URL in a web browser. Replace <HOST-IP>
with your server's IP address:
Notes:
- Contact JetPatch support if you encounter issues during or after the upgrade process.
Comments
0 comments
Please sign in to leave a comment.