Hot answers tagged

10 votes
Accepted

Where is the git submodule revision actually stored?

The .gitmodules file just records the path and remote URL to the submodule repository. The commit itself is stored in the tree object. You can query it like this: git ls-tree <ref> <path> ...
siegi's user avatar
  • 340
10 votes
Accepted

Where does the string docker.example.com in my GitLab CI job come from?

It's a placeholder domain name for connecting over SSH. It doesn't mean that it's connecting to docker.example.com. I ran into a similar error when using a Docker client over SSH. The error message ...
Nick ODell's user avatar
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: ...
Vladimir Botka's user avatar
5 votes
Accepted

Deliver docker container on the server with no internet

you can use the docker save command to save an image to a tar archive in your CI/CD pipeline: docker save image-name > image-name.tar Then you can send that tar to your team. They can install that ...
seism0saurus's user avatar
4 votes

Tools used in enterprise level to transfer build artifacts from CI server to live server

Try LFTP that has commands to mirror or parallel copy. LFTP can run over many protocols. The likely problem you have is that you are transfering a lot of data from a build service to a single vm over ...
simbo1905's user avatar
  • 1,172
4 votes
Accepted

Gitworkflow and testing short lived feature branches in Openshift/Kubernetes

I'm not altogether sure if there actually is a problem you're trying to solve, or whether you are looking for confirmation that you are on the right track. Some thoughts: Internally openshift ...
AnoE's user avatar
  • 4,866
4 votes

How is it a good practice to version your helm charts for each deployment?

Approach you are describing - where app version is substituted at helm upgrade command - is pretty popular as well. Maybe it's not well documented - I'm not sure about that. Yet another approach that ...
taleodor's user avatar
  • 847
4 votes
Accepted

How is it a good practice to version your helm charts for each deployment?

So, I actually ended up with the following strategy. I separated the charts from the source code. Basically, I have a repository that tracks all the helm charts only Why? I wanted to have a ...
Ervadac's user avatar
  • 241
3 votes

Setting up CI/CD for an AWS CDK app using AWS CodeBuild/Deploy/Pipeline

It may be helpful to look at the different AWS developer services as you are trying to achieve your goal in the wrong services: Running the specific dotnet testing and publish steps are not done in ...
Wesley Rolnick's user avatar
3 votes
Accepted

Best way to create a Ci/CD pipeline to reduce bugs and facilitate refactor

It might not be obvious now, but usually as projects advance full regression costs (resources/time) grow much faster than static analysis ones. You'll also find that static analysis alone isn't a ...
Dan Cornilescu's user avatar
3 votes
Accepted

What are tools that lend themselves for backup and recovery in a CI/CD environment?

The things that would be backed up would be the config files of the servers, the database and uploaded content as these will almost always be unique and necessary. The containers, VMs, even the ...
James Shewey's user avatar
  • 3,724
3 votes

How to keep previous containers on docker-compose up?

docker-compose up will remove containers when: The service name is the same, but has a change, in which case the old container is replaced with the new state of the service You include the --remove-...
BMitch's user avatar
  • 3,230
3 votes
Accepted

What are Pros and Cons of various VCS and CI/CD tools to store, change and deploy configuration snippets of more than 1000 customers in a VCS?

Personally I'd keep them in separate repositories, for clear customer isolation: minimal/no risk of unwanted interference between customers different access control for different customers is ...
Dan Cornilescu's user avatar
3 votes
Accepted

Combining CD and GitFlow

Conflating deployment environments and branches often leads to problems like you describe. It does seem like a natural fit though and easily maps to mental model of an ideal solution but, real life ...
Newtopian's user avatar
  • 1,946
3 votes

Trunk Based Development - release branch testing

There are different strategies and, depending on your specific problem domain, you need to decide what makes sense for you. For server side applications, especially micro services, you typically don'...
Philipp Claßen's user avatar
3 votes
Accepted

Error from server (Forbidden): error when retrieving current configuration of: Resource: "apps/v1, Resource=deployments",

