All Questions
Tagged with ruby-on-rails-7 docker
14
questions
0
votes
0
answers
25
views
localhost:3000 not working when I start a docker container for my Rails project
I was following a tutorial on how to Dockerize a brand new Rails 7 app. I made the Docker container 'distant-mirror' Setting up the Docker container took about two hours, but now I entered in my ...
0
votes
0
answers
51
views
Debugging tailwindcss:watch in Procfile.dev in Docker
I am trying to build a development compose.yaml to mimic what I hope to be my production deployment. Currently it looks like the following using bin/dev.
services:
web:
build:
context: ./
...
-1
votes
1
answer
75
views
Rspec on Docker with database_cleaner causes remote URL error: RemoteDatabaseUrl
I'm working in Docker, trying to run bundle exec rspec ./spec/services/something/something_spec.rb and I am getting this error
DatabaseCleaner::Safeguard::Error::RemoteDatabaseUrl:
ENV['DATABASE_URL'] ...
0
votes
0
answers
81
views
rails paths are broken in docker container
I have a rails project which on rails s loads and runs fine. but when I containerize the application, required modules in lib folder are not loaded and could be not found in the docker file structure. ...
0
votes
1
answer
212
views
NPM error when building a Ruby on Rails 7.1.0.beta1 Dockerfile
I'm using Ruby on Rails 7.1.0.beta1 to develop a very simple web app to deploy to fly.io. Rails 7.1 automatically creates a Dockerfile. But when I try "docker build -t demo ." I keep getting ...
0
votes
1
answer
194
views
CSS Bundling for rails not watching on M1 mac when using Colima
Problem
Cssbundling-rails only compiles within a Docker container on Apple M1 macbook at start up of container. Making subsequent changes to the specified watched scss file are not triggering ...
1
vote
2
answers
1k
views
`fly deploy` fails to deploy Rails 7 app with "Missing encryption key to decrypt file with." when rails master key is present on Fly.io
I'm trying to evaluate Fly.io and deploy an existing Rails 7 app. Following their guide for existing rails apps, fly launch works fine, however fly deploy fails on the assets:precompile step.
Console ...
0
votes
1
answer
378
views
RAILS/DOCKER - Schema keeps reappearing after deleting the migration
my issue appears to pertain to mainly docker.
I got frustrated with a table that I had so I deleted it plus all associated migrations from my rails migrations.
I did make a zip file of repository ...
1
vote
3
answers
3k
views
How I can create database with rails? Problem
first of all I'm using windows 11 with WSL2 ubuntu 20.04.
I'm build an image with docker where are install ruby and postgresql.
docker-compose.yml
version: '3.9'
services:
db:
image: 'postgres:...
1
vote
0
answers
470
views
Rails 7 Development on Docker
I'm trying to get a rails 7 app going with bootstrap. At the end of the dockerfile if I change
CMD ["bin/rails", "s", "-b", "0.0.0.0"]
to
CMD ["./bin/...
1
vote
2
answers
4k
views
Docker: TCP/IP connections on port 5342? connect to server: Connection refused Is the server running on host
I am using rails 3.0.0 with rails 7.
My dockerfile is as:
FROM ruby:3.0.0-alpine
RUN apk add --update --virtual \
runtime-deps \
postgresql-client\
build-base \
libxml2-dev \
...
0
votes
1
answer
359
views
rails7 app is not accessible from browser on local machine when running in container locally
I have rails7 app running in container fine. but I cant access it from 'outside' seems like docker/colima is not forwarding port, but other apps (sinatra) on the same settings works fine.
docker run -...
0
votes
1
answer
465
views
My destenation folder is empty when running yarn build:css inside docker image
Here is my Dockerfile
# syntax=docker/dockerfile:1
FROM ruby:3.0.3
RUN apt-get update -qq && apt-get install -y nodejs npm yarn postgresql-client
RUN curl --compressed -o- -L https://yarnpkg....
1
vote
0
answers
107
views
Webpacker::Manifest::MissingEntryError on a rails 7.0 docker application
I have the rails 7.0 application dockernized, here is my dockerfile
# syntax=docker/dockerfile:1
FROM ruby:3.0
RUN apt-get update -qq && apt-get install -y nodejs yarn postgresql-client
RUN ...