Skip to content

Commit

Permalink
Makefile: Drop tasks-shell
Browse files Browse the repository at this point in the history
This is hopelessly outdated and useless. Production does not use that,
and local developers just use toolbox or podman-run -- they wouldn't
have any of these secrets directories anyway.
  • Loading branch information
martinpitt committed Mar 12, 2024
1 parent 8d3fb61 commit 34d29df
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
all:
@echo "usage: make containers" >&2
@echo " make tasks-shell" >&2
@echo " make tasks-container" >&2
@echo " make tasks-push" >&2
@echo " make check" >&2
Expand All @@ -11,23 +10,11 @@ check:

TAG := $(shell date --iso-8601)
TASK_SECRETS := /var/lib/cockpit-secrets/tasks
WEBHOOK_SECRETS := /var/lib/cockpit-secrets/webhook
TASK_CACHE := /var/cache/cockpit-tasks
DOCKER ?= $(shell which podman docker 2>/dev/null | head -n1)

containers: tasks-container
@true

tasks-shell:
$(DOCKER) run -ti --rm \
--shm-size=1024m \
--volume=$(CURDIR)/tasks:/usr/local/bin \
--volume=$(TASK_SECRETS):/run/secrets/tasks/:ro \
--volume=$(WEBHOOK_SECRETS):/run/secrets/webhook/:ro \
--volume=$(TASK_CACHE):/cache:rw \
--entrypoint=/bin/bash \
quay.io/cockpit/tasks -i

tasks-container:
$(DOCKER) build -t quay.io/cockpit/tasks:$(TAG) tasks/container
$(DOCKER) tag quay.io/cockpit/tasks:$(TAG) quay.io/cockpit/tasks:latest
Expand Down

0 comments on commit 34d29df

Please sign in to comment.