Going from this, your ClusterRole isn't configured to allow access to deployments, and the ClusterRole you've listed isn't properly bound to your service account. You could configure it with something ...
Kanga_Roo's user avatar
  • 146
3 votes
Accepted

What is the way to update images in a configuration git repository when doing gitops?

App repo's CI commits into Configuration repo with newly built image tags. Yes, this makes sense. Instead of using image tags you can use image digest, since the digest is generated from content, it ...
Jonas's user avatar
  • 995
3 votes

ERROR This job is stuck because the project doesn't have any runners online assigned to it. even though i have added runner and it is alive

You need to either configure the runner to run untagged jobs, or tag your job to use the runner. To configure the runner to run untagged jobs: Go to the project’s Settings > CI/CD and expand the ...
BMitch's user avatar
  • 3,230
3 votes
Accepted

Which CI/CD tool(s) should a DevOps newbie learn?

Just some freeform thoughts from your question. For perspective, I run a large enterprise DevOps team that has automated build & deployment for a wide range of large scale services (which run over ...
John Humphreys's user avatar
2 votes
Accepted

Does Spinnaker's rosco use HashiCorp's packer or is it another tool?

From spinnaker own documentation Rosco is the bakery. It is used to produce machine images (e.g. GCE images, AWS AMIs, Azure VM images). It presently wraps packer, but will shortly be expanded ...
Tensibai's user avatar
  • 11.3k
2 votes

Is it useful to track dev time with CI/CD?

You can use the rich jira rest API for this kind of automation work. Jira API provides mechanism to update logged hours using PUT /rest/api/2/issue/{issueIdOrKey}/worklog/{id} You can use this rest ...
Vishal's user avatar
  • 31
2 votes
Accepted

what is better between Jenkins & AWS CodeDeploy for CI/CD

Both are excellent tools, but it depends on your use cases for which is better. I would highly recommend using the entire AWS Ci/Cd suite (CodeBuild/CodePipeline/CodeDeploy) to gain the full benefit ...
Preston Martin's user avatar
  • 3,218
2 votes

CICD using jenkins which is installed in other machine

If your question is can Jenkins deploy to machine B then the answer is absolutely! Jenkins provides documentation on deployments here, and has an example of a multibranch pipeline deployment here. ...
Wesley Rolnick's user avatar
2 votes

Gitlab CI/CD fails to build docker image

It looks like that the docker login and the docker build were done by different users. If a docker login is performed, then a ~/.docker directory will be created in the namespace of user X, if the ...
030's user avatar
  • 13.1k
2 votes

How to mange data access in a CICD pipeline for multiple users with different permissions

My general experience is that CI/CD tools don't support impersonation or claims based authentication well or at-all. In addition you probably want the CI/CD tool to have more access than your users, ...
Richard Slater's user avatar
2 votes

How to mange data access in a CICD pipeline for multiple users with different permissions

Most CI/CD tooling will support permissions of some sort. For example: All of AWS CI/CD tooling supports limiting permissions via IAM. IAM also ties into AD which would give you that SSO (single ...
Wesley Rolnick's user avatar
2 votes

Trigger Jenkins Job from Azure DevOps

The error message you have provided indicates that this is a problem with the configuration that could be permission related. Here are some steps to help resolve this issue: You can follow guides ...
Wesley Rolnick's user avatar
2 votes

feature flags vs versioning for APIs

The two approaches whilst somewhat overlapping solve two different problems: Feature flags allow you to decouple the action of deployment from the action of release. i.e. you can push a change to an ...
Richard Slater's user avatar
2 votes
Accepted

Issue connecting to ECR using Spinnaker on Kubernetes

Update for anyone else who runs into this issue, when Spinnaker is installed using helm it's using an older version of the Halyard container which doesn't have the AWS CLI tool. This seems to be hard ...
joshk132's user avatar
  • 465
2 votes

Using 32 bit for savings

These are really the pitfalls as running a VM or traditional server with 32 bit CPUs. Most notably is memory addressing. 32 bit CPUs can only access up to 4 gigs of memory. This isn't something i ...
xtreampb's user avatar
  • 433

Only top scored, non community-wiki answers of a minimum length are eligible