On a x86 chip
docker build -t dblworks/statsd:$TAGNAME .
On a ARM chip (for a x86 target):
docker build -t dblworks/statsd:$TAGNAME . --platform linux/amd64
docker push dblworks/statsd:$TAGNAME
docker run dblworks/statsd:$TAGNAME
docker build -t localhost/statsd .
git fetch --all --tags
LATEST_RELEASE="$(git describe --abbrev=0 --tags)"
AWS_REGION=eu-central-1
AWS_PROFILE=
AWS_ACCOUNT_ID=
aws ecr get-login-password --profile $AWS_PROFILE --region $AWS_REGION | docker login --username AWS --password-stdin $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com
docker tag localhost/statsd $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/statsd:$LATEST_RELEASE
docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/statsd:$LATEST_RELEASE
docker build -t localhost/statsd .
git fetch --all --tags
LATEST_RELEASE="$(git describe --abbrev=0 --tags)"
docker login
docker tag localhost/statsd dblworks/statsd:$LATEST_RELEASE
docker push dblworks/statsd:$LATEST_RELEASE
statsd official docs: https://github.com/statsd/statsd