Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dionhaefner authored Sep 29, 2023
1 parent 05d1b6f commit 16b485c
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions docker/README.md
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
```

0 comments on commit 16b485c

Please sign in to comment.