Skip to content

Commit

Permalink
Github workflow with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
blacksmith-welder committed Aug 29, 2024
1 parent 8e8effb commit aad5d02
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/cucumber-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ jobs:
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Run tests
run: bundle exec cucumber HEADLESS=true
- name: Set up Docker
run: |
docker compose -f docker-compose.yml up
53 changes: 53 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
version: "3"
services:
app:
image: archivesspace/archivesspace:latest
container_name: archivesspace
restart: on-failure
ports:
- "8080:8080"
- "8081:8081"
- "8082:8082"
- "8089:8089"
- "8090:8090"
depends_on:
- db
- solr
environment:
APPCONFIG_DB_URL: "jdbc:mysql://db:3306/archivesspace?useUnicode=true&characterEncoding=UTF-8&user=as&password=as123&useSSL=false&allowPublicKeyRetrieval=true"
APPCONFIG_FRONTEND_PROXY_URL: "http://localhost:8080"
APPCONFIG_PUBLIC_PROXY_URL: "http://localhost:8081"
APPCONFIG_SOLR_URL: "http://solr:8983/solr/archivesspace"
ASPACE_DB_MIGRATE: true
ASPACE_JAVA_XMX: "-Xmx2048m"
JAVA_OPTS: "-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xss1024k -Djavax.accessibility.assistive_technologies=''"
DB_ADDR: db
DB_NAME: archivesspace
DB_USER: as
DB_PASS: as123
SOLR_URL: http://solr:8983/solr/archivesspace
volumes:
- ./aspace/plugins:/archivesspace/plugins
- ./aspace/config:/archivesspace/config
db:
image: mysql:8
cap_add:
- SYS_NICE
container_name: mysql
command: --character-set-server=utf8 --collation-server=utf8_unicode_ci --innodb_buffer_pool_size=1G --innodb_buffer_pool_instances=2 --log_bin_trust_function_creators=1
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "123456"
MYSQL_DATABASE: archivesspace
MYSQL_USER: as
MYSQL_PASSWORD: as123
volumes:
- ./sql:/docker-entrypoint-initdb.d
solr:
image: archivesspace/solr:latest
command: solr-create -p 8983 -c archivesspace -d archivesspace
environment:
SOLR_JAVA_MEM: "-Xms2g -Xmx2g"
ports:
- "8983:8983"

0 comments on commit aad5d02

Please sign in to comment.