Skip to content

Content classified under "Tutorial"

Page 2 of 11

Content classified under "Tutorial"

Delete Executions in Rundeck - Wrapping it all Up

October 9, 2018Categories: IT, Software, Tutorial
The previous posts have built the components to allow us to get projects , jobs , executions and remove executions from a Rundeck instance via its API. Now, we can just wrap them up :) The list of packages we need is: For convenience, I've declared a bunch of constants we can use…

Remove Executions in Rundeck

October 8, 2018Categories: IT, Tutorial
TL;DR: You have to get the executions' list and remove the appropriate ones using hte API. Once we've managed to get the list of job executions , we can use the API to remove the relevant executions. The command is rather simple: This method requires: server - the Rundeck's server address port…

Get Job Executions in Rundeck

October 2, 2018Categories: IT, Tutorial
Following the previous articles , we are now in position to query job executions. The query is done via API as well. As a job can have an arbitrary number of executions, it's advisable to use pagination. The code follows the same lines as the one in the previous entries: This function builds the…

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…

Remove Large Files in Git

September 6, 2018Categories: Software, Tutorial
TL;DR: BFG is your friend. java -jar bfg.jar -b 50M myrepo-bfg.git for example The other day I've committed a rather large file by mistake (generated movie of the git commit history). This was a bit annoying because all other developers would have suddenly to check out a 1G file :( with no LFS…

Run a Rundeck Command as a Different User

September 6, 2018Categories: Software, Tutorial
TL;DR: Add the rundeck user to the sudoers and then use sudo Installing rundeck on Ubuntu usually results in creating a rundeck user. We had a bunch of issues creating a rundeck job because we needed to execute a command as a specific user (only that user had access to some resources…

Build a Django Docker Image with Cx-Oracle

July 17, 2018Categories: Software, Tutorial
TL;DR: Don't use alpine images. There's a glibc issue . We added a cx-oracle dependency to one of our django apps. As the previous image was just an alpine basic (python) image we needed to put in place a process to build the new image. Initially, I've tried to use the same alpine image (oh…

Execute a Command in Every Directory with Bash

July 13, 2018Categories: Software, Tutorial
TL;DR : Use a find-based loop The other day I was wondering how to execute a command in each sub-directory of a project. In python , you have os.walk . In C , I would've probably written myself something just for fun etc. In shell , I know you have find which is capable of finding all…
PreviousNext

All categories