Skip to content

Files

Latest commit

9316740 · Apr 14, 2023

History

History
39 lines (29 loc) · 821 Bytes

README.md

File metadata and controls

39 lines (29 loc) · 821 Bytes

Usage

Run interactively:

mkdir -p ./out ./.creds

docker build -t legate-separate-build-scripts .

# Run interactively:
docker run --rm -it -u coder \
    -v "$(pwd)/out:/tmp/out" \
    legate-separate-build-scripts \
    /bin/bash -i build-all

To run headlessly:

mkdir -p ./out ./.creds

docker build -t legate-separate-build-scripts .

# 1. Generate a personal access token at
#    https://github.com/settings/tokens/new
#    with scopes: repo, read:org, gist

# 2. Save the token to .creds/GH_TOKEN:
cat <<EOF > .creds/GH_TOKEN
<YOUR GITHUB PERSONAL ACCESS TOKEN HERE>
EOF

# 3. Mount the .creds directory into the container
docker run --rm -it -u coder \
    -v "$(pwd)/out:/tmp/out" \
    -v "$(pwd)/.creds:/run/secrets" \
    legate-separate-build-scripts \
    /bin/bash -i build-all