Most Popular

1500 questions
7
votes
1 answer

Organizing Chef cookbooks

Is it 100% required to store all the cookbooks under chef-repo? This seems a little bit inconvenient for me, I'd prefer to store solution cookbooks in the application codebase, or just as a standalone git repos. I know that tools like knife rely on…
madhead
  • 265
  • 2
  • 6
7
votes
3 answers

Re-using Python virtual environments on a build server

Currently, every time we run a build through Jenkins+Ansible, we are re-creating a virtual environment and re-installing all the dependencies listed inside the requirements.txt file. This is very slow and does not scale well. How can we improve and…
alecxe
  • 849
  • 1
  • 14
  • 36
7
votes
1 answer

What are reasons for using HashiCorp's packer to build docker images instead of using docker build?

I have read https://www.packer.io/docs/builders/docker.html, but I do not see the advantage of using Packer over docker build or docker-compose up --build for building docker images
030
  • 13,235
  • 16
  • 74
  • 173
7
votes
3 answers

Unable to mount docker folder into host using docker-compose

Here I created docker container which use the mariadb image and created three volumes as below. docker-compose.yml version: '2.0' services: mariadb: image: mariadb:latest restart: always container_name: mariadb environment: -…
Nullpointer
  • 255
  • 1
  • 4
  • 11
7
votes
1 answer

How to Versionize Ansible (Tower) with GitHUB

I have configured Ansible Tower with Centos 7.2 and I am able to see my Tower dashboard. My major concern is how to do versioninzation in Ansible Tower as given in this link with Github. Since I have written the playbook for configuration changes…
Rakshith
  • 71
  • 1
7
votes
3 answers

How to evangelize DevOps and tools in a low acceptance environment?

An evocative learning about innovative disruptive technology is that you might find out that not everybody is going to be excited about tools which can give you more productivity. To make this question less generic, what are do's and dont's - so as…
Ta Mu
  • 6,772
  • 5
  • 39
  • 82
7
votes
2 answers

Separate Jenkins config from build logs

My JENKINS_HOME is (something like) /var/lib/jenkins In there, there is jobs directory, in it a subdirectory for each job. In each job subdirectory, you have config.xml plus the builds subdirectory. I would like to somehow separate my config.xml…
amphibient
  • 453
  • 5
  • 12
7
votes
1 answer

How to create named volumes in Kubernetes?

Several named volumes have been created in docker-compose. How to create these in Kubernetes? How to transform the following named volume example defined in docker-compose to kubernetes format version: "3" services: x: image: z volumes: …
030
  • 13,235
  • 16
  • 74
  • 173
7
votes
1 answer

Are NixOS and GuixSD the incoming Linux distros of DevOps?

The main advantage of these distros is the declarative approach which allows for setup to be done in the same way as you would configure a Vagrantfile or Dockerfile. In the way that Docker replaced/is replacing VMs for reproducibility, is there a…
warsong
  • 171
  • 3
7
votes
3 answers

How does Hashicorp's Vault compare to Lastpass?

In this section Hashicorp compares Vault with other solutions. How does Hashicorp's Vault compare to Lastpass? Attempt to answer the question It is possible to login to LastPass from a web browser, create secrets and share these with other users.…
030
  • 13,235
  • 16
  • 74
  • 173
7
votes
2 answers

how to check running containers with containerd

I've switched to containerd in a k8s cluster. There's 2 pods running on one node, 2 github runners. I used to check on a host what containers were running with "docker container ls" but how to check this when containerd is used? sudo ctr container…
Serve Laurijssen
  • 552
  • 2
  • 7
  • 15
7
votes
1 answer

How to configure gitlab-runner to run in the same docker host as gitlab?

I have a gitlab instance running in a docker container. Now I would like to setup gitlab-runner on the same host. Both are running: docker container ls CONTAINER ID IMAGE COMMAND CREATED …
tgr
  • 448
  • 6
  • 14
7
votes
2 answers

Testing for EL with Ansible facts; distribution or os_family?

Sometimes in an Ansible playbook, you'll want to condition running a task on whether or not the distribution is CentOS, RHEL, etc, or if it's something else. A very common example is when a package is named one thing on CentOS and something else on…
Todd Walton
  • 374
  • 1
  • 3
  • 12
7
votes
1 answer

How can I deploy an AWS Lambda function from Jenkins?

I have a simple Lambda function that I'm trying to deploy through Jenkins - public String handleRequest(String input, Context context) { String output = ""; if (input.isEmpty()) { output = "No input provided"; }…
Anish Sana
  • 201
  • 2
  • 6
7
votes
2 answers

What are the pros and cons of running application testing during vs. after a docker build?

Our dockerfile creates the application environment (e.g. env variables, install libraries with apt-get etc.). It also pulls and copies the python application code from its git repo. However, we are debating whether the application tests (some unit,…
cammil
  • 171
  • 1