From 97ca881a01a04acd35ddeb0b00efde0864f96342 Mon Sep 17 00:00:00 2001 From: Simon Li Date: Sun, 4 Jul 2021 18:30:39 +0100 Subject: [PATCH] Remove automated docker cloud hooks --- Dockerfile | 3 +-- hooks/README.md | 3 --- hooks/post_push | 8 -------- 3 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 hooks/README.md delete mode 100644 hooks/post_push diff --git a/Dockerfile b/Dockerfile index 5cd812ac..105eb03f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,7 @@ RUN apk add --no-cache git python3 python3-dev py-pip build-base # build wheels in first image ADD . /tmp/src -# restore the hooks directory so that the repository isn't marked as dirty -RUN cd /tmp/src && git clean -xfd && git checkout -- hooks && git status +RUN cd /tmp/src && git clean -xfd && git status RUN mkdir /tmp/wheelhouse \ && cd /tmp/wheelhouse \ && pip3 install wheel \ diff --git a/hooks/README.md b/hooks/README.md deleted file mode 100644 index 0ff34e00..00000000 --- a/hooks/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Docker build hooks - -These define our [custom hooks for docker automated builds](https://docs.docker.com/docker-hub/builds/advanced/#custom-build-phase-hooks) diff --git a/hooks/post_push b/hooks/post_push deleted file mode 100644 index d03f1c6b..00000000 --- a/hooks/post_push +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -# when building jupyter/repo2docker:main -# also push jupyter/repo2docker:1.2.3-3.abcd1234 (replace + with -) -version=$(docker run $DOCKER_REPO:$DOCKER_TAG jupyter-repo2docker --version | sed s@+@-@) -VERSION_IMAGE="$DOCKER_REPO:$version" -docker tag $DOCKER_REPO:$DOCKER_TAG "$VERSION_IMAGE" -docker push "$VERSION_IMAGE"