1

I want to improve my current dev CI workflow, I would like to create a server with ISPConfig and some kind of CI tool like Jenkins

The catch is It has to all sit on 1 server, I see folks saying jenkins needs its own server but im just wondering is that a hard set rule or what.

Or has anyone got any tips on other tools to use which would work better with bitbucket or bitbucket pipelines?

My current setup has been a maze of bash scripts which get triggered when a dev pushes to the master branch but it's not very convenient for updates or adding new sites etc so id love to hear what other people are using to simplify the process of pushing to staging/dev .

2 Answers 2

1

I had this problem when I needed to build something at home.

What I did:

  • installed docker in a Ubuntu server VM
  • installed docker in a windows server 2016 VM (if you need windows containers like i did)

THEN: In the Ubuntu machine:

  • I created a local registry running in a container (1 command :) )
  • I spin up a container with a git server - I "linked" the configuration folder to a folder in my machine for persistence.
  • I spinn a container with jenkins server (same trick with the folder)
  • I spin up containers with slaves
  • I have a database container attached to a nexus container for artifacts and build dependencies

In windows VM :

  • I spin a jenkins slave container to build windows apps
  • I spin IIS machines to test the built app

My home computer is 32 GB ram / core i7 and it works great , even with windows container databases (these are monstrous)

Tricky for me - work in progress - build a container in a slave running in a container . It can be done but I am on googling phase.

Advantages:

  • if you use docker compose and you save your containers in the local registry you get to move your work easily . I always version my docker compose files in a github repo.
  • you can pause the VM host and move everything in some other host.
  • you can branch your things for having a test env by cloning the machine and copying the host folders
1
0

There is no hard rule to have jenkins to be running of a single server. However usually it may be better to have separate servers which fulfilling one purpose at a time as this gives some advantages

  • you can focus only on dependencies for the particular service (e.g. Bitbucket and jenkins may require two different Java versions, whereas one installation could interfere with other)
  • if you have all services on one server, for whatever reason the servers is not available - none of your services are available neither

There are a bunch of tools you can use i.e. not only Jenkins. I recommend to write down your needs/requirements and evaluate different options.

1
  • My needs is pretty basic, I just need a way to allow my remote developers to push to the repo and for the repo's changes to be then reflected on an external server so a bitbucket pipeline of some sort and then some way to get the code over to the server and into the right directory
    – Kravitz
    Oct 1, 2019 at 11:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.