Skip to content

Commit 297f606

Browse files
paultyngarekkas
authored andcommitted
core: add Entrypoint to configuration (#91)
Signed-off-by: Paul Tyng <[email protected]>
1 parent d8b1680 commit 297f606

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dockertest.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ type RunOptions struct {
9595
Repository string
9696
Tag string
9797
Env []string
98+
Entrypoint []string
9899
Cmd []string
99100
Mounts []string
100101
Links []string
@@ -109,6 +110,7 @@ func (d *Pool) RunWithOptions(opts *RunOptions) (*Resource, error) {
109110
tag := opts.Tag
110111
env := opts.Env
111112
cmd := opts.Cmd
113+
ep := opts.Entrypoint
112114
var exp map[dc.Port]struct{}
113115

114116
if len(opts.ExposedPorts) > 0 {
@@ -151,6 +153,7 @@ func (d *Pool) RunWithOptions(opts *RunOptions) (*Resource, error) {
151153
Config: &dc.Config{
152154
Image: fmt.Sprintf("%s:%s", repository, tag),
153155
Env: env,
156+
Entrypoint: ep,
154157
Cmd: cmd,
155158
Mounts: mounts,
156159
ExposedPorts: exp,

0 commit comments

Comments
 (0)