Skip to content

Commit

Permalink
Merge pull request #2796 from Ankitasw/e2e-fix
Browse files Browse the repository at this point in the history
Download the e2e restart scripts outside the dockerfile
  • Loading branch information
k8s-ci-robot authored Sep 24, 2021
2 parents f3f5acf + f70429e commit 06e02b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ RUN --mount=type=cache,target=/root/.local/share/golang \
# Copy the sources
COPY ./ ./

RUN wget --output-document /restart.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/restart.sh && \
wget --output-document /start.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/start.sh && \
chmod +x /start.sh && chmod +x /restart.sh

# Build
ARG package=.
ARG ARCH
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ test-e2e-eks: $(GINKGO) $(KIND) $(SSM_PLUGIN) $(KUSTOMIZE) e2e-image ## Run eks
time $(GINKGO) -tags=e2e $(GINKGO_ARGS) ./test/e2e/suites/managed/... -- -config-path="$(E2E_EKS_CONF_PATH)" --source-template="$(EKS_SOURCE_TEMPLATE)" $(E2E_ARGS) $(EKS_E2E_ARGS)

.PHONY: e2e-image
e2e-image: docker-pull-prerequisites
e2e-image: docker-pull-prerequisites $(TOOLS_BIN_DIR)/start.sh $(TOOLS_BIN_DIR)/restart.sh
docker build -f Dockerfile --tag="gcr.io/k8s-staging-cluster-api/capa-manager:e2e" .

CONFORMANCE_E2E_ARGS ?= -kubetest.config-file=$(KUBETEST_CONF_PATH)
Expand Down
5 changes: 5 additions & 0 deletions hack/tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ $(SHARE_DIR):
$(GTAR):
@$(GTAR) --version > /dev/null || (echo Install GNU Tar with brew install gnu-tar && exit -1)

$(BIN_DIR)/start.sh:
curl https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/start.sh -o $@

$(BIN_DIR)/restart.sh:
curl https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/restart.sh -o $@

GO_APIDIFF := $(BIN_DIR)/go-apidiff
$(GO_APIDIFF): $(BIN_DIR) go.mod go.sum
Expand Down

0 comments on commit 06e02b2

Please sign in to comment.