This repository has been archived by the owner on Jul 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
117 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ AM_PIPELINE_DATA ?= /tmp/am-pipeline-data | |
SS_LOCATION_DATA ?= /tmp/ss-location-data | ||
|
||
|
||
.PHONY: list | ||
|
||
list: | ||
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | ||
|
||
create-volumes: | ||
mkdir -p ${AM_PIPELINE_DATA} | ||
docker volume create \ | ||
|
@@ -39,6 +44,12 @@ bootstrap-storage-service: | |
--password="test" \ | ||
--email="[email protected]" \ | ||
--api-key="test" | ||
docker-compose exec --user root archivematica-storage-service \ | ||
git clone https://github.com/artefactual/archivematica-sampledata.git \ | ||
/home/archivematica/archivematica-sampledata | ||
docker-compose exec --user root archivematica-storage-service \ | ||
chown -R archivematica:archivematica \ | ||
/home/archivematica/archivematica-sampledata | ||
|
||
bootstrap-dashboard-db: | ||
docker-compose exec mysql mysql -hlocalhost -uroot -p12345 -e "\ | ||
|
@@ -85,6 +96,33 @@ restart-am-services: | |
docker-compose restart archivematica-dashboard | ||
docker-compose restart archivematica-storage-service | ||
|
||
at-up: | ||
docker-compose -f docker-compose.yml -f docker-compose.acceptance-tests.yml up -d | ||
|
||
at-check: at-up | ||
docker-compose -f docker-compose.yml -f docker-compose.acceptance-tests.yml run --rm --no-deps archivematica-acceptance-tests simplehubtest | ||
|
||
at-run: at-up | ||
docker-compose -f docker-compose.yml -f docker-compose.acceptance-tests.yml run --rm --no-deps archivematica-acceptance-tests all | ||
|
||
at-run-firefox: at-up | ||
docker-compose -f docker-compose.yml -f docker-compose.acceptance-tests.yml run --rm --no-deps archivematica-acceptance-tests firefox | ||
|
||
at-run-chrome: at-up | ||
docker-compose -f docker-compose.yml -f docker-compose.acceptance-tests.yml run --rm --no-deps archivematica-acceptance-tests chrome | ||
|
||
at-restarted: | ||
docker-compose -f docker-compose.yml -f docker-compose.acceptance-tests.yml up -d --force-recreate --no-deps selenium-hub selenium-firefox selenium-chrome archivematica-acceptance-tests | ||
|
||
at-rebuilt: | ||
docker-compose -f docker-compose.yml -f docker-compose.acceptance-tests.yml up -d --build --force-recreate --no-deps selenium-hub selenium-firefox selenium-chrome archivematica-acceptance-tests | ||
|
||
at-logs: | ||
docker-compose -f docker-compose.yml -f docker-compose.acceptance-tests.yml logs -f selenium-hub selenium-firefox selenium-chrome archivematica-acceptance-tests | ||
|
||
at-stop: | ||
docker-compose -f docker-compose.yml -f docker-compose.acceptance-tests.yml stop selenium-hub selenium-firefox selenium-chrome archivematica-acceptance-tests | ||
|
||
db: | ||
mysql -h127.0.0.1 --port=62001 -uroot -p12345 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
version: "2" | ||
|
||
# Based on "Getting Started with Docker Compose" (https://goo.gl/pBpyyY) | ||
# More notes here: https://goo.gl/yDLK7f (incl. debugging instructions). | ||
|
||
services: | ||
|
||
selenium-hub: | ||
image: "selenium/hub:3.6.0" | ||
expose: | ||
- "4444" | ||
ports: | ||
- "62100:4444" | ||
environment: | ||
GRID_BROWSER_TIMEOUT: "10" | ||
GRID_DEBUG: "false" | ||
|
||
selenium-firefox: | ||
image: "selenium/node-firefox:3.6.0" | ||
links: | ||
- "selenium-hub" | ||
- "nginx" | ||
environment: | ||
FIREFOX_VERSION: "55.0.3" | ||
GECKODRIVER_VERSION: "0.18.0" | ||
HUB_PORT_4444_TCP_ADDR: "selenium-hub" | ||
HUB_PORT_4444_TCP_PORT: "4444" | ||
|
||
selenium-chrome: | ||
image: "selenium/node-chrome:3.6.0" | ||
links: | ||
- "selenium-hub" | ||
- "nginx" | ||
volumes: | ||
# Mitigates the Chromium issue described at https://goo.gl/fBzwcm | ||
- /dev/shm:/dev/shm | ||
shm_size: 2g # TODO: Do I need this? | ||
privileged: true # TODO: Do I need this? | ||
environment: | ||
CHROME_VERSION: "google-chrome-stable" | ||
CHROME_DRIVER_VERSION: "latest" | ||
HUB_PORT_4444_TCP_ADDR: "selenium-hub" | ||
HUB_PORT_4444_TCP_PORT: "4444" | ||
|
||
archivematica-acceptance-tests: | ||
build: | ||
context: "../src/archivematica-acceptance-tests" | ||
dockerfile: "Dockerfile" | ||
links: | ||
- "selenium-hub:hub" | ||
volumes: | ||
- "../src/archivematica-acceptance-tests:/home/archivematica/acceptance-tests:rw" | ||
environment: | ||
HUB_ADDRESS: "http://hub:4444/wd/hub" |
Submodule archivematica-acceptance-tests
updated
9 files
+46 −0 | Dockerfile | |
+38 −78 | archivematicaselenium.py | |
+65 −0 | entrypoint.sh | |
+3 −6 | features/core/uuids-for-directories.feature | |
+0 −3 | features/environment.py | |
+12 −65 | features/steps/steps.py | |
+1 −1 | requirements.txt | |
+35 −0 | simplehubtest.py | |
+0 −16 | utils.py |