Skip to content

prathameshza/gcp-docker-jenkins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple devops project to demonstrate the use of Docker and jenkins with the help of GCP compute engine.

GCP Docker Jenkins

In this project we will create a flask web app and use docker to containerize it and deploy to gcp compute instance with the help of jenkins.

First run your app localy appoff2 appoff1

Create a Dockerfile with debian os and gunicorn module

Then upload it to github repo with git and gh cli

upload

we will create our compute instance in the gcp cloud and deploy jenkins over it

make sure to allow network firewall rule for http protocol

after that install docker and push your image to docker hub

basic instance

after that we will launch the jenkins to port 8080 and creat a simple freestype project

the configuration will look like this

jenkins config console out

after the build started we can launch our app on http://[ExternalIPofVm]:[Your app Port]

apponline

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published