Skip to content
Snippets Groups Projects
Unverified Commit b6467e30 authored by Casey Kuhlman's avatar Casey Kuhlman
Browse files

fix building problems

parent 565c6ccb
No related branches found
No related tags found
No related merge requests found
......@@ -4,12 +4,12 @@ MAINTAINER Monax <support@monax.io>
ENV TARGET eris-db
# runtime customization start here
ADD ./eris-client $INSTALL_BASE
COPY ./eris-client $INSTALL_BASE/eris-client
COPY ./bin/start_eris_db $INSTALL_BASE/erisdb-wrapper
# runtime customization end here
# Get the binary from the artifact in pwd
ADD ./$TARGET $INSTALL_BASE
COPY ./"$TARGET"_build_artifact $INSTALL_BASE/$TARGET
RUN chmod +x --recursive $INSTALL_BASE
# Finalize
......
......@@ -36,17 +36,13 @@ release_maj=$(echo $release_min | cut -d . -f 1-2)
# Build
docker build -t $IMAGE:build $REPO
docker run --rm --entrypoint cat $IMAGE:build /usr/local/bin/$TARGET > $REPO/$TARGET
docker run --rm --entrypoint cat $IMAGE:build /usr/local/bin/$TARGET > $REPO/"$TARGET"_build_artifact
docker run --rm --entrypoint cat $IMAGE:build /usr/local/bin/eris-client > $REPO/eris-client
docker build -t $IMAGE:$release_min -f Dockerfile.deploy $REPO
# Cleanup
rm $REPO/$TARGET
rm $REPO/eris-client
if [ "$CI" ]
then
docker rmi $IMAGE:build
fi
# Extra Tags
if [[ "$branch" = "master" ]]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment