-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a shell script to install Docker Compose on Linux systems.
Clean up Makefile to remove unnecessary operations. Update python requirements to get the extra index url working for all cases. Update Docker Compose file to fix $HOME bug where the ~ expands to the image home instead of the host home. Build is not working because of GPG key rotation. See https://developer.nvidia.com/blog/updating-the-cuda-linux-gpg-repository-key for details. Requirements installation also needs confirmation to check if PyTorch install works as hoped for.
- Loading branch information
1 parent
fea7fe6
commit d9d66df
Showing
5 changed files
with
55 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
|
||
# Utility for installing Docker Compose on Linux systems. | ||
# Visit https://docs.docker.com/compose/install for the full documentation. | ||
# This script is separate from the Makefile because downloads are very slow in `make` commands. | ||
|
||
COMPOSE_VERSION=v2.4.1 | ||
COMPOSE_OS_ARCH=linux-x86_64 | ||
COMPOSE_URL=https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-${COMPOSE_OS_ARCH} | ||
COMPOSE_PATH=${HOME}/.docker/cli-plugins | ||
COMPOSE_FILE=${COMPOSE_PATH}/docker-compose | ||
|
||
if [ -s "${COMPOSE_FILE}" ]; then | ||
echo "${COMPOSE_FILE} already exists!"; | ||
else | ||
mkdir -p "${COMPOSE_PATH}" | ||
curl -SL "${COMPOSE_URL}" -o "${COMPOSE_FILE}" | ||
chmod +x "${COMPOSE_FILE}"; | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters