Question

Deploying Jenkins server in an existing DJango dev. server

Posted August 30, 2020 97 views
DjangoCI/CD

Hi,

We have a development server droplet (dev) for our DJango Web Application, which was deployed on Ubuntu 18.x with Postgres DB and Python 3 virtual environment, DJango and GIT.

We have a production server on a different droplet (prod). This was installed on Ubuntu 18.x and configured with Postgress, Python 3 virtual environment, DJango, GIT, Gunicorn, Nginx, Let’s Encrypt.

Now we are planning to setup Jenkins server on the same development server droplet (dev) so that we can do continuous integration using source code from GIT and do deployment on dev server first and then Prod server once the code is clean and bugs free.

I’m looking for right documentation to setup Jenkins on our dev. server. I hope our existing dev. server should be compatible and my above use case configuration should be possible?

One other question that I have is should I have to setup the Jenkins in Virtual Env. or directly on droplet?

Thanks

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

Hi there @bengaltiger,

I believe that it should be ok to install Jenkins directly on the Droplet. By default Jenkins runs on port 8080 so it should not affect your setup unless your application already uses that port.

Another thing that you could consider is running Jenkins inside a Docker container, that way you would not have to install all of the dependencies directly on your Droplet, but everything will be packaged inside a single container.

Hope that this helps!
Regards,
Bobby

Thanks, Bobby. So a Docker container can be installed on the same droplet?

Submit an Answer