Created
January 30, 2020 01:08
-
-
Save bhechinger/df0a7f5f096c05749c9ef8ab1c592c39 to your computer and use it in GitHub Desktop.
Building Traefik on Illumos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is mostly correct: https://blog.wegmueller.it/compiling-traefik-on-illumos | |
./scripts/generate | |
./scripts/binary | |
should be: | |
./script/generate | |
./script/binary | |
Some patches need to be applied first (works with 2.1.3, untested with any other version): | |
diff --git a/pkg/config/static/static_config.go b/pkg/config/static/static_config.go | |
index af3eb8e7..0c5cc342 100644 | |
--- a/pkg/config/static/static_config.go | |
+++ b/pkg/config/static/static_config.go | |
@@ -10,7 +10,7 @@ import ( | |
"github.com/containous/traefik/v2/pkg/ping" | |
acmeprovider "github.com/containous/traefik/v2/pkg/provider/acme" | |
"github.com/containous/traefik/v2/pkg/provider/consulcatalog" | |
- "github.com/containous/traefik/v2/pkg/provider/docker" | |
+ // "github.com/containous/traefik/v2/pkg/provider/docker" | |
"github.com/containous/traefik/v2/pkg/provider/file" | |
"github.com/containous/traefik/v2/pkg/provider/kubernetes/crd" | |
"github.com/containous/traefik/v2/pkg/provider/kubernetes/ingress" | |
@@ -155,7 +155,7 @@ func (t *Tracing) SetDefaults() { | |
// Providers contains providers configuration | |
type Providers struct { | |
ProvidersThrottleDuration types.Duration `description:"Backends throttle duration: minimum duration between 2 events from providers before applying a new configuration. It avoids unnecessary reloads if multiples events are sent in a short amount of time." json:"providersThrottleDuration,omitempty" toml:"providersThrottleDuration,omitempty" yaml:"providersThrottleDuration,omitempty" export:"true"` | |
- Docker *docker.Provider `description:"Enable Docker backend with default settings." json:"docker,omitempty" toml:"docker,omitempty" yaml:"docker,omitempty" export:"true" label:"allowEmpty"` | |
+ // Docker *docker.Provider `description:"Enable Docker backend with default settings." json:"docker,omitempty" toml:"docker,omitempty" yaml:"docker,omitempty" export:"true" label:"allowEmpty"` | |
File *file.Provider `description:"Enable File backend with default settings." json:"file,omitempty" toml:"file,omitempty" yaml:"file,omitempty" export:"true"` | |
Marathon *marathon.Provider `description:"Enable Marathon backend with default settings." json:"marathon,omitempty" toml:"marathon,omitempty" yaml:"marathon,omitempty" export:"true" label:"allowEmpty"` | |
KubernetesIngress *ingress.Provider `description:"Enable Kubernetes backend with default settings." json:"kubernetesIngress,omitempty" toml:"kubernetesIngress,omitempty" yaml:"kubernetesIngress,omitempty" export:"true" label:"allowEmpty"` | |
@@ -187,11 +187,11 @@ func (c *Configuration) SetEffectiveConfiguration() { | |
} | |
} | |
- if c.Providers.Docker != nil { | |
- if c.Providers.Docker.SwarmModeRefreshSeconds <= 0 { | |
- c.Providers.Docker.SwarmModeRefreshSeconds = types.Duration(15 * time.Second) | |
- } | |
- } | |
+// if c.Providers.Docker != nil { | |
+// if c.Providers.Docker.SwarmModeRefreshSeconds <= 0 { | |
+// c.Providers.Docker.SwarmModeRefreshSeconds = types.Duration(15 * time.Second) | |
+// } | |
+// } | |
if c.Providers.Rancher != nil { | |
if c.Providers.Rancher.RefreshSeconds <= 0 { | |
diff --git a/pkg/provider/aggregator/aggregator.go b/pkg/provider/aggregator/aggregator.go | |
index 7bcdee70..6e7c796f 100644 | |
--- a/pkg/provider/aggregator/aggregator.go | |
+++ b/pkg/provider/aggregator/aggregator.go | |
@@ -25,9 +25,9 @@ func NewProviderAggregator(conf static.Providers) ProviderAggregator { | |
p.quietAddProvider(conf.File) | |
} | |
- if conf.Docker != nil { | |
- p.quietAddProvider(conf.Docker) | |
- } | |
+// if conf.Docker != nil { | |
+// p.quietAddProvider(conf.Docker) | |
+// } | |
if conf.Marathon != nil { | |
p.quietAddProvider(conf.Marathon) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment