Skip to content

Instantly share code, notes, and snippets.

@brunocascio
Last active March 19, 2021 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunocascio/a5db2c04d8e9185c6459878255755cef to your computer and use it in GitHub Desktop.
Save brunocascio/a5db2c04d8e9185c6459878255755cef to your computer and use it in GitHub Desktop.
Install docker compose in current path
#!/bin/sh
BIN_DIR="${PWD}/bin"
COMPOSE_FILE_PATH="${BIN_DIR}/docker-compose"
mkdir -p "$BIN_DIR"
curl -L "https://github.com/docker/compose/releases/download/1.28.5/docker-compose-Linux-x86_64" -o "${COMPOSE_FILE_PATH}"
chmod +x "${COMPOSE_FILE_PATH}"
eval "${COMPOSE_FILE_PATH} version"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment