Skip to content

Conversation

paulbellamy
Copy link
Contributor

@paulbellamy paulbellamy commented Jul 11, 2016

Adds a "file" collector to service a static report from file, then adds a demo.json report to the dockerfile.

Can run it with: scope launch --no-probe --weave=false --app.collector=file:///demo.json

@paulbellamy
Copy link
Contributor Author

I'm also happy to leave out the demo.json file, as it adds 2.8M to the image.

@paulbellamy paulbellamy force-pushed the demo branch 2 times, most recently from c1caae4 to 691ad04 Compare July 11, 2016 10:50
// Add adds a report to the collector's internal state. It implements Adder.
func (c StaticCollector) Add(context.Context, report.Report) error { return nil }

// WaitOn lets other conponents wait on a new report being received. It

This comment was marked as abuse.

@jml
Copy link
Contributor

jml commented Jul 11, 2016

I don't have strong feelings about whether the JSON file should stay or go.

Everything else looks good, modulo a couple of nitpick comments. Please merge after addressing them.

@paulbellamy
Copy link
Contributor Author

Thanks, discussed offline that adding the json file is terrible, but all the other options are worse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants