Skip to content

Content classified under "IT"

Page 3 of 11

Map Subdomains to Docker Containers with Synology

October 2, 2018Categories: IT, Tutorial
The other day I got fed up with having to insert diskstation.local:12345 to point towards an installed service on my NAS. I also thought that my SO has difficulties remembering all the ports (I do too) and cleaning up the browser cache doesn't help either. So, I thought: Wouldn't it be nicer if…

List Rundeck Jobs for a Project

September 6, 2018Categories: IT, Software, Tutorial
Now that we Rundeck have a list of project names , we might want to see which jobs were created for each project. To do this, we need: The Rundeck instance's address ( server , port ) The API key ( api_key ) A project's name ( project_name ) First, we need to get the list of jobs for a project…

List Rundeck Projects

September 6, 2018Categories: IT, Software, Tutorial
The other day I found out that Rundeck has an API which allows it to be controlled remotely by scripts. I've decided to write a script to list all the projects defined in a rundeck instance. Prerequisites Before you start, you need: The instance's URL ( server and port ) An api key for the…

Fix 418 Unused Error on Dreamhost

September 6, 2018Category: IT
TL;DR: Have a look at the error log and then to the violated rule. Suddenly, I started to get 418 errors on one of my sites. I'd just get 418 from the source and as they say: that was that . Normally, I don't even notice such errors, but this one broke a bunch of pages. The 418 errors look in…

How to Develop Pipelines - Some Best Practices

May 30, 2018Categories: IT, Software
These days I'm developing a bunch of pipelines to automatise the build/deployment process. Here are some things I've learned: How to develop Initially, I've started developing the pipeline as any other program: Create a repository, fire my editor, write a Jenkinsfile and use the Pipeline script…

Sending HTTP requests with Jenkins Pipelines

May 24, 2018Category: IT
As part of the CI/CD process, we might need to communicate with some external services' APIs (e.g. notifying elastic search of a new index alias). I found an easy way to do it: Using a jenkins plugin. Jenkins plugin Jenkins has a HTTP request plugin . If you install it (or have it installed), you…

An Initial CI/CD Pipeline

May 24, 2018Category: IT
Release-based deployments are sort of nice in the sense that you plan, draw a line, prepare stuff and release one or more components at the same time. It however stalls feature deployments a lot (e.g. a nice feature can be implemented in say a day but the release is sheduled in a month). It also…

Copy Files From B to C via A with SSH

May 24, 2018Category: IT
The other day I had an interesting situation to solve: I have some data on machine B and I want it copied on machine C . However, machines B and C have no direct connection ( known_hosts ), but machine A can connect to B and C without password. It is obvious that one needs to use…

Run Restricted Groovy API in Jenkins

March 16, 2018Categories: IT, Tutorial
The more recent versions of Jenkins have improved on security. Unfortunately, a side-effect is that scripts which were running before would fail now. An example is: ... which would list the projects defined in Jenkins. Fortunately, you can have access to theis API via the In-process Script Approval…

Fix Missing In-process Script Approval in Jenkins

March 16, 2018Categories: IT, Tutorial
Normally, when you have a script or a method to be approved, you should see the In-process Script Approval entry in your Jenkins' configuration: Unfortunately, the In-process Script Approval entry in Jenkins' configuration is not always shown, even though we have items to be approved. I found…

All categories