All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Docket can pass options to
docker-compose pull
if you setDOCKET_PULL_OPTS
.
- Docket now sets the working directory of Docker containers that use
run go test
ormount go sources
to be the package's source code directory, which more closely matches whatgo test
does.
dkt
propagates stdin so thatdocker-compose
prompts work.
- Examples in
testdata
are tutorials for how to use docket as well as test cases for the test suite, which is fairly exhaustive (over 90% coverage). - Docket automatically mounts your Go sources into services with the right
labels (
"run go test"
and"mount go sources"
). - Docket now supports both
GOPATH
mode and module-aware mode. dkt
is a new tool which wrapsdocker-compose
so you can more easily interact with your docket setup.
- "Configs" have been replaced by "Modes".
- Use
DOCKET_MODE
instead ofGO_DOCKET_CONFIG
. - docket determines which Docker Compose files to use by matching filenames based on the mode.
docket.Run
no longer takes aConfigMap
.docket.RunPrefix
allows you to override the default prefix (docket
).- Labels on Docker Compose services
show docket where to bind-mount Go sources and where to run
go test
.
- Use
docket.Context.ExposedPort()
was renamed toPublishedPort()
.- The prefix for environment variables is now
DOCKET_
instead ofGO_DOCKET_
.
0.1.0 - 2018-07-23
First working version of the library.