This file contains hidden or 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
| # Replace <DATASET_NAME> with the name of your dataset | |
| DATASET="<DATASET_NAME>" | |
| # Start a temporary container to stage the data | |
| docker run --detach --interactive --tty --name "${DATASET}_data_package" ubuntu:latest bash | |
| # Copy local data into the container | |
| docker cp data/. "${DATASET}_data_package":/data | |
| # Snapshot container as an image |
This file contains hidden or 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
| # Replace <DATASET_NAME> with the name of your dataset | |
| DATASET="<DATASET_NAME>" | |
| # Replace <SUBDIR> with the name of your local data subdirectory | |
| SUBDIR="<LOCAL_DATA_SUBDIRECTORY>" | |
| # Ensure output directory exists | |
| mkdir --parents "data/${SUBDIR}" | |
| # Create a temporary container from the image |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # pre-push hook to run checks before pushing | |
| CONTAINER_NAME="${PWD##*/}_ci" | |
| echo "==========================================" | |
| echo "🚀 Running pre-push checks in Docker..." | |
| echo "==========================================" |