inoda / ontrack

:money_with_wings: A simple self-hosted budgeting app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dockerfile

Wingysam opened this issue · comments

commented

Is there a dockerfile? If not, would you accept a PR?

@Wingysam There is not, and yes I would!

A dockerfile would be great. I have no experience with Ruby but I started working on a Dockerfile myself for this project to see if I could make it work. But as I dont know much about Ruby it was a bit harder than I thought it would be 😄

@Wingysam Are you planning on adding a Dockerfie? If not, I can take a stab at it although I've never used Docker. Maybe @tommyriska and I can pair on it :)

commented

The issue I have right now is that it's trying to import tzinfo-data but that doesn't install because it's linux.

@Wingysam what's the error message you're seeing?

commented

I got past tzinfo not working by switching from alpine to debian. Now I'm trying to get postgres working on debian.

commented

I can't seem to get it working correctly, can you give it an attempt? Thanks!

@Wingysam @tommyriska I can take a stab at a Dockerfile, will keep this thread updated!

@Wingysam @tommyriska I can take a stab at a Dockerfile, will keep this thread updated!

Nice, thanks! Feel free to ask any Docker related questions, I'd be more helpful with that than the Ruby part :P

@Wingysam @tommyriska Can you take a look at my draft PR? I think it's close but I'm having trouble getting the app to connect to the DB: https://github.com/inoda/ontrack/pull/6/files.

commented

@Wingysam @tommyriska I pushed some more updates to that PR. I'm past the DB issue and think it's pretty close. Now I'm running into an issue where Docker tells me a server is already running and exits. If one of you can take the PR to completion that'd be great! I won't have time to work on it more for a while.

I've also added a Heroku Deploy button which makes it super simple to spin up an instance if you just wanted to get your own instance running.

Sorry, have not had time to look at it yet. I'll try to find some time for it after work hours tonight!

I dont experience the problem that a server is already running. I am running into a webpack issue, something that I wouldn't be able to help much with. Maybe @Wingysam has some experience here?

https://imgur.com/a/GJqE2Sd

From a quick Google search:

reactjs/react-rails#997
https://stackoverflow.com/questions/51179635/webpacker-cant-find-application-js-in-manifest-json-heroku-production

There might be some stuff in my PR that isn't right. This is a standard Rails 6 app so I imagine there must be some tutorials to follow for a Dockerfile given the popularity of the framework!

commented

The stackoverflow question to me looks like older versions before webpacker 3.5 don't work in some cases, but it has been fixed with webpacker 3.5?

Is there an update to the situation? Your app looks REALLY nice, but I would greatly benefit from a docker installation.

@juliangaal There is not an update - currently no Dockerfile. Would accept a PR though!

+1 for this. I am currently running a home server hosted on unRAID OS and a Docker file would be so amazing. This looks like such a great application, and an easy installation through Docker would be a game-changer for me. :)

I'd love a dockerfile too - but unfortunately quite bad with Docker, however I am part of a community that is based around self hosting on Discord - I'll drop a message in there and see if anyone is interested in helping us out. They also maintain their own set of Portainer templates, so could be added to that and might get some new eyes on this project from that community 👍

There is a wip PR going on here: #20

I don't have experience setting up/running docker but someone already took a stab at it. Looks like there's some final kinks to work out.