Skip to content

Commit

Permalink
dev container done
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag4DSB committed Nov 13, 2024
1 parent 4ed69e7 commit cd05aad
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .devcontainer/setup-dev-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,29 @@ go install github.com/onsi/ginkgo/v2/ginkgo
go get github.com/onsi/gomega/...

# Create a KIND cluster
echo "Starting Minikube..."
minikube start

echo "Logging into GHCR (GitHub Container Registry)..."
echo "$REPOSITORY_USER_TOKEN" | docker login ghcr.io -u "$REPOSITORY_USER" --password-stdin

# Navigate to the directory and prepare the environment
echo "Preparing S3 and IAM log and directories..."
cd .github/s3_and_iam_deployment && \
mkdir -p logs/s3 logs/iam logs/cosi_driver data/vaultdb && \
chown -R vscode:vscode logs data && \
sudo chown -R vscode:vscode logs data && \
chmod -R ugo+rwx logs data && \

# Start Docker Compose for the 'iam_s3' profile
echo "Deploying S3 and IAM using docker compose..."
docker compose --profile iam_s3 up -d

# Set Minikube's Docker environment variables
eval $(minikube docker-env)

# Prune Docker on Minikube's Docker Daemon
echo "Pruning unused images..."
docker images
docker system prune -af

echo "Setup complete."

0 comments on commit cd05aad

Please sign in to comment.