#!/bin/bash

set -e

. lib/common

URL=$(relation-get url) || return 1

echo "$URL" > $SERVICE_CONFIGSTORE/etc/docker-auth/realm