Commit 042766fe authored by Johan Bloemberg's avatar Johan Bloemberg

Build hypercli for alpine.

parent 1e3b3e37
......@@ -7,3 +7,6 @@
[submodule "vendor/dnscheck"]
path = vendor/dnscheck
url = https://github.com/stitch/dnscheck.git
[submodule "vendor/hypercli"]
path = vendor/hypercli
url = https://github.com/hyperhq/hypercli
......@@ -20,8 +20,11 @@ RUN apk --no-cache add \
nodejs-npm \
libxml2-dev \
libxslt-dev \
python3-dev \
git
python3-dev \
git \
# hypercli build dependencies
go \
bash
# install app and dependencies in a artifact-able directory
RUN /usr/bin/pip3 install virtualenv
......@@ -43,6 +46,10 @@ RUN tools/docker-install-dnscheck.sh
# install osmtogeojson
RUN npm install osmtogeojson
# build hypersh hypercli
COPY vendor/hypercli /gopath/src/github.com/hyperhq/hypercli
RUN cd /gopath/src/github.com/hyperhq/hypercli; GOPATH=/gopath HYPER_GITCOMMIT=0 ./build.sh
# restart with a clean image
FROM failmap/o-saft:latest
......@@ -102,13 +109,13 @@ COPY --from=build /usr/local/bin/dnscheck /usr/local/bin/dnscheck
COPY --from=build /node_modules /node_modules
RUN ln -s /node_modules/.bin/osmtogeojson /usr/local/bin/
# copy hypercli binary
COPY --from=build /gopath/src/github.com/hyperhq/hypercli/hyper/hyper /usr/local/bin/hyper
# copy all relevant files for python installation
COPY ./failmap/ /source/failmap/
COPY /tools/dnssec.pl /source/tools/dnssec.pl
# Add hypersh CLI tool
COPY /vendor/hyper/hyper /usr/local/bin/hyper
# add wildcard to version file as it may not exists (eg: local development)
COPY setup.py setup.cfg MANIFEST.in requirements.dev.txt version* /source/
......
Subproject commit ba006bf6dd7a4438d99ce4f0976d648bc475c4a1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment