Skip to content

Instantly share code, notes, and snippets.

💭
This Too Shall Pass

Adelmo Filho adelmofilho

💭
This Too Shall Pass
View GitHub Profile
@adelmofilho
adelmofilho / docker-compose.jenkins-sock.yml
Last active Jun 21, 2020
Docker sock mount approach to run Jenkins as a Docker container
View docker-compose.jenkins-sock.yml
# This docker-compose file intent to run a Jenkins container connected to the host machine Docker daemon.
#
# A discussion about potential security issues and improvements on this approach can be found at:
# https://forums.docker.com/t/using-docker-in-a-dockerized-jenkins-container/322/11
#
# Source: http://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/
version: '3.1'
volumes:
@adelmofilho
adelmofilho / docker-compose.jenkins-dind.yml
Created Jun 21, 2020
Docker-in-Docker approach to run Jenkins as a Docker container
View docker-compose.jenkins-dind.yml
# This docker-compose file intent to create a multi-container application
# that runs a Jenkins container connected via TLS to a Docker-in-Docker (dind) container as Docker daemon.
#
# Advice about this approach can be found at:
# http://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/
#
# As well discussion about another alternatives on this setup can be found at:
# https://forums.docker.com/t/using-docker-in-a-dockerized-jenkins-container/322/11
#
# Quick reference about Docker-in-Docker can be fount at:
@adelmofilho
adelmofilho / main.tf
Last active Jan 30, 2020
terraform main file
View main.tf
/*
* DigitalOcean Provider
* https://www.terraform.io/docs/providers/do/index.html
*/
provider "digitalocean" {
token = "${var.token}"
api_endpoint = "${var.api_endpoint}"
}
@adelmofilho
adelmofilho / youtube_api_request.R
Created Oct 21, 2018
Extração de dados dos vídeos do canal do Pirula
View youtube_api_request.R
library(stringr)
library(dplyr)
library(RJSONIO)
library(magrittr)
isNull <- function(x){
if (is.null(x)) { y <- NA }
else { y <- x }
return(y)
You can’t perform that action at this time.