Skip to content

Instantly share code, notes, and snippets.

View j-fuentes's full-sized avatar

Jose Fuentes Castillo j-fuentes

View GitHub Profile
@j-fuentes
j-fuentes / import.sh
Created November 12, 2020 18:07
Import a repo into a subfolder of another repo preserving commit history
#!/bin/bash
set -eux
shopt -s extglob dotglob
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
TEMP_DIR="${DIR}/import-repos-temp"
# e.g. git@github.com:user/world-domination-frontend.git
SUBPROJECT_REPO="$1"
# e.g. frontend
@j-fuentes
j-fuentes / aboutPuppetCerts.md
Created September 29, 2015 12:08
About using Puppet certificates in Docker

About using Puppet infrastructure certificates for Docker infrastructure

Puppet uses openssl certificates to securize the communication between the master and the agents. Docker also uses the same technology in the communication between the engine and the client. So, it could be a good idea to reuse the certificates that Puppet generates when it setup an agent in the Docker TLS communication.

Puppet ssl details

The Puppet master has it own CA authority. It also has a certificate (which contains the RSA public key) and a private key.

When a new agent tries to connect with the master, the master signs agent's certificate (here we can follow different policies: manual sign, autosign.conf, etc).

Keybase proof

I hereby claim:

  • I am j-fuentes on github.
  • I am jfc (https://keybase.io/jfc) on keybase.
  • I have a public key ASCUd3KpLkoyNqUlhKyKMnmBjb0px1kUNBTpSxOhbyQHVAo

To claim this, I am signing this object:

FROM gcr.io/stacksmith-images/ubuntu:14.04-r9
RUN apt-get -y update && \
apt-get -y upgrade && \
apt-get -y install wget curl emacs vim
WORKDIR /tmp/dev
CMD ["tail", "-f", "/dev/null"]
version: '2'
services:
bootcamp:
build: .
container_name: bootcamp
volumes:
- .:/tmp/dev
version: '2'
services:
bootcamp:
build: .
container_name: bootcamp
volumes:
- .:/tmp/dev
version: '2'
services:
bootcamp:
build: .
container_name: bootcamp
volumes:
- .:/tmp/dev
FROM gcr.io/stacksmith-images/ubuntu:14.04-r9
RUN apt-get -y update && \
apt-get -y upgrade && \
apt-get -y install wget curl emacs vim
WORKDIR /tmp/dev
CMD ["tail", "-f", "/dev/null"]