GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — remove health flags · PastureStack/cli@f30f2a3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • cmd
    • run.go
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎cmd/run.go‎

Copy file name to clipboardExpand all lines: cmd/run.go
+17-37Lines changed: 17 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -129,22 +129,6 @@ func RunCommand() cli.Command {
129129
Name: "group-add",
130130
Usage: "Add additional groups to join",
131131
},
132-
cli.StringSliceFlag{
133-
Name: "health-cmd",
134-
Usage: "Command to run to check health",
135-
},
136-
cli.Int64Flag{
137-
Name: "health-interval",
138-
Usage: "Time between running the check (ms|s|m|h) (default 0s)",
139-
},
140-
cli.Int64Flag{
141-
Name: "health-retries",
142-
Usage: "Consecutive failures needed to report unhealthy",
143-
},
144-
cli.Int64Flag{
145-
Name: "health-timeout",
146-
Usage: "Maximum time to allow one check to run (ms|s|m|h) (default 0s)",
147-
},
148132
cli.StringFlag{
149133
Name: "hostname",
150134
Usage: "Container host name",
@@ -324,27 +308,23 @@ func serviceRun(ctx *cli.Context) error {
324308
CapAdd: ctx.StringSlice("cap-add"),
325309
CapDrop: ctx.StringSlice("cap-drop"),
326310
//CpuSet: ctx.String(""),
327-
CgroupParent: ctx.String("cgroup-parent"),
328-
CpuSetMems: ctx.String("cpuset-mems"),
329-
CpuPeriod: ctx.Int64("cpu-period"),
330-
CpuQuota: ctx.Int64("cpu-quota"),
331-
CpuShares: ctx.Int64("cpu-shares"),
332-
Devices: ctx.StringSlice("device"),
333-
Dns: ctx.StringSlice("dns"),
334-
DnsOpt: ctx.StringSlice("dns-opt"),
335-
DnsSearch: ctx.StringSlice("dns-search"),
336-
EntryPoint: ctx.StringSlice("entrypoint"),
337-
Expose: ctx.StringSlice("expose"),
338-
GroupAdd: ctx.StringSlice("group-add"),
339-
HealthCmd: ctx.StringSlice("health-cmd"),
340-
HealthTimeout: ctx.Int64("health-timeout"),
341-
HealthInterval: ctx.Int64("health-interval"),
342-
HealthRetries: ctx.Int64("health-retries"),
343-
Hostname: ctx.String("hostname"),
344-
ImageUuid: "docker:" + ctx.Args()[0],
345-
KernelMemory: ctx.Int64("kernel-memory"),
346-
Labels: map[string]interface{}{},
347-
Environment: map[string]interface{}{},
311+
CgroupParent: ctx.String("cgroup-parent"),
312+
CpuSetMems: ctx.String("cpuset-mems"),
313+
CpuPeriod: ctx.Int64("cpu-period"),
314+
CpuQuota: ctx.Int64("cpu-quota"),
315+
CpuShares: ctx.Int64("cpu-shares"),
316+
Devices: ctx.StringSlice("device"),
317+
Dns: ctx.StringSlice("dns"),
318+
DnsOpt: ctx.StringSlice("dns-opt"),
319+
DnsSearch: ctx.StringSlice("dns-search"),
320+
EntryPoint: ctx.StringSlice("entrypoint"),
321+
Expose: ctx.StringSlice("expose"),
322+
GroupAdd: ctx.StringSlice("group-add"),
323+
Hostname: ctx.String("hostname"),
324+
ImageUuid: "docker:" + ctx.Args()[0],
325+
KernelMemory: ctx.Int64("kernel-memory"),
326+
Labels: map[string]interface{}{},
327+
Environment: map[string]interface{}{},
348328
//LogConfig:
349329
Memory: ctx.Int64("memory"),
350330
MemoryReservation: ctx.Int64("memory-reservation"),

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.