48
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 ...
40
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)
+- *....
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-...
13
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 ...
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 ...
11
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 ...
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 ...
9
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 ...
8
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 (...
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 ...
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/*....
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 ...
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 ...
6
votes
Accepted
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 ...
6
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:
...
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 ...
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 ...
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/[...
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 ...
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 ...
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 ...
5
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.
...
4
votes
How to get memory usage per process with sar, sysstat?
Is it a hard requirement to use only sar and sysstat? If not you might want to look at collectl or collectd. These will enable you to study memory usage over time on a per-process granularity. It's ...
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 ...
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 ...
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, ...
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 ...
4
votes
Consul: how to remove dead client nodes quickly
As a best practice, you should gracefully deregister the node gracefully. In this case, consul will know the the node has left and will be removed from the cluster. Otherwise, the consul cannot ...
4
votes
What is the difference between a jail environment in linux and docker container?
While both Docker and jails have some similar functionality, they are built for different purposes.
The term "jail" comes from the FreeBSD distro. A lot of people will also refer to a chroot as a ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
linux × 145docker × 47
ansible × 30
amazon-web-services × 11
containers × 11
windows × 11
kubernetes × 9
centos × 9
jenkins × 8
automation × 8
amazon-ec2 × 7
ubuntu × 7
security × 6
azure × 5
terraform × 4
python × 4
configuration-management × 4
servers × 4
permissions × 4
continuous-integration × 3
gitlab × 3
networking × 3
vagrant × 3
shell-script × 3
node.js × 3