Skip to content

Commit

Permalink
Merge pull request #329 from uselagoon/dasrecht-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood authored Nov 11, 2021
2 parents 06f019b + 141f8b7 commit f8a19f8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 39 deletions.
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ unversioned-images := commons \
nginx \
nginx-drupal \
mongo \
toolbox \
rabbitmq \
rabbitmq-cluster

Expand Down Expand Up @@ -180,7 +179,6 @@ build/commons: images/commons/Dockerfile
build/mongo: build/commons images/mongo/Dockerfile
build/nginx: build/commons images/nginx/Dockerfile
build/nginx-drupal: build/nginx images/nginx-drupal/Dockerfile
build/toolbox: build/commons build/mariadb-10.5 images/toolbox/Dockerfile
build/rabbitmq: build/commons images/rabbitmq/Dockerfile
build/rabbitmq-cluster: build/rabbitmq images/rabbitmq-cluster/Dockerfile

Expand Down
15 changes: 7 additions & 8 deletions helpers/TESTING_dockercompose.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ docker ps --filter label=com.docker.compose.project=all-images | grep Up | grep
docker ps --filter label=com.docker.compose.project=all-images | grep Up | grep all-images_redis-5_1
docker ps --filter label=com.docker.compose.project=all-images | grep Up | grep all-images_redis-6_1
docker ps --filter label=com.docker.compose.project=all-images | grep Up | grep all-images_solr-7_1
docker ps --filter label=com.docker.compose.project=all-images | grep Up | grep all-images_toolbox_1

# toolbox Should be running Alpine Linux
docker-compose exec -T toolbox sh -c "cat /etc/os-release" | grep "Alpine Linux"
# commons Should be running Alpine Linux
docker-compose exec -T commons sh -c "cat /etc/os-release" | grep "Alpine Linux"

# rabbitmq Should have RabbitMQ running 3.8
docker-compose exec -T rabbitmq sh -c "rabbitmqctl version" | grep 3.8
Expand All @@ -59,7 +58,7 @@ docker-compose exec -T rabbitmq sh -c "rabbitmqctl version" | grep 3.8
docker-compose exec -T rabbitmq sh -c "rabbitmq-plugins list" | grep "E" | grep "delayed_message_exchange"

# rabbitmq Should have a running RabbitMQ management page running on 15672
docker-compose exec -T toolbox sh -c "curl -kL http://rabbitmq:15672" | grep "RabbitMQ Management"
docker-compose exec -T commons sh -c "curl -kL http://rabbitmq:15672" | grep "RabbitMQ Management"

# redis-5 Should be running Redis v5.0
docker-compose exec -T redis-5 sh -c "redis-server --version" | grep v=5.
Expand All @@ -80,19 +79,19 @@ docker-compose exec -T redis-6 sh -c "redis-cli CONFIG GET databases"
docker-compose exec -T redis-6 sh -c "redis-cli dbsize"

# solr-7 Should have a "mycore" Solr core
docker-compose exec -T toolbox sh -c "curl solr-7:8983/solr/admin/cores?action=STATUS\&core=mycore"
docker-compose exec -T commons sh -c "curl solr-7:8983/solr/admin/cores?action=STATUS\&core=mycore"

# solr-7 Should be able to reload "mycore" Solr core
docker-compose exec -T toolbox sh -c "curl solr-7:8983/solr/admin/cores?action=RELOAD\&core=mycore"
docker-compose exec -T commons sh -c "curl solr-7:8983/solr/admin/cores?action=RELOAD\&core=mycore"

# solr-7 Check Solr has 7.7 solrconfig in "mycore" core
docker-compose exec -T solr-7 sh -c "cat /opt/solr/server/solr/mycores/mycore/conf/solrconfig.xml" | grep 7.7

# solr-7.7 Should have a "mycore" Solr core
docker-compose exec -T toolbox sh -c "curl solr-7.7:8983/solr/admin/cores?action=STATUS\&core=mycore"
docker-compose exec -T commons sh -c "curl solr-7.7:8983/solr/admin/cores?action=STATUS\&core=mycore"

# solr-7.7 Should be able to reload "mycore" Solr core
docker-compose exec -T toolbox sh -c "curl solr-7.7:8983/solr/admin/cores?action=RELOAD\&core=mycore"
docker-compose exec -T commons sh -c "curl solr-7.7:8983/solr/admin/cores?action=RELOAD\&core=mycore"

# solr-7.7 Check Solr has 7.7 solrconfig in "mycore" core
docker-compose exec -T solr-7.7 sh -c "cat /opt/solr/server/solr/mycores/mycore/conf/solrconfig.xml" | grep 7.7
Expand Down
4 changes: 2 additions & 2 deletions helpers/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ x-user:
user: '1000'

services:
toolbox:
image: uselagoon/toolbox:latest
commons:
image: uselagoon/commons:latest
<< : *default-user # uses the defined user from top

mariadb-10.4:
Expand Down
18 changes: 0 additions & 18 deletions images/toolbox/Dockerfile

This file was deleted.

9 changes: 0 additions & 9 deletions images/toolbox/README.md

This file was deleted.

0 comments on commit f8a19f8

Please sign in to comment.