All Projects → ryanwi → rails7-on-docker

ryanwi / rails7-on-docker

Licence: other
Working Rails 7 demo application without JavaScript bundling, running in Docker. No node.js or webpack.

Programming Languages

ruby
36898 projects - #4 most used programming language
HTML
75241 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language
Dockerfile
14818 projects
shell
77523 projects
Procfile
174 projects

Projects that are alternatives of or similar to rails7-on-docker

gitrivy
GitHub Issue + Trivy Action
Stars: ✭ 46 (-58.56%)
Mutual labels:  github-actions
gh fsync
🔄 GitHub action to sync files across repos in GitHub
Stars: ✭ 17 (-84.68%)
Mutual labels:  github-actions
awscredswrap
awscredswrap uses temporary credentials for the specified iam role to set a shell environment variable or execute a command.
Stars: ✭ 15 (-86.49%)
Mutual labels:  github-actions
translation-action
GitHub action that translates any text to any language supported by chosen provider.
Stars: ✭ 25 (-77.48%)
Mutual labels:  github-actions
vidyabhandary
Self updating profile readme for github
Stars: ✭ 36 (-67.57%)
Mutual labels:  github-actions
nextjs-github-pages
🚀 Deploy a Next.js app to Github Pages via Github Actions.
Stars: ✭ 89 (-19.82%)
Mutual labels:  github-actions
100 Days Of Go
100 days of Go learning
Stars: ✭ 24 (-78.38%)
Mutual labels:  github-actions
creatly-backend
🚀 Creatly backend app
Stars: ✭ 71 (-36.04%)
Mutual labels:  github-actions
rspec-github
Formatter for RSpec to show errors in GitHub action annotations
Stars: ✭ 33 (-70.27%)
Mutual labels:  github-actions
pin-github-action
Pin your GitHub actions to a specific hash
Stars: ✭ 38 (-65.77%)
Mutual labels:  github-actions
action-ansible-playbook
⚙️ A GitHub Action for running Ansible playbooks
Stars: ✭ 133 (+19.82%)
Mutual labels:  github-actions
django-github-digitalocean
Continuously Deploying Django to DigitalOcean with Docker and GitHub Actions
Stars: ✭ 45 (-59.46%)
Mutual labels:  github-actions
blackcater
Using Node.js to generate my Github profile readme automatically.
Stars: ✭ 84 (-24.32%)
Mutual labels:  github-actions
actions
🧰 Collection of github actions for automation
Stars: ✭ 28 (-74.77%)
Mutual labels:  github-actions
webring
“วงแหวนเว็บ” แห่งนี้สร้างขึ้นเพื่อส่งเสริมให้ศิลปิน นักออกแบบ และนักพัฒนาชาวไทย สร้างเว็บไซต์ของตัวเองและแบ่งปันการเข้าชมซึ่งกันและกัน
Stars: ✭ 125 (+12.61%)
Mutual labels:  github-actions
deploy-firebase
A GitHub Action to deploy to Firebase Hosting
Stars: ✭ 63 (-43.24%)
Mutual labels:  github-actions
github-deploy-actions
This action will auto deploy to target branch when it get triggered
Stars: ✭ 24 (-78.38%)
Mutual labels:  github-actions
generate-og-image
Generate open graph images with Github Action from Markdown files
Stars: ✭ 32 (-71.17%)
Mutual labels:  github-actions
upload-rust-binary-action
GitHub Action for building and uploading Rust binary to GitHub Releases.
Stars: ✭ 47 (-57.66%)
Mutual labels:  github-actions
setup-arduino-cli
GitHub Action to setup Arduino CLI
Stars: ✭ 59 (-46.85%)
Mutual labels:  github-actions

Ruby

Rails 7 on Docker demo application

This app demonstrates Rails 7 with PostgreSQL, import maps, turbo, stimulus and hotwire, all running in Docker.

NOTE: There is also an example Rails 6 application working in Docker with Webpacker

Features

  • Rails 7
  • Ruby 3
  • Dockerfile and Docker Compose configuration
  • PostgreSQL database
  • Redis
  • GitHub Actions for
  • Dependabot for automated updates

Initial setup

cp .env.example .env
docker compose build
docker compose run --rm web bin/rails db:setup

Running the Rails app

docker compose up

Running the Rails console

When the app is already running with docker-compose up, attach to the container:

docker compose exec web bin/rails c

When no container running yet, start up a new one:

docker compose run --rm web bin/rails c

Running tests

docker compose run --rm web bin/rspec

Updating gems

docker compose run --rm web bundle update
docker compose up --build

Production build

docker build -f production.Dockerfile .

Credits/References

Rails with Docker

Rails 7 with importmaps

Rails 7 with hotwire

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].