Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #71 - Troca PWD para CURDIR. #72

Merged
merged 1 commit into from
Mar 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ FULL_PROJECT ?= false
API_PORT ?= 8080
BACKEND_PORT ?= 8000

run-command=(podman run --rm -ti --volume $(PWD):/mnt/code:rw \
run-command=(podman run --rm -ti --volume $(CURDIR):/mnt/code:rw \
--pod $(POD_NAME) \
--env PYTHONPATH=/mnt/code \
--env POSTGRES_PASSWORD=$(POSTGRES_PASSWORD) \
Expand All @@ -41,7 +41,7 @@ run-command=(podman run --rm -ti --volume $(PWD):/mnt/code:rw \
--env POSTGRES_PORT=$(POSTGRES_PORT) \
$(IMAGE_NAMESPACE)/$(IMAGE_NAME):$(IMAGE_TAG) $1)

wait-for=(podman run --rm -ti --volume $(PWD):/mnt/code:rw \
wait-for=(podman run --rm -ti --volume $(CURDIR):/mnt/code:rw \
--pod $(POD_NAME) \
--env PYTHONPATH=/mnt/code \
--env POSTGRES_PASSWORD=$(POSTGRES_PASSWORD) \
Expand All @@ -53,20 +53,20 @@ wait-for=(podman run --rm -ti --volume $(PWD):/mnt/code:rw \

.PHONY: black
black:
podman run --rm -ti --volume $(PWD):/mnt/code:rw \
podman run --rm -ti --volume $(CURDIR):/mnt/code:rw \
--env PYTHONPATH=/mnt/code \
$(IMAGE_NAMESPACE)/$(IMAGE_NAME):$(IMAGE_TAG) \
black .

.PHONY: build-devel
build-devel:
podman build --tag $(IMAGE_NAMESPACE)/$(IMAGE_NAME):$(IMAGE_TAG) \
-f scripts/Dockerfile $(PWD)
-f scripts/Dockerfile $(CURDIR)

.PHONY: build-tika-server
build-tika-server:
podman build --tag $(IMAGE_NAMESPACE)/$(APACHE_TIKA_IMAGE_NAME):$(APACHE_TIKA_IMAGE_TAG) \
-f scripts/Dockerfile_apache_tika $(PWD)
-f scripts/Dockerfile_apache_tika $(CURDIR)

.PHONY: build
build: build-devel build-tika-server
Expand Down Expand Up @@ -150,7 +150,7 @@ apache-tika-server: stop-apache-tika-server start-apache-tika-server


shell: set-run-variable-values
podman run --rm -ti --volume $(PWD):/mnt/code:rw \
podman run --rm -ti --volume $(CURDIR):/mnt/code:rw \
--pod $(POD_NAME) \
--env PYTHONPATH=/mnt/code \
--env-file envvars \
Expand Down Expand Up @@ -223,7 +223,7 @@ setup: set-run-variable-values create-pod storage apache-tika-server opensearch

.PHONY: re-run
re-run: set-run-variable-values
podman run --rm -ti --volume $(PWD):/mnt/code:rw \
podman run --rm -ti --volume $(CURDIR):/mnt/code:rw \
--pod $(POD_NAME) \
--env PYTHONPATH=/mnt/code \
--env-file envvars \
Expand All @@ -234,7 +234,7 @@ run: setup re-run

.PHONY: shell-run
shell-run: set-run-variable-values
podman run --rm -ti --volume $(PWD):/mnt/code:rw \
podman run --rm -ti --volume $(CURDIR):/mnt/code:rw \
--pod $(POD_NAME) \
--env PYTHONPATH=/mnt/code \
--env-file envvars \
Expand Down
Loading