Skip to content

Commit

Permalink
add docker stuff for building
Browse files Browse the repository at this point in the history
  • Loading branch information
brentp committed Nov 19, 2018
1 parent 55e2c2e commit 960c4be
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docker/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
set -euo pipefail

base=$(pwd)

git clone -b devel --depth 1000 git://github.com/nim-lang/nim nim
cd nim
# before unchecked was removed:
git checkout cc5b8c6
sh build_all.sh
export PATH=$(base)/nim/bin:$PATH

cd $base
git clone --depth 1 git://github.com/brentp/duphold.git
cd duphold
nimble install -y kexpr
nimble install -y genoiser

nimble install -y

nim c -d:release src/duphold.nim
cp ./src/duphold /io
7 changes: 7 additions & 0 deletions docker/hbb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set -e
mkdir -p built/
cp docker/build.sh built/
docker run -t -i --rm -v `pwd`/built:/io \
centos:centos6 \
bash -c "yum install -y git curl wget && wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo && yum install -y devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++ && chmod +x /io/build.sh && scl enable devtoolset-2 /io/build.sh"
echo "binary in built/"

0 comments on commit 960c4be

Please sign in to comment.