Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bug command #921

Merged
merged 2 commits into from Dec 20, 2016
Merged

Add bug command #921

merged 2 commits into from Dec 20, 2016

Conversation

emilevauge
Copy link
Member

@emilevauge emilevauge commented Nov 30, 2016

This PR adds a bug command to pre-fill an issue on GitHub with Traefik version & config.
URLs & emails are anonymized.

Example:

What version of Traefik are you using?

Version:      dev
Codename:     cheddar
Go version:   go1.7
Built:        I don't remember exactly
OS/Arch:      linux/amd64

What is your environment & configuration (arguments, toml...)?

{
 "GraceTimeOut": 10,
 "Debug": false,
 "CheckNewVersion": true,
 "AccessLogsFile": "",
 "TraefikLogsFile": "",
 "LogLevel": "INFO",
 "EntryPoints": {
  "http": {
   "Network": "",
   "Address": ":8888",
   "TLS": null,
   "Redirect": null,
   "Auth": null,
   "Compress": false
  },
  "https": {
   "Network": "",
   "Address": ":5001",
   "TLS": null,
   "Redirect": null,
   "Auth": null,
   "Compress": false
  }
 },
 "Cluster": null,
 "Constraints": [],
 "ACME": {
  "Email": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "Domains": null,
  "Storage": "acme.json",
  "StorageFile": "acme.json",
  "OnDemand": true,
  "OnHostRule": true,
  "CAServer": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "EntryPoint": "https"
 },
 "DefaultEntryPoints": [
  "http",
  "https"
 ],
 "ProvidersThrottleDuration": 2000000000,
 "MaxIdleConnsPerHost": 200,
 "InsecureSkipVerify": false,
 "Retry": null,
 "Docker": {
  "Watch": true,
  "Filename": "",
  "Constraints": null,
  "Endpoint": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "Domain": "",
  "TLS": null,
  "ExposedByDefault": true,
  "UseBindPortIP": false,
  "SwarmMode": false
 },
 "File": null,
 "Web": {
  "Address": ":8081",
  "CertFile": "",
  "KeyFile": "",
  "ReadOnly": false,
  "Statistics": null,
  "Auth": null
 },
 "Marathon": null,
 "Consul": {
  "Watch": true,
  "Filename": "",
  "Constraints": [],
  "Endpoint": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "Prefix": "traefik",
  "TLS": null
 },
 "ConsulCatalog": null,
 "Etcd": null,
 "Zookeeper": null,
 "Boltdb": null,
 "Kubernetes": null,
 "Mesos": null,
 "Eureka": null,
 "ConfigFile": "/home/emile/dev/go/src/xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}

What did you do?

What did you expect to see?

What did you see instead?

@emilevauge emilevauge force-pushed the add-github-issue branch 2 times, most recently from b9f07f5 to a5f77a3 Compare December 6, 2016 14:31
@emilevauge emilevauge changed the title [WIP] Add bug command Add bug command Dec 6, 2016
@emilevauge emilevauge added this to the 1.2 milestone Dec 6, 2016
Copy link
Contributor

@errm errm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SantoDE
Copy link
Collaborator

SantoDE commented Dec 19, 2016

LGTM 👼

Needs a rebase tough grand master!

case "darwin":
err = exec.Command("open", url).Start()
default:
err = fmt.Errorf("unsupported platform")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could print a link to click on that would "pre-populate" stuff for it though right ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😝

Copy link
Contributor

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🐸

Signed-off-by: Emile Vauge <emile@vauge.com>
Signed-off-by: Emile Vauge <emile@vauge.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement a new or improved feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants