Most Popular

1500 questions
32
votes
8 answers

How can I persuade developers on my team to embrace "You build it, you run it"?

How can I persuade developers on my team to embrace "You build it, you run it"? By that, I have this quote from Werner Vogels in mind: Giving developers operational responsibilities has greatly enhanced the quality of the services, both from a…
Anthony Neace
  • 1,484
  • 1
  • 12
  • 17
32
votes
4 answers

How to properly scale Jenkins?

In my project we have one AWS server running Jenkins Master + 1 Jenkins slave (2 executors)... and we need more In order to augment our build power we have three options: Scale up: Make AWS instance bigger and add more executors. Scale up: Make AWS…
Oscar Foley
  • 535
  • 1
  • 5
  • 10
31
votes
2 answers

Why is Docker-in-Docker considered bad?

In August 2013 Jérôme Petazzoni created Docker in Docker, dind for short, this allowed Docker containers to be created inside of Docker Containers, this functionality proved very popular resulting in Jérôme's GitHub Repository receiving over a…
Richard Slater
  • 11,612
  • 6
  • 41
  • 81
31
votes
4 answers

How can I force Docker Compose to rebuild containers when dockerfile changes?

I am using docker-compose to start 2 containers using the following docker-compose.yaml. version: '2.4' services: myservice1: container_name: mycontainername build: context: . dockerfile: ./my-dockerfolder/Dockerfile …
bnieland
  • 425
  • 1
  • 4
  • 6
31
votes
2 answers

How to change the owner of VOLUME directory in Dockerfile?

I've got the following Dockerfile: FROM ubuntu:xenial RUN useradd -d /home/ubuntu -ms /bin/bash -g root -G sudo -p ubuntu ubuntu WORKDIR /home/ubuntu USER ubuntu VOLUME /opt/myvolume Which I built it: $ docker build -t vol-test . Sending build…
kenorb
  • 7,841
  • 12
  • 40
  • 77
31
votes
4 answers

How to copy files recursively to a Kubernetes pod?

I want to copy files recursively to a Kubernetes pod I tried kubectl cp -r I got: error: unknown shorthand flag: 'r' in -r What are the best ways to transfer whole directories recursively into a pod.
David West
  • 1,463
  • 3
  • 16
  • 25
31
votes
3 answers

Healthcheck: CMD vs CMD-SHELL

It's not clear to me what are the differences between CMD and CMD-SHELL in Docker Compose healthcheck. What are the benefits of using CMD-SHELL compared to CMD? What are the use cases for CMD and CMD-SHELL?
Zulhilmi Zainudin
  • 411
  • 1
  • 4
  • 4
31
votes
3 answers

How to use terraform import with module

Terraform v0.11.11 We have a quite big AWS setup created with Terraform. Different regions are applied separately, and that is why we have most of the things in modules which are imported like this: module "assets" { source =…
Bysmyyr
  • 411
  • 1
  • 4
  • 4
30
votes
4 answers

What are the advantages of dockerizing nginx and php in different containers?

I just started working with Docker and Kubernetes and I've been watching a lot of stacks, in which some people build nginx+php in a single image and some build an image with nginx and another one with php (mounting the same path and enclosing both…
CarlosAS
  • 435
  • 1
  • 5
  • 9
30
votes
2 answers

Connect Docker container to both host and internal bridge network

I am trying to run a Docker container as a router between a private (--internal) Docker network and the predefined host network. This means the container needs to have two network interfaces: One "outside" interface, that can access all host IP…
Hexaholic
  • 571
  • 1
  • 4
  • 7
29
votes
8 answers

How to get kubernetes pod network CIDR

I have a running k8s cluster initialized with kubeadm. On initialization, I did not pass the option --pod-network-cidr How do I get the CIDR of the pod network I tried Looking at the /etc/kubernetes/manifests/kube-apiserver.yaml which seems to be…
Tran Triet
  • 819
  • 3
  • 10
  • 19
29
votes
5 answers

What are immutable servers?

There are some questions about immutable servers, such as: How to implement the immutable server pattern without loosing the ability to do post-mortems? What role do Configuration Managment tools play in immutable infrastructure? It seems obvious…
Pierre.Vriens
  • 7,205
  • 14
  • 37
  • 84
29
votes
4 answers

Best practices for app and infrastructure code repositories

We're looking for guidance on how to structure application code versus infrastructure code (IaC). More specifically, are there typical advantages/disadvantages to storing the two types of code in the same repository versus in different…
GaTechThomas
  • 340
  • 1
  • 3
  • 8
29
votes
2 answers

How to use cloud-init with Terraform?

I am working with Digital Ocean and Terraform and I already can automate the domain, subdomain, network preferences and the host but there is a section called User data that looks like this: The description of that field says Allows the use of…
Gepser Hoil
  • 1,312
  • 1
  • 15
  • 19
28
votes
3 answers

How to build a complex parallel Jenkins pipeline?

I've been interested in converting our bespoke Jenkins integrations into a pipeline. However, I can't seem to figure out how to do it. Can anyone help me with the Jenkins script that could do the following? 1---2---3-----------9---10 | …
Bert Goethals
  • 491
  • 1
  • 4
  • 9