dev-resources.site
for different kinds of informations.
github action services: mysql, redis and elasticsearch
Published at
9/24/2024
Categories
github
actions
ci
elasticsearch
Author
ugifractal
Author
10 person written this
ugifractal
open
A few days ago, I needed to setup github actions for running Rails tests that required MySQL, Redis, and Elasticsearch to be installed.
Here is a is a sample configuration to boot MySQL, Redis, and elasticsearch that can be accessed from 127.0.0.1
address.
services:
mysql:
image: mysql:8.0
ports:
- 3306:3306
env:
MYSQL_DATABASE: sample_database_test
MYSQL_ROOT_PASSWORD: root
options: >-
--health-cmd "mysqladmin ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis
ports:
- 6379:6379
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.13.0
ports:
- 9200:9200
options: --health-cmd="curl http://localhost:9200/_cluster/health" -e "discovery.type=single-node" -e "xpack.security.enabled=false"
actions Article's
30 articles in total
How to upload Markdown files to Dev.to from GitHub
read article
How to Configure GitHub Actions CI for Python Using Poetry on Multiple Versions
read article
Proposal: Standard Communication API Channels for AI Agents (AI Generated)
read article
Understanding GitHub Actions Working Directory
read article
Automating Mastodon Posts with GitHub Actions
read article
Getting Started with GitHub Actions: A Beginner's Guide to Automation
read article
Configure GitHub for Dev.to Publishing
read article
Getting Started with GitHub Actions: A Beginner's Guide to Automation
read article
Configure GitHub for Dev.to Publishing
read article
github action services: mysql, redis and elasticsearch
currently reading
Future-Proofing Your Auth0 Integration: Moving from Rules and Hooks to Actions
read article
6 GitHub Actions Every DevOps Team Needs
read article
GitHub Workflow and Automation: Streamlining Project Management 🚀
read article
Server actions in Next.js
read article
Actions - React 19
read article
NextJs Server Actions: Why and How
read article
The truth about Mindset and how it can influence your actions positively
read article
Optimizing Parallel Jobs in a Github Workflow
read article
How to set preconfigured actions in the CloudBees platform
read article
Auto-deploy docker images to Docker Hub using GitHub actions
read article
Secure NextJS Server Actions Using Body Validation
read article
Github action to detect ip addresses
read article
Vegaration: Visualising continuous integration using Github actions and vega-lite
read article
GitHub Action for Commit Message Validation
read article
Query GitHub Repo Topics Using GraphQL
read article
Setup a Dynamic GitHub User Profile README
read article
How to publish React App (CRA) on Github Pages using Github Actions with Turborepo
read article
Guide: Automate the deployment of a virtual machine on AWS using Terraform and Github Actions
read article
Netlify Nextjs Deployment — Page Not Found Issue Solution
read article
Github Actions
read article
Featured ones: