Skip to content

Commit

Permalink
Merge pull request #46 from eugencowie/remove-curl
Browse files Browse the repository at this point in the history
Don't install curl in bundle
  • Loading branch information
schristoff authored Sep 27, 2024
2 parents d526fef + 114c4fd commit c9eb5db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions pkg/docker-compose/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ func (m *Mixin) Build(ctx context.Context) error {
dockerComposeVersion = dockerComposeDefaultVersion
}

dockerfileLines := fmt.Sprintf(`RUN apt-get update && apt-get install -y curl && \
curl -fL "https://github.com/docker/compose/releases/download/v%s/docker-compose-linux-x86_64" -o /usr/local/bin/docker-compose && \
chmod +x /usr/local/bin/docker-compose`, dockerComposeVersion)
dockerfileLines := fmt.Sprintf(`ADD --chmod=755 https://github.com/docker/compose/releases/download/v%s/docker-compose-linux-x86_64 /usr/local/bin/docker-compose`, dockerComposeVersion)

fmt.Fprintln(m.Out, dockerfileLines)

Expand Down
4 changes: 1 addition & 3 deletions pkg/docker-compose/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import (
)

func TestMixin_Build(t *testing.T) {
const buildOutput = `RUN apt-get update && apt-get install -y curl && \
curl -fL "https://github.com/docker/compose/releases/download/v2.10.2/docker-compose-linux-x86_64" -o /usr/local/bin/docker-compose && \
chmod +x /usr/local/bin/docker-compose
const buildOutput = `ADD --chmod=755 https://github.com/docker/compose/releases/download/v2.10.2/docker-compose-linux-x86_64 /usr/local/bin/docker-compose
`

t.Run("build", func(t *testing.T) {
Expand Down

0 comments on commit c9eb5db

Please sign in to comment.