-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05d1b6f
commit 16b485c
Showing
1 changed file
with
12 additions
and
8 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,29 +1,33 @@ | ||
# Terracotta docker | ||
|
||
This directory contains the docker files to build the Terracotta docker image. | ||
This directory contains the 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 | ||
$ make build | ||
``` | ||
|
||
Build using a custom registry, image name and tag: | ||
```bash | ||
make build REGISTRY=myregistry.com IMAGE=terracotta TAG=test | ||
$ make build REGISTRY=myregistry.com IMAGE=terracotta TAG=test | ||
``` | ||
|
||
## Push the image | ||
**Make sure the current directory is in docker/** | ||
## Start the server (locally) | ||
|
||
```bash | ||
$ docker run -v /path/to/database:/mnt -e TC_DRIVER_PATH=/mnt/db.sqlite -t myregistry.com/terracotta:test | ||
``` | ||
|
||
## Push the image to a registry | ||
|
||
Push using the default image name and tag: | ||
```bash | ||
make push | ||
$ make push | ||
``` | ||
|
||
Push using a custom registry, image name and tag: | ||
```bash | ||
make push REGISTRY=myregistry.com IMAGE=terracotta TAG=test | ||
$ make push REGISTRY=myregistry.com IMAGE=terracotta TAG=test | ||
``` |