Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bamdadfr/docker-base-image-check
diff script for docker base images
https://github.com/bamdadfr/docker-base-image-check
bash curl docker gitlab jq shell
Last synced: about 1 month ago
JSON representation
diff script for docker base images
- Host: GitHub
- URL: https://github.com/bamdadfr/docker-base-image-check
- Owner: bamdadfr
- License: mit
- Created: 2020-06-23T02:22:20.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-16T08:40:47.000Z (almost 4 years ago)
- Last Synced: 2024-07-06T09:12:26.198Z (6 months ago)
- Topics: bash, curl, docker, gitlab, jq, shell
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Base Image Check
is my docker image up to date ?
## Dependencies
- docker
- git
- bash
- jq## Run
```bash
wget https://raw.githubusercontent.com/bamdadsabbagh/docker-base-image-check/master/src/check.sh
chmod +x check.sh
```## Details
### Arguments
```bash
# $1 is base image
# $2 is your docker image
```### Return
```bash
# if image up to date, returns 0
# if image needs update, returns 1
```### Example
```bash
#!/bin/bash
if src/check.sh nginx:alpine docker.pkg.github.com/bamdadsabbagh/bamdadsabbagh-www/bamdadsabbagh-www:latest; then
echo "images are up to date"
else
echo "image needs an update"
fi
```