Skip to content

Instantly share code, notes, and snippets.

View karosi12's full-sized avatar
🏠
Working from home

Adeyemi Kayode karosi12

🏠
Working from home
View GitHub Profile
@karosi12
karosi12 / jenkins-tf-docker-aws.sh
Last active November 1, 2025 11:20
To run jenkins as a docker container along side with trivy, aws v2 and terraform cli
#!/bin/bash
# Get the Docker socket group ID from host
DOCKER_GID=$(stat -c '%g' /var/run/docker.sock)
# Run the Jenkins container with correct group access
docker run -d \
--name jenkins-be \
-p 8080:8080 -p 50000:50000 \
-v jenkins_home:/var/jenkins_home \