-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move docker files in docker dir and add instructions
- Loading branch information
Showing
4 changed files
with
42 additions
and
12 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# 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/** | ||
|
||
Push using the default image name and tag: | ||
```bash | ||
make push | ||
``` | ||
|
||
Push using a custom registry, image name and tag: | ||
```bash | ||
make push REGISTRY=myregistry.com IMAGE=terracotta TAG=test | ||
``` |