Skip to content

Commit

Permalink
Merge pull request #30 from vdice/feat/multiarch-install
Browse files Browse the repository at this point in the history
feat(build.go): update aws installation to use host arch
  • Loading branch information
carolynvs authored Jan 5, 2022
2 parents 9d3e58c + b415d31 commit f229be8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/aws/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "fmt"
func (m *Mixin) Build() error {
// TODO: This gets whatever the latest version of the cli is, there isn't a way for us to say what version we are using
fmt.Fprintln(m.Out, `RUN apt-get update && apt-get install -y --no-install-recommends curl unzip libc6 less groff`)
fmt.Fprintln(m.Out, `RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"`)
fmt.Fprintln(m.Out, `RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" -o "awscliv2.zip"`)
fmt.Fprintln(m.Out, `RUN unzip awscliv2.zip`)
fmt.Fprintln(m.Out, `RUN ./aws/install`)
fmt.Fprintln(m.Out, `RUN rm -fr awscliv2.zip ./aws`)
Expand Down
2 changes: 1 addition & 1 deletion pkg/aws/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func TestMixin_Build(t *testing.T) {
gotOutput := m.TestContext.GetOutput()

wantOutput := `RUN apt-get update && apt-get install -y --no-install-recommends curl unzip libc6 less groff
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip
RUN ./aws/install
RUN rm -fr awscliv2.zip ./aws
Expand Down

0 comments on commit f229be8

Please sign in to comment.