Skip to content

Commit 9c87126

Browse files
authored
Add example/testing Docker Compose manifests (#88)
* Optimize final image build size by grouping commands in the same build step and deleting unneeded package installation files. Add non-interactive env vars. * Add non-interactive env vars to builder apt-get. Readability. * apt-get switches: be less forceful to allow detection of potentially harmful build errors. * Add '--no-install-recommends' switch to apt-get command to reduce build time and make image smaller (#70). * Add testing Docker Compose manifests. * Dockerfile: Get source files from local build context instead of downloading from git. * Docker Compose example manifests: Build from local context. Uncomment example options. * Readme: Document Docker Compose manifest usage.
1 parent c9278c0 commit 9c87126

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,15 @@ $ docker build -t memtier_benchmark .
108108
$ docker run --rm memtier_benchmark --help
109109
```
110110

111+
### Using Docker Compose
112+
```
113+
$ docker-compose -f docker-compose.memcached.yml up --build
114+
```
115+
or
116+
```
117+
$ docker-compose -f docker-compose.redis.yml up --build
118+
```
119+
111120
## Using memtier_benchmark
112121

113122
See the included manpage or run::

docker-compose.memcached.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
memtier_benchmark:
2+
build: .
3+
command: --protocol=memcache_text --server=memcached --port=11211 --generate-keys
4+
links:
5+
- memcached
6+
7+
memcached:
8+
image: memcached
9+
command: --verbose
10+
ports:
11+
- "11211:11211"

docker-compose.redis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
memtier_benchmark:
2+
build: .
3+
command: --server=redis --generate-keys
4+
links:
5+
- redis
6+
7+
redis:
8+
image: redis
9+
command: --maxmemory 64mb
10+
ports:
11+
- 6379:6379

0 commit comments

Comments
 (0)