Skip to content

Commit

Permalink
Update boost version and add new builder buildspec
Browse files Browse the repository at this point in the history
  • Loading branch information
harrywong committed Sep 13, 2018
1 parent eb19469 commit 8884cf0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Docker/builder/Dockerfile
Expand Up @@ -12,12 +12,12 @@ RUN wget --no-check-certificate https://cmake.org/files/v3.12/cmake-3.12.0-Linux
&& bash cmake-3.12.0-Linux-x86_64.sh --prefix=/usr/local --exclude-subdir --skip-license \
&& rm cmake-3.12.0-Linux-x86_64.sh

RUN wget https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.bz2 -O - | tar -xj \
&& cd boost_1_67_0 \
RUN wget https://dl.bintray.com/boostorg/release/1.68.0/source/boost_1_68_0.tar.bz2 -O - | tar -xj \
&& cd boost_1_68_0 \
&& ./bootstrap.sh --prefix=/usr/local \
&& ./b2 -d0 -j$(nproc) --with-thread --with-date_time --with-system --with-filesystem --with-program_options \
--with-signals --with-serialization --with-chrono --with-test --with-context --with-locale --with-coroutine --with-iostreams toolset=gcc link=shared install \
&& cd .. && rm -rf boost_1_67_0
&& cd .. && rm -rf boost_1_68_0

RUN git clone --depth 1 git://github.com/cryptonomex/secp256k1-zkp \
&& cd secp256k1-zkp \
Expand Down
21 changes: 21 additions & 0 deletions buildspec-evt-builder.yml
@@ -0,0 +1,21 @@
version: 0.2

env:
parameter-store:
LOGIN_USERID: "docker-userid"
LOGIN_PASSWORD: "docker-password"
BUILD_JOBS: "docker-build-jobs"

phases:
pre_build:
commands:
- echo Logging into Docker Hub...
- docker login -u $LOGIN_USERID -p $LOGIN_PASSWORD
build:
commands:
- echo Start building latest evt builder...
- cd Docker/builder && docker build . -t everitoken/builder:latest --build-arg bjobs=$BUILD_JOBS
post_build:
commands:
- echo Publish to Docker Hub...
- docker push everitoken/builder:latest

0 comments on commit 8884cf0

Please sign in to comment.