Hot answers tagged

9 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> ...
user avatar
  • 330
5 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: ...
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 ...
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 ...
user avatar
  • 1,162
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 ...
user avatar
  • 4,696
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 ...
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 ...
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 ...
user avatar
  • 3,655
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-...
user avatar
  • 2,700
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 ...
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 ...
user avatar
  • 1,841
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'...
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 ...
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 ...
user avatar
  • 895
3 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 ...
user avatar
  • 737
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 ...
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 ...
user avatar
  • 11k
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 ...
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 ...
user avatar
  • 2,973
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. ...
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 ...
user avatar
  • 12.5k
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, ...
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 ...
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 ...
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 ...
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 ...
user avatar
  • 435
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 ...
user avatar
  • 433
2 votes

Database Backup using jenkins

I don't know of any current plugins for doing this. That may because a lot of backup functionality is built into MSSQL. The easiest way to automate a backup via Jenkins may be to use a command line ...
user avatar
2 votes
Accepted

Is GitLab flow (or GitHub flow, etc) anti build-once deploy-everywhere?

One possible answer could come from the reason for using multiple branches as basis for environments in the first place. In some organisations (typically for large scale projects and often for ...
user avatar
2 votes

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

Versioning is generally a pain point in microservice management. I just wrote a Medium article how we are dogfooding our tool Reliza Hub to help with this problem - https://medium.com/@taleodor/...
user avatar
  • 737

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