Starship icon indicating copy to clipboard operation
Starship copied to clipboard

Package wasi-sdk.tar.gz directly inside API Server image

Open nascentcore-eng opened this issue 1 year ago • 2 comments

Describe what should be done For https://github.com/tricorder-observability/Starship/issues/187, we should package wasi sdk tar.gz file directly inside API Server image, without untaring it before hand. In the current setup, directly packaging tar.gz results into an 340MB image file, without packaging, it's 880MB.

The size difference is large enough to consider this.

Also, it makes it easier to testing the code, as the untarring uses directory as output, and causes weird testing failures in https://github.com/tricorder-observability/Starship/issues/221

Describe alternatives considered None

Additional context None

nascentcore-eng avatar Mar 20 '23 14:03 nascentcore-eng

If we do this, we should just close https://github.com/tricorder-observability/Starship/issues/221

nascentcore-eng avatar Mar 20 '23 14:03 nascentcore-eng

If we do this, we can also get rid of the annoying warning in bazel build: WARNING: /home/yaxiong/Workspace/tricorder-observability/Starship/src/api-server/cmd/BUILD.bazel:37:8: output 'src/api-server/cmd/wasi-sdk-19.0' of //src/api-server/cmd:extract_wasi_sdk is a directory; dependency checking of directories is unsound

image

nascentcore-eng avatar Mar 21 '23 02:03 nascentcore-eng