Skip to content

Commit

Permalink
fix: hard code amd64 to support remote build (#1577)
Browse files Browse the repository at this point in the history
Signed-off-by: Ce Gao <cegao@tensorchord.ai>
  • Loading branch information
gaocegege committed Apr 25, 2023
1 parent 599f001 commit ad73e37
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/builder/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (

"github.com/cockroachdb/errors"
"github.com/containerd/console"
"github.com/containerd/containerd/platforms"
"github.com/moby/buildkit/client"
gatewayclient "github.com/moby/buildkit/frontend/gateway/client"
v1 "github.com/opencontainers/image-spec/specs-go/v1"
Expand All @@ -37,7 +36,6 @@ const (

func ImageConfigStr(labels map[string]string, ports map[string]struct{},
entrypoint []string, env []string, user string) (string, error) {
pl := platforms.Normalize(platforms.DefaultSpec())
img := v1.Image{
Config: v1.ImageConfig{
Labels: labels,
Expand All @@ -47,7 +45,7 @@ func ImageConfigStr(labels map[string]string, ports map[string]struct{},
ExposedPorts: ports,
Entrypoint: entrypoint,
},
Architecture: pl.Architecture,
Architecture: "amd64",
// Refer to https://github.com/tensorchord/envd/issues/269#issuecomment-1152944914
OS: "linux",
RootFS: v1.RootFS{
Expand Down

0 comments on commit ad73e37

Please sign in to comment.