dockerify

This commit is contained in:
Niko Kurtti
2015-03-29 11:08:36 +03:00
parent e8aced5cf5
commit ff47edc1e0
3 changed files with 60 additions and 0 deletions

15
build_docker Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
if [[ -z "$1" ]]
then
KEYROOT=$HOME
else
KEYROOT=$1
fi
gem install ejson
ejson --keydir=$KEYROOT/.ejson decrypt config/config.production.ejson > config.json
docker build -t koodiklinikka.fi-api .
rm -rf config.json