Skip to content
Snippets Groups Projects
Unverified Commit 30caaa24 authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

Colorize E2E Docker container logs (#34793)

parent 23b40993
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment