Skip to content

Commit

Permalink
fix: Hard code OS (#270)
Browse files Browse the repository at this point in the history
Signed-off-by: Ce Gao <cegao@tensorchord.ai>
  • Loading branch information
gaocegege authored Jun 11, 2022
1 parent 87cb41e commit ae16402
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/builder/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
)

func ImageConfigStr(labels map[string]string) (string, error) {
// Refer to https://github.com/moby/buildkit/blob/3eed7fdf41c1fa626c35b3589b403c34dd3b2205/exporter/containerimage/writer.go#L344
pl := platforms.Normalize(platforms.DefaultSpec())
img := v1.Image{
Config: v1.ImageConfig{
Expand All @@ -30,8 +29,8 @@ func ImageConfigStr(labels map[string]string) (string, error) {
Env: []string{"PATH=" + DefaultPathEnv(pl.OS)},
},
Architecture: pl.Architecture,
OS: pl.OS,
Variant: pl.Variant,
// Refer to https://github.com/tensorchord/envd/issues/269#issuecomment-1152944914
OS: "linux",
RootFS: v1.RootFS{
Type: "layers",
},
Expand Down

0 comments on commit ae16402

Please sign in to comment.