Commit 3cf8f107 authored by Johan Bloemberg's avatar Johan Bloemberg

Build hypercli for alpine.

Former-commit-id: 042766fe
parent fe6cb52c
......@@ -7,3 +7,6 @@
[submodule "vendor/dnscheck"]
path = vendor/dnscheck
url =
[submodule "vendor/hypercli"]
path = vendor/hypercli
url =
......@@ -21,7 +21,10 @@ RUN apk --no-cache add \
libxml2-dev \
libxslt-dev \
python3-dev \
git \
# hypercli build dependencies
go \
# install app and dependencies in a artifact-able directory
RUN /usr/bin/pip3 install virtualenv
......@@ -43,6 +46,10 @@ RUN tools/
# install osmtogeojson
RUN npm install osmtogeojson
# build hypersh hypercli
COPY vendor/hypercli /gopath/src/
RUN cd /gopath/src/; GOPATH=/gopath HYPER_GITCOMMIT=0 ./
# 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/ /usr/local/bin/hyper
# copy all relevant files for python installation
COPY ./failmap/ /source/failmap/
COPY /tools/ /source/tools/
# 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.cfg version* /source/
Subproject commit ba006bf6dd7a4438d99ce4f0976d648bc475c4a1
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment