Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Southclaws committed Mar 26, 2018
2 parents 126c112 + 55e1f18 commit e5bdad1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion runtime/run_container.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func RunContainer(ctx context.Context, cfg sampctltypes.Runtime, cacheDir string

containerName := fmt.Sprintf("sampctl-%d", time.Now().Unix())

ctxPrepare, cancel := context.WithTimeout(ctx, time.Second*30)
ctxPrepare, cancel := context.WithTimeout(ctx, time.Minute*10)
defer cancel()

var cnt container.ContainerCreateCreatedBody
Expand Down
8 changes: 4 additions & 4 deletions types/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ type Runtime struct {
Echo *string `default:"-" required:"0" json:"echo,omitempty" yaml:"echo,omitempty"`

// Core properties
Gamemodes []string `cfg:"gamemode" numbered:"1" json:"gamemodes" yaml:"gamemodes"` //
Gamemodes []string `cfg:"gamemode" numbered:"1" json:"gamemodes,omitempty" yaml:"gamemodes,omitempty"` //
Filterscripts []string ` required:"0" json:"filterscripts,omitempty" yaml:"filterscripts,omitempty"` //
Plugins []Plugin ` required:"0" json:"plugins,omitempty" yaml:"plugins,omitempty"` //
RCONPassword *string ` required:"1" json:"rcon_password,omitempty" yaml:"rcon_password,omitempty"` // changeme
Port *int `default:"8192" required:"0" json:"port" yaml:"port"` // 8192
Port *int `default:"8192" required:"0" json:"port,omitempty" yaml:"port,omitempty"` // 8192
Hostname *string `default:"SA-MP Server" required:"0" json:"hostname,omitempty" yaml:"hostname,omitempty"` // SA-MP Server
MaxPlayers *int `default:"50" required:"0" json:"maxplayers" yaml:"maxplayers"` // 50
MaxPlayers *int `default:"50" required:"0" json:"maxplayers,omitempty" yaml:"maxplayers,omitempty"` // 50
Language *string `default:"-" required:"0" json:"language,omitempty" yaml:"language,omitempty"` //
Mapname *string `default:"San Andreas" required:"0" json:"mapname,omitempty" yaml:"mapname,omitempty"` // San Andreas
Weburl *string `default:"www.sa-mp.com" required:"0" json:"weburl,omitempty" yaml:"weburl,omitempty"` // www.sa-mp.com
Expand Down Expand Up @@ -79,7 +79,7 @@ type Runtime struct {
Output *bool `default:"1" required:"0" json:"output,omitempty" yaml:"output,omitempty"` // 1

// Extra properties for plugins etc
Extra map[string]string `required:"0" json:"extra" yaml:"extra"`
Extra map[string]string `required:"0" json:"extra,omitempty" yaml:"extra,omitempty"`
}

// ContainerConfig is used if the runtime is specified to run inside a container
Expand Down

0 comments on commit e5bdad1

Please sign in to comment.