Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
30caaa24
Unverified
Commit
30caaa24
authored
1 year ago
by
Nemanja Glumac
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Colorize E2E Docker container logs (#34793)
parent
23b40993
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/actions/e2e-prepare-containers/action.yml
+13
-10
13 additions, 10 deletions
.github/actions/e2e-prepare-containers/action.yml
with
13 additions
and
10 deletions
.github/actions/e2e-prepare-containers/action.yml
+
13
−
10
View file @
30caaa24
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment