项目作者: bamdadsabbagh

项目描述 :
diff script for docker base images
高级语言: Shell
项目地址: git://github.com/bamdadsabbagh/docker-base-image-check.git
创建时间: 2020-06-23T02:22:20Z
项目社区:https://github.com/bamdadsabbagh/docker-base-image-check

开源协议:MIT License

下载


Docker Base Image Check" class="reference-link"> Docker Base Image Check




is my docker image up to date ?







Dependencies

  • docker
  • git
  • bash
  • jq

Run

  1. wget https://raw.githubusercontent.com/bamdadsabbagh/docker-base-image-check/master/src/check.sh
  2. chmod +x check.sh

Details

Arguments

  1. # $1 is base image
  2. # $2 is your docker image

Return

  1. # if image up to date, returns 0
  2. # if image needs update, returns 1

Example

  1. #!/bin/bash
  2. if src/check.sh nginx:alpine docker.pkg.github.com/bamdadsabbagh/bamdadsabbagh-www/bamdadsabbagh-www:latest; then
  3. echo "images are up to date"
  4. else
  5. echo "image needs an update"
  6. fi