Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Dockerize buf call #356

Merged
merged 1 commit into from
Jan 5, 2023
Merged

Dockerize buf call #356

merged 1 commit into from
Jan 5, 2023

Conversation

hamersaw
Copy link
Contributor

@hamersaw hamersaw commented Jan 4, 2023

TL;DR

Dockerizing the buf call so users do not need to manually install buf to generate protos. The PR uses the existing approach of setting the user id but requires manually setting the buf cache directory. If not set it will default to the root users home (ie. /.cache) which the caller likely does not have permissions to access. Therefore, we set it to /tmp/cache which should be globally accessible.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

^^^

Tracking Issue

flyteorg/flyte#3139

Follow-up issue

NA

Signed-off-by: Daniel Rammer <[email protected]>
@codecov
Copy link

codecov bot commented Jan 4, 2023

Codecov Report

Merging #356 (cb8bbbd) into master (ac5d3d8) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #356   +/-   ##
=======================================
  Coverage   73.12%   73.12%           
=======================================
  Files          18       18           
  Lines        1362     1362           
=======================================
  Hits          996      996           
  Misses        315      315           
  Partials       51       51           
Flag Coverage Δ
unittests 73.12% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@hamersaw hamersaw merged commit 398c54f into master Jan 5, 2023
@hamersaw hamersaw deleted the feature/dockerize-buf-call branch January 5, 2023 01:31
eapolinario added a commit that referenced this pull request Feb 22, 2023
This reverts commit 398c54f.

Signed-off-by: Eduardo Apolinario <[email protected]>
eapolinario pushed a commit that referenced this pull request Sep 8, 2023
Signed-off-by: Daniel Rammer <[email protected]>

Signed-off-by: Daniel Rammer <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants