Skip to content

Commit

Permalink
build: added provenance and SBOM to docker build - now have an A rati…
Browse files Browse the repository at this point in the history
…ng in docker hub :)
  • Loading branch information
danellecline committed Jan 30, 2025
1 parent 34502a6 commit 48a4728
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,23 @@ set dotenv-filename := x'${ENV_FILE:-.env}'
list:
@just --list --unsorted

# Build the docker images for linux/amd64 and linux/arm64 and push to Docker Hub
build-and-push:
#!/usr/bin/env bash
echo "Building and pushing the Docker image"
RELEASE_VERSION=$(git describe --tags --abbrev=0)
docker buildx create --name mybuilder --platform linux/amd64,linux/arm64 --use
docker buildx build --sbom=true --provenance=true --push --platform linux/amd64,linux/arm64 -t mbari/fastapi-tator:$RELEASE_VERSION --build-arg IMAGE_URI=mbari/fastapi-tator:$RELEASE_VERSION -f Dockerfile .
# Setup the development environment
setup-dev:
#!/usr/bin/env bash
export PATH=$CONDA_PREFIX/bin:$PATH
echo "Setting up development environment"
echo "Creating a conda environment"
conda env create
# Run the FastAPI server for development
run-dev:
#!/usr/bin/env bash
export PATH=$CONDA_PREFIX/bin:$PATH
Expand Down

0 comments on commit 48a4728

Please sign in to comment.