Most Popular

1500 questions
5
votes
1 answer

How do I write a buildspec.yml file?

I have Java Spring web service project on EC2 I tried writing a buildspec.yml for it. However the AWS CodeBuild service is not giving successful results. In the install phase itself, it tells apt-get and yum command not found. The problem is that…
retr0
  • 51
  • 1
  • 2
5
votes
1 answer

How to run a container from within another container while also mounting a volume from the first container?

I'm running a build in Jenkins which is running inside Kubernetes. When the job starts, a container starts in the cluster and the build runs inside it. A step in the build requires building an RPM using rpmbuild and for that matter I use this docker…
Itai Ganot
  • 390
  • 1
  • 11
5
votes
1 answer

Securely grab minion ID in pillar top file template?

I found this SLS file in a pillar top.sls targeting example: top.sls: base: '*': - hostspecificsls hostspecificsls: # See https://groups.google.com/forum/#!topic/salt-users/UWfP6bMe6F8 {% include 'hosts/' + salt['grains.get']('fqdn') + '.sls'…
Michael Mol
  • 1,045
  • 1
  • 8
  • 19
5
votes
1 answer

Force script to fail if "npm install" has network issues

With the current Github outage, I noticed a problem with my packer setup. In a nutshell, I have a packer setup where I call a shell script that looks like this: #!/bin/bash set -e ... npm install ... I expected that if there is any error during npm…
Philipp Claßen
  • 1,675
  • 2
  • 16
  • 30
5
votes
2 answers

How to communicate in a multi-organization spanning project

In DevOps S-Pillar of "CALMS" says that it is also about sharing knowledge. At a present project I am working on, I am sitting at the interface between two organizations together with another "DevOps"-guy. A lot of our time is wasted because we have…
user14682
5
votes
1 answer

When would I choose IPTables over an Ambassador pattern for port forwarding?

In an environment of Secured Virtual Private Clouds, in a Cluster of Docker Containers, we have to setup some routes. We can do that with the Ambassador pattern, which is simple and easy to maintain. (Docker does have some usage of IPTables under…
hawkeye
  • 1,143
  • 1
  • 9
  • 14
5
votes
1 answer

How to add timeout to a helm chart?

I have a helm chart which pulls a lot of images from various registries and deploys a lot of pods. It runs a lot of k8s jobs before getting the pods up. Overall, helm install command takes huge time, so usually my helm install will also have…
Madhusoodan
  • 153
  • 1
  • 1
  • 4
5
votes
2 answers

Connecting to a Windows machine with Ansible

I'm trying to simply connect to a machine and run the win_ping module. There are several tutorials online that outline a few key steps: Create a directory ./windows Create a file hosts in ./windows Create a directory ./windows/group_vars Create a…
A L
  • 153
  • 1
  • 4
5
votes
1 answer

Jenkins Promote Build across different pipeline?

In my workplace, we are using a monolithic repo. It contains many project and micro services that run on different Jenkins pipeline. I know that using Promoted Build Plugin, we can promote build of tested artifact. However as our projects depend on…
Zac Kwan
  • 151
  • 1
  • 2
  • 7
5
votes
2 answers

how to set a variable from an ini file in ansible?

I would like to set a variable value in a playbook reading it from an ini file, possibly failing the play if the file is not found or the value is missing in the file. I have found the ini lookup plugin to read values from ini files but it is not…
a1an
  • 221
  • 2
  • 8
5
votes
1 answer

Rerun of Bamboo jobs on commit

Imagine the following setup: a build plan has a set of jobs (J), each builds a module (M). Latest successful build for all of them is also there. (BX) E.g. (imagine there are ten or so; modules are interchangeable i.e. will be never linked to each…
Ta Mu
  • 6,772
  • 5
  • 39
  • 82
5
votes
1 answer

Gitlab: Always having the possibility to launch a manual job (even if something failed before)

I'm using gitlab-ci. I have a pipeline that has the following steps : code-verification some tests deploy (manual) some more tests rollback (manual) Both the deploy and the rollback job have to be launch manually which means that I'm using…
BelovedFool
  • 151
  • 4
5
votes
4 answers

How can I get a list of encrypted disks for instances that are running on the AWS CLI?

There is a great question here about how to get a list of encrypted disks. I'm currently using the describe-volumes command. For the record I'm currently using: aws ec2 describe-volumes --region us-east-1 --filters Name=encrypted,Values=false…
hawkeye
  • 1,143
  • 1
  • 9
  • 14
5
votes
4 answers

How do I load a Jenkins Shared Library in a Jenkins Job DSL seed?

I have a seed job using the plugin Jenkins Job DSL. I also have a shared library. I have tried using the @Library annotation to load the script and the library method. It cannot find the annotation and using library yields the following error: No…
David West
  • 1,463
  • 3
  • 16
  • 25
5
votes
3 answers

Azure DevOps - How Do I Change the Service Connection for a Build Pipeline

I have a build pipeline already configured using a .yml file. I transferred the repository over to a different organization on GitHub, added all of the necessary Azure Pipelines integrations and permissions in GitHub, and added the service…
dapperdandev
  • 151
  • 2