Skip to content

Commit

Permalink
Add docker/hub/tool
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed Feb 13, 2017
1 parent da651ad commit 812c537
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ci/docker/hub/tool/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM imazen/imageflow_base_os

MAINTAINER Nathanael Jones

ARG SOURCE_COMMIT
ARG DOCKER_TAG

RUN if [ -z "${SOURCE_COMMIT}" ]; then echo "SOURCE_COMMIT not set; exiting" && exit 1; else echo "SOURCE_COMMIT=${SOURCE_COMMIT}"; fi && \
if [[ "${SOURCE_COMMIT}" -ne "${BASE_OS_SOURCE_COMMIT}"]]; then echo "Mismatched images! ${BASE_OS_SOURCE_COMMIT} vs ${SOURCE_COMMIT}; exiting - push imazen/imageflow_base_os first" && exit 1; fi


RUN mkdir nightly && cd nightly && wget -nv -O ifs.tar.gz https://s3-us-west-1.amazonaws.com/imageflow-nightlies/commits/${SOURCE_COMMIT}/linux64_sandybridge_glibc223.tar.gz \
&& tar xvzf ifs.tar.gz && mv ./imageflow_tool ../ && cd .. && rm -rf nightly


ENTRYPOINT ["/home/imageflow/imageflow_tpol"]
CMD ["help"]
3 changes: 3 additions & 0 deletions ci/docker/hub/tool/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

## imageflow_tool

0 comments on commit 812c537

Please sign in to comment.