This README would normally document whatever steps are necessary to get your application up and running.
export JENKINS_HOME=~/jenkins_home
cd master
docker build -t kubekins .
docker run --name kubekins --rm \
-u root -P \
-p 8080:8080 \
-p 5000:5000 \
-v ${JENKINS_HOME}:/var/jenkins_home \
-v /var/run/docker.sock:/var/run/docker.sock \
kubekins
## TODO (seperate build/deployment process):
# - LOGIN
# - PUSH
# - PULL
Jenkins Dockerfile
[ ] Dockerfile
[ ] python3, awsSDK
[ ] Jenkinsfile
[ ] userdata
https://blog.ipswitch.com/how-to-create-an-ec2-instance-with-python https://docs.aws.amazon.com/code-samples/latest/catalog/python-ec2-create_instance.py.html https://stackoverflow.com/questions/32863768/how-to-create-an-ec2-instance-using-boto3 https://russell.ballestrini.net/setting-region-programmatically-in-boto3/
apt-get update
apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt-get update
apt-get install -y docker-ce docker-ce-cli containerd.io
-- DDNS config file
--ddns
This README would normally document whatever steps are necessary to get your application up and running.
Content type
Image
Digest
Size
582.9 MB
Last updated
about 6 years ago
docker pull imcamel/kubernetes-molecule