zuul-registry/tools/test.sh
James E. Blair 00794462eb Update test script to match playbook
I'm still using this manual test script while we continue to
improve testing.  It's easier if the image names also match the
image names used in the playbook.

Change-Id: Ib317c8342b8dfe316f1bd001b1a3639d8d5b245f
2019-10-03 10:38:26 -07:00

25 lines
945 B
Bash
Executable File

#!/bin/bash
# Copyright 2019 Red Hat, Inc.
#
# This module is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this software. If not, see <http://www.gnu.org/licenses/>.
rm -fr /tmp/storage
docker rmi localhost:9000/test/registry
docker image prune -f
docker load <registry.img
docker image push localhost:9000/test/registry
docker rmi localhost:9000/test/registry
docker image prune -f
docker image pull localhost:9000/test/registry