This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
glehmann@gbook:/tmp/test$ docker run -v .:/app alpine touch /app/foo | |
glehmann@gbook:/tmp/test$ ls -lh | |
total 0 | |
-rw-r--r-- 1 root root 0 janv. 21 09:48 foo | |
glehmann@gbook:/tmp/test$ docker run -u $(id -u):$(id -g) -v .:/app alpine touch /app/bar | |
glehmann@gbook:/tmp/test$ ls -lh | |
total 0 | |
-rw-r--r-- 1 glehmann glehmann 0 janv. 21 09:48 bar | |
-rw-r--r-- 1 root root 0 janv. 21 09:48 foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate custom_error; | |
use custom_error::custom_error; | |
use std::fs::metadata; | |
use std::io; | |
use std::path::Path; | |
use std::path::PathBuf; | |
use std::result::Result; | |
custom_error! {ProgramError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate custom_error; | |
use custom_error::custom_error; | |
use std::fs::metadata; | |
use std::io; | |
use std::path::Path; | |
use std::path::PathBuf; | |
use std::result::Result; | |
custom_error! {ProgramError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# Setup a Root CA in vault | |
# Generate and sign an Intermediate cert | |
# | |
# Requires: | |
# * vault cli (https://www.vaultproject.io) | |
# * jq (https://stedolan.github.io/jq/) | |
# * A running vault server already initialzed and unsealed | |
# * vault cli must be already authenticated (try "vault server -dev") |