MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / getMinio

Function getMinio

compose/compose.go:438–457  ·  view source on GitHub ↗
(minioDataDir string)

Source from the content-addressed store, hash-verified

436}
437
438func getMinio(minioDataDir string) service {
439 svc := service{
440 Image: "minio/minio:RELEASE.2020-11-13T20-10-18Z",
441 ContainerName: containerName("minio1"),
442 Ports: []string{
443 toPort(int(opts.MinioPort)),
444 },
445 EnvFile: opts.MinioEnvFile,
446 Command: "minio server /data/minio --address :" +
447 strconv.FormatUint(uint64(opts.MinioPort), 10),
448 }
449 if minioDataDir != "" {
450 svc.Volumes = append(svc.Volumes, volume{
451 Type: "bind",
452 Source: minioDataDir,
453 Target: "/data/minio",
454 })
455 }
456 return svc
457}
458
459func getRatel() service {
460 portFlag := ""

Callers 1

mainFunction · 0.85

Calls 2

containerNameFunction · 0.85
toPortFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…