Add docker-compose binary for compose checks
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
IamTheFij 2023-10-26 14:27:32 -07:00
parent 81e75fa575
commit e3a46d33ca
2 changed files with 25 additions and 2 deletions

View File

@ -6,5 +6,6 @@ COPY ./scripts /scripts
ENV PATH=$PATH:/usr/local/go/bin ENV PATH=$PATH:/usr/local/go/bin
RUN /scripts/add_golang.sh && \ RUN /scripts/add_golang.sh && \
/scripts/add_hadolint.sh && \ /scripts/add_hadolint.sh && \
/scripts/add_golangci_lint.sh /scripts/add_golangci_lint.sh && \
/scripts/add_docker_compose.sh

22
scripts/add_docker_compose.sh Executable file
View 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"