#!/usr/bin/env bash
set -ex


#docker build --rm -t xaicorp/composer:7.0 .
#docker run --rm --entrypoint php xaicorp/composer:7.0 --version | grep 'PHP 7.0.'
#docker run --rm xaicorp/composer:7.0 --version | grep 'Composer'
#docker tag xaicorp/composer:7.0 dkregistry.xai-corp.net:5000/xaicorp/composer:7.0
#docker push dkregistry.xai-corp.net:5000/xaicorp/composer:7.0
#
#docker build --rm -f Dockerfile-71 -t xaicorp/composer:7.1 .
#docker run --rm --entrypoint php xaicorp/composer:7.1 --version | grep 'PHP 7.1.'
#docker run --rm xaicorp/composer:7.1 --version | grep 'Composer'
#docker tag xaicorp/composer:7.1 dkregistry.xai-corp.net:5000/xaicorp/composer:7.1
#docker push dkregistry.xai-corp.net:5000/xaicorp/composer:7.1

#docker build --rm -f Dockerfile-72 -t xaicorp/composer:7.2 .
#docker run --rm --entrypoint php xaicorp/composer:7.2 --version | grep 'PHP 7.2.'
#docker run --rm xaicorp/composer:7.2 --version | grep 'Composer'
#docker tag xaicorp/composer:7.2 dkregistry.xai-corp.net:5000/xaicorp/composer:7.2
#docker push dkregistry.xai-corp.net:5000/xaicorp/composer:7.2

docker build --rm -f Dockerfile-73 -t xaicorp/composer:7.3 .
docker run --rm --entrypoint php xaicorp/composer:7.3 --version | grep 'PHP 7.3.'
docker run --rm --entrypoint php xaicorp/composer:7.3 -mn | grep curl
docker run --rm --entrypoint git xaicorp/composer:7.3 --version | grep 'git version'
docker run --rm --entrypoint unzip xaicorp/composer:7.3 | grep 'UnZip 6'
docker run --rm xaicorp/composer:7.3 --version | grep 'Composer'
docker tag xaicorp/composer:7.3 dkregistry.xai-corp.net:5000/xaicorp/composer:7.3
docker push dkregistry.xai-corp.net:5000/xaicorp/composer:7.3
