Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```