Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add libpq deps to Dockerfile #34

Open
wants to merge 1 commit into
base: hacienda-prototype
Choose a base branch
from

Conversation

grdryn
Copy link
Member

@grdryn grdryn commented Sep 24, 2024

Before these changes:

  • the container image build fails because it's missing libpq-dev to
    compile against
  • the container fails to start because it can't open libpq.so.5

After these changes:

  • I think I'm still missing some required config so it still won't
    start successfully, but...getting closer :)

Before these changes:

- the container image build fails because it's missing libpq-dev to
  compile against
- the container fails to start because it can't open libpq.so.5
@mattl
Copy link
Member

mattl commented Sep 25, 2024

This is great. I'll leave this open until you get the rest working.

@grdryn
Copy link
Member Author

grdryn commented Sep 29, 2024

@mattl the image seems to work now, if I run it with something like the following:

podman run --rm -ti -e SECRET_KEY_BASE=1 -e RAILS_ENV="development" -p 3000:3000 hacienda:latest

The -e RAILS_ENV="development" is to work around the fact that it's production by default, but there's no production database available by default. I don't know enough ruby/rails things yet, so I just changed the environment variable to progress.

In my browser at the root page, I see the default rails page. /users shows an error, seemingly because I haven't set up the database yet. Do you have any instructions for that?

@mattl
Copy link
Member

mattl commented Sep 29, 2024

None of this is terribly usable yet. But this is useful for getting it work under Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants