Forem Creators and Builders 🌱

Discussion on: Podman: Difficulty installing Forem on Ubuntu 18.04 TLS

 
jdoss profile image
Joe Doss • Edited

~No it's in a branch off the main repo. You need to check it out first and test it out.~

Strike this. It was merged and I missed it. It should work. I tested it on my end with Podman before pushing it up.

Thread Thread
 
jdoss profile image
Joe Doss • Edited

This error

Error: identifier is not a container: error preparing container for next step: error creating build container: error creating container: error creating read-write layer with ID "ea41b3fecfebbf4001c2273fe73d831cff068055c5f6886e45d752e23ad41c5f": no space left on device
Enter fullscreen mode Exit fullscreen mode

This might be due to disk space issues on your computer? Try nuking the podman volumes:

podman volume list

podman volume prume

Thread Thread
 
avalerionv profile image
Dawood Khan Masood • Edited

What is the minimum requirement for disk space? I had allocated 30 GB of space for this.

I was able to install Forem by manually installing everything but I had few problems such as:

  1. Moving from development environment to production. Since this is literally my first time working with Ruby on Rails.

  2. Changing port from 3000 to 80. I figured Procfile.dev was responsible for server port but I had issue with permission:

Errno::EACCES in at_exit
Permission denied - bind(2) for "0.0.0.0" port 80
Enter fullscreen mode Exit fullscreen mode

So a quick workaround was to port forward from 80 to 3000 but I don't think this is the correct way.

Is there any documentation or guide which could help me with these issues? I think if someone was able to provide a guide on how to fully install Forem from basic configurations to making it production-ready, that would be great!

Thread Thread
 
jdoss profile image
Joe Doss

I allocate 50GB in my test environments which should be fine. If you are running Forem as a non root user (which is recommended) you will want to do this:

sudo sh -c "echo 0 > /proc/sys/net/ipv4/ip_unprivileged_port_start"

which will let a non root user bind to lower ports like port 80.

Thread Thread
 
avalerionv profile image
Dawood Khan Masood • Edited

Great, thank you! :)