- Execute
sudo docker run --name postgres -p 5432:5432 -e POSTGRES_PASSWORD=CHANGEME -d postgres
-
Execute
psql -h localhost -U postgres -
Within the psql shell execute the following lines
CREATE USER barbican WITH PASSWORD 'ALLTHEPASS';
| [composite:main] | |
| use = egg:Paste#urlmap | |
| /: barbican_version | |
| /v1: barbican_api | |
| [pipeline:barbican_version] | |
| pipeline = versionapp | |
| [pipeline:barbican_api] | |
| pipeline = unauthenticated-context apiapp |
| #!/bin/bash | |
| # This hook is sourced after every virtualenv is activated. | |
| # This belongs in $WORKON_HOME/postactivate | |
| VIRTUAL_ENV_NAME=${VIRTUAL_ENV##*/} | |
| if [[ $VIRTUAL_ENV_NAME == *"custom_prefix_"* ]] | |
| then | |
| export PIP_INDEX_URL="https://pypi.python.org/simple" | |
| else | |
| # Put this line in postdeactivate as well |
| #!/bin/sh | |
| apt-get update | |
| apt-get install -y vim git libncurses5-dev gcc make screen kernel-package python-pip python-dev libffi-dev htop | |
| apt-get build-dep -y linux-image-3.19.0-21-generic | |
| # Download custom ath10k kernel fork | |
| git clone https://github.com/kvalo/ath.git ath | |
| cd ath | |
| # Checkout 4.1.0-rc7 |
| #[macro_use] | |
| extern crate bitflags; | |
| mod something; | |
| fn main() { | |
| let e1 = something::FLAG_A | something::FLAG_C; | |
| let e2 = something::FLAG_B | something::FLAG_C; | |
| assert!((e1 | e2) == something::FLAG_ABC); // union | |
| assert!((e1 & e2) == something::FLAG_C); // intersection |
sudo docker run --name postgres -p 5432:5432 -e POSTGRES_PASSWORD=CHANGEME -d postgres
Execute psql -h localhost -U postgres
Within the psql shell execute the following lines
CREATE USER barbican WITH PASSWORD 'ALLTHEPASS';
| #!/bin/bash | |
| get_id () { | |
| echo `$@ | awk '/ id / { print $4 }'` | |
| } | |
| export OS_SERVICE_TOKEN="ADMIN_TOKEN" | |
| export OS_SERVICE_ENDPOINT="http://localhost:35357/v2.0" | |
| SERVICE_ID=$(get_id keystone service-create --name=barbican --type="key-manager" --description="Key_Management_Service") |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| pub_key=~/.ssh/id_rsa.pub | |
| while read server | |
| do | |
| echo "Copying to $server" | |
| ssh-copy-id -i $pub_key root@$server | |
| done <servers.txt |
| #!/bin/bash | |
| sudo docker rm `sudo docker ps --no-trunc -a -q` | |
| sudo docker rmi $(sudo docker images | awk '$1!~/centos/ && NR>1 {print $3}') |