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

serve airgap bundles from Go container #40

Merged
merged 3 commits into from
Oct 9, 2019

Conversation

areed
Copy link
Contributor

@areed areed commented Oct 8, 2019

The Go container handles /bundles and proxies everything else to the
typescript server. The typescript server /bundles handler now returns a
json manifest with a list of packages to extract and include plus a list
of files with their contents, allowing the Go server to be a dumb
component.

Andrew Reed added 2 commits October 8, 2019 22:14
The Go container handles /bundles and proxies everything else to the
typescript server. The typescript server /bundles handler now returns a
json manifest with a list of packages to extract and include plus a list
of files with their contents, allowing the Go server to be a dumb
component.
@areed areed requested a review from divolgin October 8, 2019 22:26
w.Header().Set("Content-Encoding", "gzip")

wz := gzip.NewWriter(w)
archive := tar.NewWriter(wz)
Copy link
Member

Choose a reason for hiding this comment

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

defer wz.Close() and defer archive.Close() instead of closing them at the end. I'm not sure if these leak anything on the returns below, but they could

@areed areed merged commit 4b03871 into replicatedhq:master Oct 9, 2019
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