#!/bin/bash -ex

export DOCKER_HOST=dkmanager:2376
DKREGISTRY=dkregistry.xai-corp.net:5000

#docker login -u richard -p $DKREGISTRY_PASS $DKREGISTRY
< ../password.txt docker login --username richard --password-stdin $DKREGISTRY

(cd fluentd && docker-compose -f docker-compose.yml build)
(cd cron && docker-compose -f docker-compose.yml -f ../network.yml build)

docker push dkregistry.xai-corp.net:5000/fluentd:latest
docker push dkregistry.xai-corp.net:5000/xaicorp/cron:latest
