Utilities for working with hub.docker.com registry and repositories.
The dockerhub-util.py python script works with DockerHub metadata.
To see all of the subcommands, run:
$ ./dockerhub-util.py --help
usage: dockerhub-util.py [-h]
{print-latest-versions,sleep,version,docker-acceptance-test}
...
Reports from DockerHub. For more information, see
https://github.com/Senzing/dockerhub-util
positional arguments:
{print-latest-versions,sleep,version,docker-acceptance-test}
Subcommands (SENZING_SUBCOMMAND):
print-latest-versions
Print latest versions of Docker images.
sleep Do nothing but sleep. For Docker testing.
version Print version of program.
docker-acceptance-test
For Docker acceptance testing.
optional arguments:
-h, --help show this help message and exit
- Preamble
- Expectations
- Demonstrate using command-line interface
- Demonstrate using Docker
- Configuration
- References
At Senzing, we strive to create GitHub documentation in a "don't make me think" style. For the most part, instructions are copy and paste. Whenever thinking is needed, it's marked with a "thinking" icon 🤔. Whenever customization is needed, it's marked with a "pencil" icon ✏️. If the instructions are not clear, please let us know by opening a new Documentation issue describing where we can improve. Now on with the show...
- 🤔 - A "thinker" icon means that a little extra thinking may be required. Perhaps there are some choices to be made. Perhaps it's an optional step.
- ✏️ - A "pencil" icon means that the instructions may need modification before performing.
⚠️ - A "warning" icon means that something tricky is happening, so pay attention.
- Space: This repository and demonstration require 3 MB free disk space.
- Time: Budget 20 minutes to get the demonstration up-and-running, depending on CPU and network speeds.
- Background knowledge: This repository assumes a working knowledge of:
🤔 The following tasks need to be complete before proceeding. These are "one-time tasks" which may already have been completed.
- Install system dependencies:
- Use
apt
based installation for Debian, Ubuntu and others- See apt-packages.txt for list
- Use
yum
based installation for Red Hat, CentOS, openSuse and others.- See yum-packages.txt for list
- Use
- Install Python dependencies:
- See requirements.txt for list
-
Get a local copy of template-python.py. Example:
-
✏️ Specify where to download file. Example:
export SENZING_DOWNLOAD_FILE=~/dockerhub-util.py
-
Download file. Example:
curl -X GET \ --output ${SENZING_DOWNLOAD_FILE} \ https://raw.githubusercontent.com/Senzing/dockerhub-util/main/dockerhub-util.py
-
Make file executable. Example:
chmod +x ${SENZING_DOWNLOAD_FILE}
-
-
🤔 Alternative: The entire git repository can be downloaded by following instructions at Clone repository
-
Run the command. Example:
${SENZING_DOWNLOAD_FILE} --help
-
For more examples of use, see Examples of CLI.
🤔 The following tasks need to be complete before proceeding. These are "one-time tasks" which may already have been completed.
- The following software programs need to be installed:
Although the Docker run
command looks complex,
it accounts for all of the optional variations described above.
Unset *_PARAMETER
environment variables have no effect on the
docker run
command and may be removed or remain.
-
Run Docker container. Example:
sudo docker run \ --rm \ senzing/dockerhub-util
-
For more examples of use, see Examples of Docker.
Configuration values specified by environment variable or command-line parameter.