Skip to content

Commit

Permalink
Move docker files in docker dir and add instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
charalamm committed Sep 27, 2023
1 parent 19e2e77 commit 4a0ac35
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Makefile

This file was deleted.

File renamed without changes.
13 changes: 13 additions & 0 deletions docker/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
REGISTRY=docker.io
IMAGE=terracotta
TAG=latest

all: build push

build:
docker build -f Dockerfile -t $(REGISTRY)/$(IMAGE):$(TAG) ..

push:
docker push $(REGISTRY)/$(IMAGE):$(TAG)

.PHONY: build push all
22 changes: 22 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Terracotta docker

This directory contains the docker files to build the Terracotta docker image.

## Build the image
**Make sure the current directory is in docker/**

Build using the default image name and tag:
```bash
make build
```

Build using a custom registry, image name and tag:
```bash
make build REGISTRY=myregistry.com IMAGE=terracotta TAG=test
```

## Push the image
**Make sure the current directory is in docker/**
```bash
make push
```

0 comments on commit 4a0ac35

Please sign in to comment.