Most Popular

1500 questions
16
votes
6 answers

How to run a script or a command on EC2 instance via AWS CLI?

According to New EC2 Run Command news article, AWS CLI should support a new sub-command to execute scripts on remote EC2 instances. However I've checked in aws ec2 help, but I can't find the relevant command. I've installed aws via apt-get: $ aws…
kenorb
  • 8,011
  • 14
  • 43
  • 80
16
votes
2 answers

Docker In Kubernetes Deployment

I am using a third party library that creates sibling docker containers via: docker run -d /var/run/docker.sock:/var/run/docker.sock ... I am trying to create a Kubernetes deployment out of the above container, but currently getting: Cannot…
rys
  • 339
  • 1
  • 3
  • 9
15
votes
1 answer

What is the difference between the traditional Development and Operations Model and Site Reliability Engineering?

"SRE is what happens when you ask a software engineer to design an operations team." – Site Reliability Engineering Since Google's Site Reliability Engineering Book was released, on more than one occasion I have been told that SRE is an extension…
Richard Slater
  • 11,747
  • 7
  • 43
  • 82
15
votes
2 answers

What is ansible-runner about?

I've read the README file from the github repository as well as the documentation site of ansible-runner (from the official ansible project) but I don't understand what is ansible-runner about and in which case can it be useful ? Is it a project…
15
votes
2 answers

What is a good logging practice for distributed tasks?

I have the following setting: Create multiple workers, do a computation and terminate them after the computation is done. So, every-time it’ll be a different instance running the task, so each host will have its own a log file, this will result…
Dawny33
  • 2,816
  • 3
  • 24
  • 62
15
votes
2 answers

Ansible Playbook Localhost Invocation Working Directory

I want to run an ansible playbook locally (host is localhost, like -i "localhost,") and inside the Playbook obtain the working directory from which the ansible-playbook command was invoked. However, when I read out the current working directory in a…
hakre
  • 253
  • 1
  • 3
  • 6
15
votes
1 answer

How can I pipe jq output

I recently learned about an outstanding little tool, jq that allows you to pipe unformatted JSON output into it and then have that output reformatted and output to the screen in a very nicely formatted color-coded json layout. Eg: echo '{"value":…
James Shewey
  • 3,752
  • 1
  • 17
  • 38
15
votes
3 answers

Simple CI/CD Containers in AWS

I am using AWS Code Pipeline, Code Build to create a new Docker container and push it to ECR. My application is a simple straight-forward single-container based. What would be less friction approach to pull down current running Container and…
15
votes
4 answers

How to performance test AWS Lambda functions?

AWS Lambda cost is dependent on the time a function runs, and to some extent on memory footprint. Having functions that finish faster, and take up less memory can save quite a lot of money. Especially when such a function is executed often. How can…
Evgeny Zislis
  • 9,023
  • 5
  • 39
  • 72
15
votes
2 answers

Does Docker allow containers to be OS agnostic?

We currently use a Windows based server to host 2 VMs. One VM uses Windows with a Windows app and the other VM uses Linux with a Linux app. Is the below scenario possible? Bare server with Windows 2016 (no VMs). Install Docker engine. Install…
nanonerd
  • 251
  • 1
  • 2
  • 3
15
votes
5 answers

What's the difference between checkin and checkout?

When teaching SCM classes to students that are new to Software Configuration Management, it happens that a question comes up like "What's the difference between checkin and checkout?". And a variation of it is that such students get confused about…
Pierre.Vriens
  • 7,225
  • 14
  • 39
  • 84
15
votes
1 answer

How to achieve a smooth transition from “the one big VCS repository for all products” organisation model to the “many small VCS repositories” model?

It is a common scenario that the codebase of a product held by a repository in some VCS system evolves to a point where that codebase can arguably be seen as containing several products. Splitting the codebase across several VCS repositories, each…
Michaël Le Barbier
  • 2,670
  • 1
  • 16
  • 27
15
votes
3 answers

Is there any concrete and acceptable solution for running systemd inside the docker container?

I have seen many workarounds for this to run systemd inside docker containers but looks like most of them compromise the security of the container and the host. How are most people here dealing with running systemd specific stuff inside the…
lakshayk
  • 636
  • 1
  • 4
  • 8
15
votes
3 answers

How to use feature flag toggles?

What are the different ways to use feature flag toggles in applications? If you were to explain to a developer the exact things that should be done in order to get from nothing to a full feature-flag-toggled application, what would those steps be?
Evgeny Zislis
  • 9,023
  • 5
  • 39
  • 72
15
votes
2 answers

How can I keep track of my Cloud Resource use?

I am trying to automate my AWS application deployment with Jenkins. Right now if we want to update the application in any of the environments, say UAT, we build our docker images, find the current ECS Task and update it with the new image, find the…
Chris
  • 315
  • 2
  • 8