diff --git a/.github/actions/e2e-prepare-containers/action.yml b/.github/actions/e2e-prepare-containers/action.yml index 97234ab5adc4965584243222b2a461a6ec5a0ed5..d00f29e227d5aca57f1e201a42280b9d42331d06 100644 --- a/.github/actions/e2e-prepare-containers/action.yml +++ b/.github/actions/e2e-prepare-containers/action.yml @@ -40,16 +40,19 @@ runs: - name: Start Containers run: | + Y='\033[33m' + G='\033[1;32m' + if ${{ inputs.maildev }}; then - echo "Starting maildev container..." && + echo -e "${Y}Starting maildev container..." && docker run -d -p 1080:1080 -p 1025:1025 maildev/maildev:2.0.5 && while ! nc -z localhost 1080; do sleep 1; done && while ! nc -z localhost 1025; do sleep 1; done && - echo "Maildev is up and running!" + echo -e "${G}Maildev is up and running!" fi if ${{ inputs.openldap }}; then - echo "Starting openldap container..." && + echo -e "${Y}Starting openldap container..." && docker run -d -p 389:389 \ --env LDAP_ADMIN_PASSWORD=adminpass \ --env LDAP_USERS=user01@example.org,user02@example.org \ @@ -58,27 +61,27 @@ runs: --env LDAP_PORT_NUMBER=389 \ bitnami/openldap:2.6.4 && while ! nc -z localhost 389; do sleep 1; done && - echo "Openldap is up and running!" + echo -e "${G}Openldap is up and running!" fi if ${{ inputs.postgres }}; then - echo "Starting postgres container..." && + echo -e "${Y}Starting postgres container..." && docker run -d -p 5404:5432 metabase/qa-databases:postgres-sample-12 && while ! nc -z localhost 5404; do sleep 1; done && - echo "Postgres is up and running!" + echo -e "${G}Postgres is up and running!" fi if ${{ inputs.mysql }}; then - echo "Starting mysql container..." && + echo -e "${Y}Starting mysql container..." && docker run -d -p 3304:3306 metabase/qa-databases:mysql-sample-8 && while ! nc -z localhost 3304; do sleep 1; done && - echo "MySQL is up and running!" + echo -e "${G}MySQL is up and running!" fi if ${{ inputs.mongo }}; then - echo "Starting mongo container..." && + echo -e "${Y}Starting mongo container..." && docker run -d -p 27004:27017 metabase/qa-databases:mongo-sample-4.4 && while ! nc -z localhost 27004; do sleep 1; done && - echo "Mongo is up and running!" + echo -e "${G}Mongo is up and running!" fi shell: bash