diff --git a/Pipfile b/Pipfile index db32dc6d57641975a22a74d6a2e5956fe3c8d8e7..5c5f8891c4451a9be4290a1e0ba56d85a0f68eef 100644 --- a/Pipfile +++ b/Pipfile @@ -4,19 +4,19 @@ verify_ssl = true [dev-packages] "autopep8" = "*" -"gprof2dot" = "==2017.9.19" +"gprof2dot" = "*" "pep8" = "*" "pyprof2calltree" = "*" "urllib3" = "*" asynctest = "*" autoflake = "*" -awscli = "==1.16.49" +awscli = "*" certifi = "*" -crayons = "==0.1.2" -cython = "==0.29" +crayons = "*" +cython = "*" ipython = "*" isort = "*" -jsonschema = "==2.6.0" +jsonschema = "*" jupyter = "*" line-profiler = "*" mypy = "*" @@ -37,7 +37,7 @@ pytest-timeout = "*" python-rapidjson = "*" requests = "*" yapf = "*" -funcy = "==1.11" +funcy = "*" vprof = "*" [packages] diff --git a/build.sh b/build.sh new file mode 100755 index 0000000000000000000000000000000000000000..db17a15ba32d5825b55a8c2ff49ddfe38a2ea9a6 --- /dev/null +++ b/build.sh @@ -0,0 +1,9 @@ +echo Build started on `date` +export IMAGE_TAG=`git ls-remote --heads origin | grep $(git rev-parse HEAD) | cut -d / -f 3` +if [ "$IMAGE_TAG" = "master" ] ; then export IMAGE_TAG=latest ; fi +export REPO_PATH=`git rev-parse --show-toplevel` +export REPO_NAME=`basename $REPO_PATH` +export IMAGE_REPO_NAME="steemit/$REPO_NAME" +export SOURCE_COMMIT=`git rev-parse HEAD` +echo Building branch $IMAGE_TAG from $IMAGE_REPO_NAME +docker build . -t $IMAGE_REPO_NAME:$IMAGE_TAG --build-arg SOURCE_COMMIT="${SOURCE_COMMIT}" --build-arg DOCKER_TAG="${IMAGE_TAG}"