Add docker-compose binary for compose checks
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
81e75fa575
commit
e3a46d33ca
@ -6,5 +6,6 @@ COPY ./scripts /scripts
|
||||
|
||||
ENV PATH=$PATH:/usr/local/go/bin
|
||||
RUN /scripts/add_golang.sh && \
|
||||
/scripts/add_hadolint.sh && \
|
||||
/scripts/add_golangci_lint.sh
|
||||
/scripts/add_hadolint.sh && \
|
||||
/scripts/add_golangci_lint.sh && \
|
||||
/scripts/add_docker_compose.sh
|
||||
|
22
scripts/add_docker_compose.sh
Executable file
22
scripts/add_docker_compose.sh
Executable file
@ -0,0 +1,22 @@
|
||||
#! /bin/bash
|
||||
set -ex
|
||||
|
||||
VERSION=v2.23.0
|
||||
ARCH=x86_64
|
||||
FILENAME="docker-compose-darwin-${ARCH}"
|
||||
|
||||
URL="https://github.com/docker/compose/releases/download/${VERSION}/${FILENAME}"
|
||||
SHAURL="https://github.com/docker/compose/releases/download/${VERSION}/${FILENAME}.sha256"
|
||||
|
||||
wget --quiet "$URL"
|
||||
wget --quiet "$SHAURL"
|
||||
|
||||
# Check sum
|
||||
shasum -c "./${FILENAME}.sha256"
|
||||
|
||||
# Install
|
||||
chmod +x "./${FILENAME}"
|
||||
mv "./${FILENAME}" /usr/local/bin/docker-compose
|
||||
|
||||
# Clean up
|
||||
rm "${FILENAME}.sha256"
|
Loading…
Reference in New Issue
Block a user