Skip to content

Commit

Permalink
Add make rules to manage AMAUATs Python deps
Browse files Browse the repository at this point in the history
  • Loading branch information
replaceafill committed Oct 30, 2023
1 parent ac7853d commit fca273a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions hack/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,26 @@ upgrade-requirements-ss: ## Run pip-upgrade for Storage Service
--entrypoint bash archivematica-storage-service \
-c "make pip-upgrade"

define amauat_make
docker compose \
-f docker-compose.yml \
-f docker-compose.acceptance-tests.yml \
run \
--workdir /src \
-e XDG_CACHE_HOME=/tmp/pip-cache \
--rm \
--no-deps \
--user $(CALLER_UID):$(CALLER_GID) \
--entrypoint bash archivematica-acceptance-tests \
-c "make $(1)"
endef

compile-requirements-amauat: test-at-build ## Run pip-compile for AMAUATs
$(call amauat_make,pip-compile)

upgrade-requirements-amauat: test-at-build ## Run pip-upgrade for AMAUATs
$(call amauat_make,pip-upgrade)

db: ## Connect to the MySQL server using the CLI.
docker compose exec mysql mysql -hlocalhost -uroot -p12345

Expand Down
1 change: 1 addition & 0 deletions hack/docker-compose.acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ services:
security_opt:
- "seccomp:unconfined"
volumes:
- "./submodules/archivematica-acceptance-tests/:/src/"
- "/dev/shm:/dev/shm"
- "./submodules/archivematica-sampledata:/home/archivematica/archivematica-sampledata:ro"
- "archivematica_pipeline_data:/var/archivematica/sharedDirectory:ro"
Expand Down

0 comments on commit fca273a

Please sign in to comment.