helpyio / helpy

Helpy is a modern, open source helpdesk customer support application. Features include knowledgebase, community discussions and support tickets integrated with email.
http://helpy.io/?source=ghh
MIT License
2.38k stars 498 forks source link

Add devcontainer #2084

Open rip747 opened 1 week ago

rip747 commented 1 week ago

Create a devcontainer to make development and contribution easier.

The devcontainer is based on the Docker production image with the exception that it uses puma as instead of nginx.

I needed to pin some of the gems that were being used in development as they were causing issues. Those gems were

byebug pry-byebug rubocop

rip747 commented 1 week ago

FYI... I'm going to be working on trying to get the system test passing and then I'll rebase for a final. I just keep getting road blocked by:

Error: BrowsingUserTicketFlowsTest#test_a_browsing_user_should_be_able_to_create_a_private_ticket_via_widget: Webdrivers::NetworkError: Net::HTTPServerException: 404 "Not Found" with https://chromedriver.storage.googleapis.com/131.0.6778.69/chromedriver_linux64.zip test/integration/browsing_user_ticket_flows_test.rb:138:in `block in '

Seems that the latest chrome isn't working. I installed it using the following in the Dockerfile:

RUN apt-get install -y wget RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ && echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list RUN apt-get update && apt-get -y install google-chrome-stable

I will try to see if I can install an earlier version and maybe that will work. If anyone reads this and knows how to do that, please reply. I just getting started with Docker and getting back into rails so I'm very rusty at this point :)