Skip to content

Commit

Permalink
core: add Entrypoint to configuration (#91)
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Tyng <ptyng@underarmour.com>
  • Loading branch information
paultyng authored and arekkas committed Jun 29, 2017
1 parent d8b1680 commit 297f606
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dockertest.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ type RunOptions struct {
Repository string
Tag string
Env []string
Entrypoint []string
Cmd []string
Mounts []string
Links []string
Expand All @@ -109,6 +110,7 @@ func (d *Pool) RunWithOptions(opts *RunOptions) (*Resource, error) {
tag := opts.Tag
env := opts.Env
cmd := opts.Cmd
ep := opts.Entrypoint
var exp map[dc.Port]struct{}

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

0 comments on commit 297f606

Please sign in to comment.