Hot answers tagged

44 votes
Accepted

How do you back up Jenkins jobs & master configs?

There are many ways to do this but the easiest way I can think is doing a backup of the Jenkins Home folder. You can see where is your Jenkins home with: echo $JENKINS_HOME And for example, if you ...
user avatar
  • 1,262
39 votes

How do you back up Jenkins jobs & master configs?

All jobs (jobs/) and master config files (config.xml) can be found in Jenkins home folder (JENKINS_HOME ) in the following structure: JENKINS_HOME +- config.xml (jenkins root configuration) +- *....
user avatar
  • 7,121
17 votes
Accepted

How to keep configuration files automatically during apt-get upgrade or install?

There are options you can pass through apt-get to dpkg that will handle the config choices. We usually do something like: apt-get install -y --no_install_recommends -o Dpkg::Options::='--force-...
user avatar
  • 5,627
12 votes

Difference between chroot and Docker

Well, the extra bells and whistles is called process isolation, a container gets its own namespace from the host kernel, that means the program in the container can't try to read kernel memory or eat ...
user avatar
  • 11.1k
11 votes

How do you back up Jenkins jobs & master configs?

If your Jenkins jobs are defined in a Jenkinsfile you can store it in a git repository and have it loaded up by using Pipeline. Unfortunately, since not all Jenkins plugins support Jenkinsfile and ...
user avatar
  • 1,269
10 votes

Does Docker allow containers to be OS agnostic?

Does the Docker engine abstract away the OS such that this configuration will run both apps? No, it does not. Docker uses containerisation as a core technology, which relies on the concept of sharing ...
user avatar
  • 1,345
9 votes

How do you back up Jenkins jobs & master configs?

The SCM Sync Configuration Plugin does exactly what you wish. Works with either svn or git to backup your jenkins core and job configuration, so gives you easy tracking as to who made changes, as well ...
user avatar
8 votes
Accepted

Docker compose volume syntax valid for Windows and Linux

Yes. Just use ./ for you current directory that the Docker-compose file is in. Your "working directory" for the compose file is just "./". If you are trying to set a directory ...
user avatar
7 votes

Difference between chroot and Docker

Yes, there absolutely is more to it than chroot to the point that they have little to nothing in common. A standardized script file format including semantics relating to the task a hand Images (...
user avatar
  • 4,716
7 votes
Accepted

What's missing from this simple recipe that creates a user?

I'll put in an answer although I'm not 100% sure. I think that you got the permissions wrong on ~/.ssh and it should be 0700 instead of 0600, otherwise the user cannot access it. Another tip which is ...
user avatar
  • 461
6 votes

How do you back up Jenkins jobs & master configs?

I'm using scripts from sue445/jenkins-backup-script. It archives Jenkins settings and plugins such as: $JENKINS_HOME/*.xml $JENKINS_HOME/jobs/*/*.xml $JENKINS_HOME/nodes/* $JENKINS_HOME/plugins/*....
user avatar
  • 161
6 votes

How do you back up Jenkins jobs & master configs?

There are few ways to backup jenkins data and master configurations. The best way for backup is to use the Thinbackup plugin. You can schedule timely backups using cron expressions. You can configure ...
user avatar
6 votes
Accepted

Advantages of Linux Containers over Docker

Docker is a specific implementation of Linux containers, or if you want to be more precise Docker is a distribution of tools that includes runc which is an implementation of Linux containers. Other ...
user avatar
  • 1,197
5 votes
Accepted

Build FreeBSD Docker image using Ubuntu host OS

As you can't build a docker image for an arm kernel from a x86 one neither. Nor can't you build an image with a glibc lib targetting a 4.x kernel on a host running a 3.X kernel. Docker isolate ...
user avatar
  • 11.1k
5 votes

Debug BackendConnectionErrors from Kubernetes Service LoadBalancer sesrvice

My solution to this problem was to rework my Services. The setup in my question had one K8s Service with ~10 ports. I reworked the setup to use one port per Service. The problem went away. I don't ...
user avatar
  • 321
5 votes
Accepted

How to get memory usage per process with sar, sysstat?

As Tensibai mentioned, you can extract this info from the /proc filesystem, but in most cases you need to determine the trending yourself. There are several places which could be of interest: /proc/[...
user avatar
5 votes

How to automate Powershell's interactive Get-Credential method?

Your python problem is the \n after the commands, write already append a newline, so your script does the following: $cred = Get-Credential # Start the command # This line is ignored as extraneous ...
user avatar
  • 11.1k
5 votes
Accepted

How to pass a /dev/disk device on macOS into Linux Docker?

Docker was built for linux, it runs on Mac through HyperkIT, which is a lightweight hypervisor. This means Docker only sees devices connected to the hyperkit hypervisor, rather than the devices ...
user avatar
  • 166
5 votes
Accepted

Is there a system which automates everything (OS release, and above) to host websites on?

TL;DR Pick software that focuses on long-term support. Use containers so that you can separate the runtime you need for your app from the security patching of the underlying infrastructure. Long ...
user avatar
  • 1,162
5 votes

Running a command as a specific user on an ec2 using ssm

I didn't find anything on AWS or boto3 docs that allows for that, but I was able to execute as a different user using the runuser command. In theory, you could do the same thing with a combination of ...
user avatar
  • 151
5 votes

Ansible: register variable with loop

Q: "Check if all items are own by root." A: Put the list of the tools into the variable audit_tools. Compare the length of the lists. For example - hosts: localhost vars: audit_tools: ...
user avatar
4 votes
Accepted

How to detect what interface has private IP in Ansible

Peter's module not working in CentOS and I write my own module: #!/usr/bin/python # encoding: utf-8 import subprocess from ansible.module_utils.basic import * from netaddr import IPNetwork def ...
user avatar
4 votes

How do you back up Jenkins jobs & master configs?

You can try the thinBackup plugin (even though it is not actively maintained) [if taking a logical backup is all you want] (i.e. most of the config xml files, jobs, nodes etc). The backup size won't ...
user avatar
  • 141
4 votes
Accepted

How to create Golang Linux binaries using a Windows host

You can easily set the target operating system and processor architecture using the environment variables GOOS and GOARCH respectively. So, as you want to build it for linux operating system, ...
user avatar
  • 360
4 votes

docker swarm init made docker go corrupted

This response is for Kernel: Linux 4.4.132-1075-rockchip-ayufan-ga83beded8524 Architecture: aarch64 aarch64 aarch64 GNU/Linux I had the same issue when issuing commands to a cluster in swarm mode. ...
user avatar
4 votes
Accepted

reboot server during Ansible tasks

Use this source code for reboot your client machine --- - name: System Reboot hosts: debian become_method: sudo become_user: root become: true tasks: - name: reboot nodes ...
user avatar
3 votes
Accepted

Best method of retrieving environment information via Salt Stack?

SaltStack provides a method for modifying grains and adding additional information to the grains dictionary in several different ways by either setting them in the /etc/salt/minion config and/or ...
user avatar
  • 593
3 votes

How to create Golang Linux binaries using a Windows host

It seems that docker build opens a new shell and export is needed. The following command created a Linux binary: export GOOS=linux; go build hello-world.go
user avatar
  • 12.6k
3 votes

docker "Cannot mkdir: Permission denied"

Try to run such command as root or grant user and group rights to the folder with chown. That's only what comes to my mind for now.
user avatar
  • 31

Only top scored, non community-wiki answers of a minimum length are eligible