Most Popular
1500 questions
34
votes
5 answers
Where to put ansible-vault password
We are planning to use ansible vault in our project to prevent leaking passwords or keys in git.
The idea is to put all our sensitive data into a plain file then encrypt this file with ansible-vault using a password before pushing to git.
To…
storm
- 1,759
- 3
- 16
- 34
34
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,533
- 3
- 18
- 25
34
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
- 611
- 1
- 5
- 8
34
votes
5 answers
docker-compose healthcheck for rabbitMQ
I'm trying to run rabbitMQ using docker-compose, but the service is always starting or unhealthy.
rabbit is running fine, so I suspect there is something wrong with my health check.
Running the healthcheck command locally does return a value.
> curl…
ConorSheehan1
- 515
- 1
- 7
- 10
33
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,494
- 1
- 12
- 17
33
votes
5 answers
How to tag source code using gitlabCI
We got gitlab new to our environment and trying to create some CI CD pipelines using gitlab CI. I have got some better progress with running some maven goals, creating pipelines and archiving artifacts using my .gitlab-ci.yml as below. I tried to…
pandey
- 949
- 2
- 9
- 18
33
votes
3 answers
Understanding Docker layers
We have the following block in our Dockerfile:
RUN yum -y update
RUN yum -y install epel-release
RUN yum -y groupinstall "Development Tools"
RUN yum -y install python-pip git mysql-devel libxml2-devel libxslt-devel python-devel openldap-devel…
alecxe
- 849
- 1
- 16
- 36
32
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,747
- 7
- 43
- 82
32
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
- 8,011
- 14
- 43
- 80
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
32
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
- 380
- 1
- 3
- 9
32
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
- 421
- 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
29
votes
5 answers
How to resolve merge conflicts in Azure DevOps current UI
I have followed the instructions on command line:
https://docs.microsoft.com/en-us/azure/devops/repos/git/merging?view=azure-devops&tabs=visual-studio
all I want to do is resolve this merge conflict its complaining about.
To be clear, I have done a…
Daniel
- 569
- 2
- 5
- 13
29
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
- 501
- 1
- 4
- 9