Authenticate Jenkins to access Google Drive/Sheets
Hi there,
I'm trying to automate the process of downloading a Google Sheets file as an excel and uploading it to an s3 bucket. I have an endpoint that downloads the file as excel, but when Jenkins does a GET request to it it gets blocked by the Google login prompt.
I can't seem to find a good way to authenticate/allow Jenkins to programmatically hit that endpoint. Does anyone have any documentation or ideas on how I should be doing it? I've googled to no avail and can't imagine I'm the first person to do this. Any help would be awesome
https://redd.it/dx87ea
@r_devops
Hi there,
I'm trying to automate the process of downloading a Google Sheets file as an excel and uploading it to an s3 bucket. I have an endpoint that downloads the file as excel, but when Jenkins does a GET request to it it gets blocked by the Google login prompt.
I can't seem to find a good way to authenticate/allow Jenkins to programmatically hit that endpoint. Does anyone have any documentation or ideas on how I should be doing it? I've googled to no avail and can't imagine I'm the first person to do this. Any help would be awesome
https://redd.it/dx87ea
@r_devops
reddit
Authenticate Jenkins to access Google Drive/Sheets
Hi there, I'm trying to automate the process of downloading a Google Sheets file as an excel and uploading it to an s3 bucket. I have an endpoint...
Centralized Unit Test Validation for Multiple Git(*) Repositories
Hey guys,
I have a project which I don't know how to even get started with. I will appreciate your help and ideas.
The project requires complex automation of git repository workflow (github, gitlab, etc - at this point git source vendor doesn't matter). Here is the scenario:
1. I have 20 people who will provide authentication to their git platform account and will fork my private repository.
2. Then, when they update and push code to their fork, I want to have a cloud/self-hosted devops project, which will pull their code and validate it with unit tests (challenge #1).
3. The output status of the pipeline (passed or failed) will be sent to my server to track their fork build status (challenge #2).
Are the above steps possible with any technologies out there? If not, I am open to alternative solutions, but the basic requirement is:
* people will have only read-access to my code, but i will need to programmatically validate the build output of their code with unit tests.
I've been thinking about this requirement for a long time, but couldn't come up with any solution. Maybe there is something fundamentally wrong with this requirement? Maybe i shouldn't be using Git, but a centralized version control?
Thanks a lot for the help.
https://redd.it/dx7ukp
@r_devops
Hey guys,
I have a project which I don't know how to even get started with. I will appreciate your help and ideas.
The project requires complex automation of git repository workflow (github, gitlab, etc - at this point git source vendor doesn't matter). Here is the scenario:
1. I have 20 people who will provide authentication to their git platform account and will fork my private repository.
2. Then, when they update and push code to their fork, I want to have a cloud/self-hosted devops project, which will pull their code and validate it with unit tests (challenge #1).
3. The output status of the pipeline (passed or failed) will be sent to my server to track their fork build status (challenge #2).
Are the above steps possible with any technologies out there? If not, I am open to alternative solutions, but the basic requirement is:
* people will have only read-access to my code, but i will need to programmatically validate the build output of their code with unit tests.
I've been thinking about this requirement for a long time, but couldn't come up with any solution. Maybe there is something fundamentally wrong with this requirement? Maybe i shouldn't be using Git, but a centralized version control?
Thanks a lot for the help.
https://redd.it/dx7ukp
@r_devops
reddit
Centralized Unit Test Validation for Multiple Git(*) Repositories
Hey guys, I have a project which I don't know how to even get started with. I will appreciate your help and ideas. The project requires complex...
Who has the best chance to become a "platform" for DevOps?
Everyone from GitLab, JFrog to CloudBees seems to be intent on making a broader platform and not stay a tool or a point solution in the whole tool chain.
I think GitLab has the been the most vocal about this, but i feel jFrog's central role as source of truth of artifacts could be very helpful in trying to expand into DevSecOps and distribution.
Who do you think has the best chance?
https://redd.it/dxaa11
@r_devops
Everyone from GitLab, JFrog to CloudBees seems to be intent on making a broader platform and not stay a tool or a point solution in the whole tool chain.
I think GitLab has the been the most vocal about this, but i feel jFrog's central role as source of truth of artifacts could be very helpful in trying to expand into DevSecOps and distribution.
Who do you think has the best chance?
https://redd.it/dxaa11
@r_devops
reddit
Who has the best chance to become a "platform" for DevOps?
Everyone from GitLab, JFrog to CloudBees seems to be intent on making a broader platform and not stay a tool or a point solution in the whole tool...
It's a secret!
So I'm currently doing my research on handling secrets through the tech stack, with the focus currently on the build \\ deploy pipelines. This is for a hybrid cloud project which can be summed up as K8's on AWS + a few extras bits, trying to avoid vendor specific tooling however.
In real terms, we're probably going to go down the route of Hashicorp Vault. However when I submit my research, I want it to have good, concrete reasons for it other than "It's what everyone else is doing"
The thing is, I can't seem to find any real comparisons. I'm focusing my research on Vault, Keywhiz and Torus. I know Vault has a comparison with Keywhiz on their website, but that's about it.
Does anyone know of any articles or podcasts that actually go over the differences in an easy to understand fashion.
https://redd.it/dvrx79
@r_devops
So I'm currently doing my research on handling secrets through the tech stack, with the focus currently on the build \\ deploy pipelines. This is for a hybrid cloud project which can be summed up as K8's on AWS + a few extras bits, trying to avoid vendor specific tooling however.
In real terms, we're probably going to go down the route of Hashicorp Vault. However when I submit my research, I want it to have good, concrete reasons for it other than "It's what everyone else is doing"
The thing is, I can't seem to find any real comparisons. I'm focusing my research on Vault, Keywhiz and Torus. I know Vault has a comparison with Keywhiz on their website, but that's about it.
Does anyone know of any articles or podcasts that actually go over the differences in an easy to understand fashion.
https://redd.it/dvrx79
@r_devops
reddit
It's a secret!
So I'm currently doing my research on handling secrets through the tech stack, with the focus currently on the build \\ deploy pipelines. This is...
Differences between implementing Centralized Logging vs Distributed Logging in a small scale IT industry having applications running on AWS?
Which one would you chose if you care more about monitoring your infrastructure, specially if you have a small team and limited amount of resources? I am new to DevOps culture.
https://redd.it/dvp69a
@r_devops
Which one would you chose if you care more about monitoring your infrastructure, specially if you have a small team and limited amount of resources? I am new to DevOps culture.
https://redd.it/dvp69a
@r_devops
reddit
Differences between implementing Centralized Logging vs...
Which one would you chose if you care more about monitoring your infrastructure, specially if you have a small team and limited amount of...
I fell into this field and I'm not successful at it. The operations people do not understand how I work as a software engineer.
There is a pattern wherein I get tasked with a difficult, large project that nobody wants to touch. Sometimes after spending a great deal of time figuring out what not to do or finding something that doesn't work, I stake out a robust v1.0 project in something I've never done before that solves the problem and I deliver on it. I generally approach other issues solving the real question or dilemma, with a lot of deliberation and caution because it's production.
This seems unwelcome in a "move fast and break things" culture that is all too prevalent.
In executing the project, I get whatever helping of the following: zero support from management or coworkers because everyone is swamped and ignoring emails and chats, my boss doesn't understand what I'm doing or have the time to care, his boss doesn't have a clear idea because there's no communication between them, or the absolute worst, management with no authority to deal with other teams.
I have to rely on my intuition to navigate complex ecosystems made difficult by the fact that everyone relies on dated, legacy software and OSs. I find this intensive, isolated trial-and-error process to be immensely frustrating and taxing, so to burn off steam here and there and get my mind off it so I can go back with a fresh set of eyes, I might check my phone or look at something else online for whatever period of time which pisses off management despite the fact that people are *always* screwing around here. Anyways, this informs them that my performance is not up to par, usually something I usually find out too late in the process.
I cannot use 100% of my brain all the time to do this stuff. I don't know how anyone can.
The operations people especially do not understand me. They want MVPs that don't actually work (we would have been shut down if the MVP they were asking for leaked confidential information, which it would have), this last company had no code review and had things constantly breaking, and my boss's boss's deploy scripts had the worst code I've ever seen. I cannot, with my experience, move at the speed they're asking because what they're asking for doesn't fucking work.
Moreover, the operations people need tremendous reliability in employees so it's not accommodating for health issues despite what they think. As an epileptic amongst a handful of other issues I've been disciplined twice for having seizures at night that severely interfere with my work the next day and I have to call off late at night because I didn't get any sleep. Everyone sick has to WFH. I don't get it. I get that these are "small teams" but WTF, fix your hiring culture and make them larger.
Hiring in devops is another can of worms. This field is notoriously picky and has swamped engineers as a result.
I'm no longer calling myself devops but what I do best: software and infrastructure engineering. With this knowledge I'm looking for my next gig and I hope I find it fast. I've learned these lessons too late.
https://redd.it/dvo7zj
@r_devops
There is a pattern wherein I get tasked with a difficult, large project that nobody wants to touch. Sometimes after spending a great deal of time figuring out what not to do or finding something that doesn't work, I stake out a robust v1.0 project in something I've never done before that solves the problem and I deliver on it. I generally approach other issues solving the real question or dilemma, with a lot of deliberation and caution because it's production.
This seems unwelcome in a "move fast and break things" culture that is all too prevalent.
In executing the project, I get whatever helping of the following: zero support from management or coworkers because everyone is swamped and ignoring emails and chats, my boss doesn't understand what I'm doing or have the time to care, his boss doesn't have a clear idea because there's no communication between them, or the absolute worst, management with no authority to deal with other teams.
I have to rely on my intuition to navigate complex ecosystems made difficult by the fact that everyone relies on dated, legacy software and OSs. I find this intensive, isolated trial-and-error process to be immensely frustrating and taxing, so to burn off steam here and there and get my mind off it so I can go back with a fresh set of eyes, I might check my phone or look at something else online for whatever period of time which pisses off management despite the fact that people are *always* screwing around here. Anyways, this informs them that my performance is not up to par, usually something I usually find out too late in the process.
I cannot use 100% of my brain all the time to do this stuff. I don't know how anyone can.
The operations people especially do not understand me. They want MVPs that don't actually work (we would have been shut down if the MVP they were asking for leaked confidential information, which it would have), this last company had no code review and had things constantly breaking, and my boss's boss's deploy scripts had the worst code I've ever seen. I cannot, with my experience, move at the speed they're asking because what they're asking for doesn't fucking work.
Moreover, the operations people need tremendous reliability in employees so it's not accommodating for health issues despite what they think. As an epileptic amongst a handful of other issues I've been disciplined twice for having seizures at night that severely interfere with my work the next day and I have to call off late at night because I didn't get any sleep. Everyone sick has to WFH. I don't get it. I get that these are "small teams" but WTF, fix your hiring culture and make them larger.
Hiring in devops is another can of worms. This field is notoriously picky and has swamped engineers as a result.
I'm no longer calling myself devops but what I do best: software and infrastructure engineering. With this knowledge I'm looking for my next gig and I hope I find it fast. I've learned these lessons too late.
https://redd.it/dvo7zj
@r_devops
reddit
I fell into this field and I'm not successful at it. The...
There is a pattern wherein I get tasked with a difficult, large project that nobody wants to touch. Sometimes after spending a great deal of time...
Is there any downside to using Bitnami images from AWS marketplace?
I see that many images are available free to use whereas Enterprise versions would be expensive to pay directly (looking at jFrog artifactory).
However it sounds too good to be true that you can get all these Enterprise-grade OSS from a third party, with certified images in the AWS marketplace, without paying any money to original vendor (jFrog) or Bitnami.
https://redd.it/dxdouf
@r_devops
I see that many images are available free to use whereas Enterprise versions would be expensive to pay directly (looking at jFrog artifactory).
However it sounds too good to be true that you can get all these Enterprise-grade OSS from a third party, with certified images in the AWS marketplace, without paying any money to original vendor (jFrog) or Bitnami.
https://redd.it/dxdouf
@r_devops
reddit
Is there any downside to using Bitnami images from AWS marketplace?
I see that many images are available free to use whereas Enterprise versions would be expensive to pay directly (looking at jFrog artifactory)....
Docker, GitHub and continuous deployment
Hello guys,
I recently moved away from Heroku and created a droplet on Digital Ocean. Now with my new won freedom I also lost some luxury functions like the auto deployment functionality of Heroku but I bet we can figure out a better solution for this :^)
Well first of all I am wondering how my approach should go down. I have a nodejs backend which I want to deploy to my VPS when I commit to the master branch. I have a docker-compose file for the database right now and I plan on dockerizing the backend as well so I can add that to the docker-compose file.
So I am wondering what my plan of attack should be? I will create a Dockerfile for the nodejs backend. So when I push to master, I need to get the whole repo to my VPS, create the image of the backend and launch the docker-compose. Any recommendations? I do not want to install an additional Jenkins on my VPS. In the past I used Gitlabs CI runner but I am on GitHub right now.
Side note: Where do I save my environment variables? If I put them in the Dockerfile, I would have to check them into git as well
https://redd.it/dxbacd
@r_devops
Hello guys,
I recently moved away from Heroku and created a droplet on Digital Ocean. Now with my new won freedom I also lost some luxury functions like the auto deployment functionality of Heroku but I bet we can figure out a better solution for this :^)
Well first of all I am wondering how my approach should go down. I have a nodejs backend which I want to deploy to my VPS when I commit to the master branch. I have a docker-compose file for the database right now and I plan on dockerizing the backend as well so I can add that to the docker-compose file.
So I am wondering what my plan of attack should be? I will create a Dockerfile for the nodejs backend. So when I push to master, I need to get the whole repo to my VPS, create the image of the backend and launch the docker-compose. Any recommendations? I do not want to install an additional Jenkins on my VPS. In the past I used Gitlabs CI runner but I am on GitHub right now.
Side note: Where do I save my environment variables? If I put them in the Dockerfile, I would have to check them into git as well
https://redd.it/dxbacd
@r_devops
reddit
Docker, GitHub and continuous deployment
Hello guys, I recently moved away from Heroku and created a droplet on Digital Ocean. Now with my new won freedom I also lost some luxury...
Is it possible to come from a non-dev job into a DevOps career?
First off, I understand that DevOps isn't meant to be an Engineer role. It's meant to be a culture. Now that we've addressed the elephant in the room, we can move onto the reality of the fact that DevOps Engineer is now a real career title in the workforce.
I've read The Phoenix Project. I have done some studying and playing with tools/technologies (to list them in a mixed-hat fashion) such as Ansible, Terraform, AWS, GCP, K8s, OpenShift, GitLab CI, and Docker, and trying to utilize these tools at work where applicable. I'm also kind of basically dangerous at writing Helm charts.
For my work I have been writing useful web applications in Golang, and pushing them to GitLab where it runs my CI for unit testing and then creating a container image. The CI then pushes the new image to an OpenShift project image stream, which triggers my deployment to start a rolling update for the new code. These tools get used by people in my department, as well as some remote teams.
Other than that, I have submitted snippets of Ansible playbooks to our team that's in charge of that infrastructure automation to help prevent future outages after we deemed that the outage could have been prevented by an OS configuration.
My biggest take away from job interviews thus far has been that my experience is inadequate, which I believe is partially due to the fact that my actual title is more akin to Help Desk Technician II. Another possibility being that I don't have a college degree. I haven't been able to use Terraform, AWS, or GCP really at work because we host our own servers. What more should I be doing to advance in my career? Is there a stepping stone position from where I'm currently at that people tend to go through first? I'm partially asking all this for real, but I suppose also partially to vent after many promising interviews ended with no call-back.
https://redd.it/dx7gux
@r_devops
First off, I understand that DevOps isn't meant to be an Engineer role. It's meant to be a culture. Now that we've addressed the elephant in the room, we can move onto the reality of the fact that DevOps Engineer is now a real career title in the workforce.
I've read The Phoenix Project. I have done some studying and playing with tools/technologies (to list them in a mixed-hat fashion) such as Ansible, Terraform, AWS, GCP, K8s, OpenShift, GitLab CI, and Docker, and trying to utilize these tools at work where applicable. I'm also kind of basically dangerous at writing Helm charts.
For my work I have been writing useful web applications in Golang, and pushing them to GitLab where it runs my CI for unit testing and then creating a container image. The CI then pushes the new image to an OpenShift project image stream, which triggers my deployment to start a rolling update for the new code. These tools get used by people in my department, as well as some remote teams.
Other than that, I have submitted snippets of Ansible playbooks to our team that's in charge of that infrastructure automation to help prevent future outages after we deemed that the outage could have been prevented by an OS configuration.
My biggest take away from job interviews thus far has been that my experience is inadequate, which I believe is partially due to the fact that my actual title is more akin to Help Desk Technician II. Another possibility being that I don't have a college degree. I haven't been able to use Terraform, AWS, or GCP really at work because we host our own servers. What more should I be doing to advance in my career? Is there a stepping stone position from where I'm currently at that people tend to go through first? I'm partially asking all this for real, but I suppose also partially to vent after many promising interviews ended with no call-back.
https://redd.it/dx7gux
@r_devops
reddit
Is it possible to come from a non-dev job into a DevOps career?
First off, I understand that DevOps isn't meant to be an Engineer role. It's meant to be a culture. Now that we've addressed the elephant in the...
Looking for an AWS centered Airflow/job/batch management (python)
Hi,
I'm having troubles finding projects like airflow/luigi but that would be centered on AWS.
My goal is to :
* run anychronous but still dependent processes in ECS
* write workflows/tasks as code
* uses cloudwatch for log storage and retrieval
* uses cloudwatch for metrics storage, retrival being done with grafana
* be able to use aa REST api to launch the workflows, monitor them, etc...
The absolute requirements:
* free
* open source, hackable
* made in python
I checked the airflow documentation, it seems it'd a great product but it's doing too much things by itself, that could instead use actual AWS services. It has some integrations with lambdas and S3 but it seems like afterthoughts, even if they may work properly.
How do you guys handle this ? I don't want to spend my time rewriting dashboards that would analyze cloudwatch, ECS logs, etc..
Thanks !
https://redd.it/dx6vo9
@r_devops
Hi,
I'm having troubles finding projects like airflow/luigi but that would be centered on AWS.
My goal is to :
* run anychronous but still dependent processes in ECS
* write workflows/tasks as code
* uses cloudwatch for log storage and retrieval
* uses cloudwatch for metrics storage, retrival being done with grafana
* be able to use aa REST api to launch the workflows, monitor them, etc...
The absolute requirements:
* free
* open source, hackable
* made in python
I checked the airflow documentation, it seems it'd a great product but it's doing too much things by itself, that could instead use actual AWS services. It has some integrations with lambdas and S3 but it seems like afterthoughts, even if they may work properly.
How do you guys handle this ? I don't want to spend my time rewriting dashboards that would analyze cloudwatch, ECS logs, etc..
Thanks !
https://redd.it/dx6vo9
@r_devops
reddit
Looking for an AWS centered Airflow/job/batch management (python)
Hi, I'm having troubles finding projects like airflow/luigi but that would be centered on AWS. My goal is to : * run anychronous but still...
When do you decide that you need to use containerization in production? what is the benefits?do you have a checklist or something?
https://redd.it/dx3864
@r_devops
https://redd.it/dx3864
@r_devops
reddit
When do you decide that you need to use containerization in...
Posted in r/devops by u/Blitzpat • 3 points and 2 comments
Kibana is not responding.
Kibana is not responding.
Please see this https://pastebin.com/LW0QY1Ma
what is the issue ?
https://redd.it/dvpzgj
@r_devops
Kibana is not responding.
Please see this https://pastebin.com/LW0QY1Ma
what is the issue ?
https://redd.it/dvpzgj
@r_devops
Pastebin
[Bash] #service kibana status kibana is running #telnet localhost 5601 Trying 127. - Pastebin.com
Need Help Starting Out
Hey guys,
I think I might be in over my head here. I wanted to get a custom IDE for my startup built. So we found Eclipse Che and figured it would be a good starting point to build on. I am not a technical person at all and just looking at the landscape of it out is overwhelming. I would love to have all the cool features of Gitlab and I think it is possible with all the extensions and plugins Che has floating about. I guess my question is how do I get everything I need done without being a technical person? Where do I find an Eclipse expert?
https://redd.it/dvlfl5
@r_devops
Hey guys,
I think I might be in over my head here. I wanted to get a custom IDE for my startup built. So we found Eclipse Che and figured it would be a good starting point to build on. I am not a technical person at all and just looking at the landscape of it out is overwhelming. I would love to have all the cool features of Gitlab and I think it is possible with all the extensions and plugins Che has floating about. I guess my question is how do I get everything I need done without being a technical person? Where do I find an Eclipse expert?
https://redd.it/dvlfl5
@r_devops
reddit
Need Help Starting Out
Hey guys, I think I might be in over my head here. I wanted to get a custom IDE for my startup built. So we found Eclipse Che and figured it...
Why do you still use Jenkins?
I mean seriously it is an absolute dinosaur. Hard to manage, difficult to scale. Why do so many still use it over the more modern alternatives like Circle CI or Gitlab? Am I missing something here?
https://redd.it/dv81r1
@r_devops
I mean seriously it is an absolute dinosaur. Hard to manage, difficult to scale. Why do so many still use it over the more modern alternatives like Circle CI or Gitlab? Am I missing something here?
https://redd.it/dv81r1
@r_devops
reddit
Why do you still use Jenkins?
I mean seriously it is an absolute dinosaur. Hard to manage, difficult to scale. Why do so many still use it over the more modern alternatives...
New to this, probably not doing things correctly. Jenkins/Artifactory
I work for a large company with an existing infrastructure that I'm trying to piggy-back off of. I maintain mostly SQL scripts and other non-compile-ables in a Bitbucket repo. I'm trying to establish a consistent push from Bitbucket to a Windows server (overwriting existing files).
Initially, I used Jenkins (on Linux) mounted the Windows directory and cp'd the files from the workspace to the Win server. Basic but it worked, though it required sudo to mount the remote path.
We're supposed to push any Jenkins build artifacts into Artifactory though, and I shouldn't be using elevated permissions. So I've changed changed things up to deposit build artifacts to Artifactory and SSH a zip of the files to my win server, I can use a ps1 script to extract where they need to go - but I have to do that manually or scheduled (is there a way to trigger a remote ps1 script or a SQL Agent job from Jenkins?).
I really don't know Artifactory at all, and not sure if I should be trying to use Jenkins to push from Artifactory to my server, or pulling Artifactory artifacts from the Windows server on a schedule, or deploying from Jenkins to both Artifactory and Windows separately.
I also am utilizing SonarQube via Jenkins, but that's working fine currently.
**TL;DR:** What is the best way to move scripts from Bitbucket to a Windows server via Jenkins (on Ubuntu)?
https://redd.it/dvkw90
@r_devops
I work for a large company with an existing infrastructure that I'm trying to piggy-back off of. I maintain mostly SQL scripts and other non-compile-ables in a Bitbucket repo. I'm trying to establish a consistent push from Bitbucket to a Windows server (overwriting existing files).
Initially, I used Jenkins (on Linux) mounted the Windows directory and cp'd the files from the workspace to the Win server. Basic but it worked, though it required sudo to mount the remote path.
We're supposed to push any Jenkins build artifacts into Artifactory though, and I shouldn't be using elevated permissions. So I've changed changed things up to deposit build artifacts to Artifactory and SSH a zip of the files to my win server, I can use a ps1 script to extract where they need to go - but I have to do that manually or scheduled (is there a way to trigger a remote ps1 script or a SQL Agent job from Jenkins?).
I really don't know Artifactory at all, and not sure if I should be trying to use Jenkins to push from Artifactory to my server, or pulling Artifactory artifacts from the Windows server on a schedule, or deploying from Jenkins to both Artifactory and Windows separately.
I also am utilizing SonarQube via Jenkins, but that's working fine currently.
**TL;DR:** What is the best way to move scripts from Bitbucket to a Windows server via Jenkins (on Ubuntu)?
https://redd.it/dvkw90
@r_devops
reddit
New to this, probably not doing things correctly. Jenkins/Artifactory
I work for a large company with an existing infrastructure that I'm trying to piggy-back off of. I maintain mostly SQL scripts and other...
Composition over inheritance applied to Docker
The main benefit of Docker containers is that they are self-contained. For developers, that means one just needs to inherit from the desired Docker image that contains the necessary required dependencies, and presto, one can build one’s application deliver it to production. Most of the times, the process is pretty straightforward. Containerization allows scaling on unprecedented scale.
However, the downside of this self-containedness is that updating the parent image(s) becomes a nightmare.
https://blog.frankel.ch/composition-over-inheritance-applied-docker/
https://redd.it/dxo4sa
@r_devops
The main benefit of Docker containers is that they are self-contained. For developers, that means one just needs to inherit from the desired Docker image that contains the necessary required dependencies, and presto, one can build one’s application deliver it to production. Most of the times, the process is pretty straightforward. Containerization allows scaling on unprecedented scale.
However, the downside of this self-containedness is that updating the parent image(s) becomes a nightmare.
https://blog.frankel.ch/composition-over-inheritance-applied-docker/
https://redd.it/dxo4sa
@r_devops
A Java geek
Composition over inheritance applied to Docker
This post is neither a recommendation, nor even a suggestion. It’s just me toying with an idea: Implement it at your own risk! The main benefit of Docker containers is that they are self-contained. For developers, that means one just needs to inherit from…
Issue with login to ECR inside Jenkins build agent
I am using Jenkins to build something and I want it to run a custom image that is hosted on ECR. The keys have admin access (testing only - will restrict later) when I go to put it in I get a 401 error seen below. I have also included how I have my build agent set in my pipeline. I was hoping someone solved this already, google has just turned up the 'I figured it out thanks every' posts.
​
pipeline agent
agent {
docker {
image '<id>.dkr.ecr.us-east-1.amazonaws.com/node_build:latest'
registryUrl 'https://<id>.dkr.ecr.us-east-1.amazonaws.com/node_build'
registryCredentialsId 'aws-creds'
}
}
​
Error message seen in Jenkins
Running on Jenkins in /var/lib/jenkins/workspace/Deploy UI
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] withDockerRegistry
$ docker login -u <Access key> -p ******** https://<id>.dkr.ecr.us-east-1.amazonaws.com/node_build
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: login attempt to https://<id>.dkr.ecr.us-east-1.amazonaws.com/v2/ failed with status: 401 Unauthorized
https://redd.it/dvh4rk
@r_devops
I am using Jenkins to build something and I want it to run a custom image that is hosted on ECR. The keys have admin access (testing only - will restrict later) when I go to put it in I get a 401 error seen below. I have also included how I have my build agent set in my pipeline. I was hoping someone solved this already, google has just turned up the 'I figured it out thanks every' posts.
​
pipeline agent
agent {
docker {
image '<id>.dkr.ecr.us-east-1.amazonaws.com/node_build:latest'
registryUrl 'https://<id>.dkr.ecr.us-east-1.amazonaws.com/node_build'
registryCredentialsId 'aws-creds'
}
}
​
Error message seen in Jenkins
Running on Jenkins in /var/lib/jenkins/workspace/Deploy UI
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] withDockerRegistry
$ docker login -u <Access key> -p ******** https://<id>.dkr.ecr.us-east-1.amazonaws.com/node_build
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: login attempt to https://<id>.dkr.ecr.us-east-1.amazonaws.com/v2/ failed with status: 401 Unauthorized
https://redd.it/dvh4rk
@r_devops
Testing Packer Images
Is there a better way to test Packer builds beyond the fact that there were no errors in the build process? It doesn't look like Packer has anything for hooking some kind of validation of the system before finishing the build, so I'm not sure how or where it would happen. Has anyone ever done something like this?
https://redd.it/dxoelb
@r_devops
Is there a better way to test Packer builds beyond the fact that there were no errors in the build process? It doesn't look like Packer has anything for hooking some kind of validation of the system before finishing the build, so I'm not sure how or where it would happen. Has anyone ever done something like this?
https://redd.it/dxoelb
@r_devops
reddit
Testing Packer Images
Is there a better way to test Packer builds beyond the fact that there were no errors in the build process? It doesn't look like Packer has...
Are there new questions/tests you're hearing in interviews you weren't getting a year ago?
Hey, I'm pretty early in my devops career and have just been getting thrashed in my last couple interviews. Most of the 'here are questions you need to prep for' articles are a year old at best and I've read a ton of them.
Any newer ones you might be asking your candidates or are hearing yourselves that you didn't have a year ago?
https://redd.it/dxo6pt
@r_devops
Hey, I'm pretty early in my devops career and have just been getting thrashed in my last couple interviews. Most of the 'here are questions you need to prep for' articles are a year old at best and I've read a ton of them.
Any newer ones you might be asking your candidates or are hearing yourselves that you didn't have a year ago?
https://redd.it/dxo6pt
@r_devops
reddit
Are there new questions/tests you're hearing in interviews you...
Hey, I'm pretty early in my devops career and have just been getting thrashed in my last couple interviews. Most of the 'here are questions you...
Lambda function not being triggered by SNS notification
I have an application that does some processing which puts out a SNS notification depending on the results. The application works fine - I can see the console log of the notification being sent and see in cloudwatch that none are failing - however I am unable to get a lambda to run once the notification is sent out. There is an existing subscription to the SNS from the Lambda which was created using the serverless framework and I have confirmed in the console that a subscription exists.
​
What are some steps I can take to troublesoot this? I'm a bit lost today. Also any ideas on cause would be great
https://redd.it/dxq0ce
@r_devops
I have an application that does some processing which puts out a SNS notification depending on the results. The application works fine - I can see the console log of the notification being sent and see in cloudwatch that none are failing - however I am unable to get a lambda to run once the notification is sent out. There is an existing subscription to the SNS from the Lambda which was created using the serverless framework and I have confirmed in the console that a subscription exists.
​
What are some steps I can take to troublesoot this? I'm a bit lost today. Also any ideas on cause would be great
https://redd.it/dxq0ce
@r_devops
reddit
Lambda function not being triggered by SNS notification
I have an application that does some processing which puts out a SNS notification depending on the results. The application works fine - I can see...