Skip to content

Commit

Permalink
adding more commands to check the docker avalability
Browse files Browse the repository at this point in the history
  • Loading branch information
mrj4001 committed Feb 1, 2025
1 parent 70db387 commit 08f6e8f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions k8-buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,13 @@ phases:
if expr "${BRANCH}" : ".*master" >/dev/null || expr "${BRANCH}" : ".*dev" >/dev/null; then
# Check if Docker is installed
echo "Checking if Docker is installed"
which docker
# Check for docker daemon
sudo systemctl status docker
docker --version
which docker
# Verify Docker access by running a simple Docker command
echo "Checking if Docker is accessible..."
docker info
docker ps
docker build --tag $REPOSITORY_URI:$TAG .
docker push $REPOSITORY_URI:$TAG
aws eks update-kubeconfig --name $EKS_CLUSTER_NAME --region us-east-1 --role-arn $EKS_KUBECTL_ROLE_ARN
Expand Down

0 comments on commit 08f6e8f

Please sign in to comment.