question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Containerize Dogehouse

See original GitHub issue

About the Problem

Installing dependencies for the backend (Elxir API / Voice/WSS server) and frontend (React webapp / Puppeteer shenanigans AKA UI Tests and Lighthouse checks) is a mess and may cause dependency hell if left unmanged, and running them one-by-one can be also an distater.

Solution and To-Dos

  • Make an docker-compose.yml file in the root directory that includes each subdirectiry’s Dockerfiles required for running the instance + database backend.
  • Create an Dockerfile on each folder in the Dogehouse monorepo.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
ianjakucommented, Feb 13, 2021

@Salman2301

@ianjaku If i remove it, it throws the error Cause the Dockerfile in kousa set the env as a production and we can create a new docker file for developement to avoid it may be?

Ah ye my bad, the Dockerfile is building a release so it will always run the releases.exs file.

The underlying issue is that you can’t use the current Dockerfile in dev (even when removing ENV MIX_ENV=prod) because the settings in releases.exs will overlap with the settings in dev.exs.

Creating a separate Dockerfile that doesn’t build a release and instead just calls mix run would be a decent temporary solution for now I think.

2reactions
ianjakucommented, Feb 13, 2021

Could be interesting to also add add adminer to the docker-compose file, It’s extremely light weight and can be useful for testing.

Would be:

  adminer:
    image: adminer
    restart: "no"
    ports:
      - 5051:8080
    depends_on:
      - database

Data for postgres is located at /var/lib/postgresql/data so to add a volume we would need to add:

# In the database section
volumes:
  - dbdata:/var/lib/postgresql/data
      
# At the bottom of the file
volumes:
  dbdata:
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Create an Epic Dog House With a Shipping Container
Are you looking for a new do-it-yourself project that will benefit you and your furry friend? Building your dog a house can be...
Read more >
dogehouse 0.1.0 vulnerabilities | Snyk - Snyk Vulnerability Database
Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities (in both your packages & their dependencies) and provides ...
Read more >
39 Days Later the New Design is "Done" - Morioh
I've been working on a redesign for DogeHouse and its finally live. https://dogehouse.tv/ · https://github.com/benawad/dogehouse. #developer ...
Read more >
DogeHouse - DogeHouse Docs
Structure ; ​shawarma​. Voice Server ; ​dinner​. Puppeteer shenanigans ; ​baklava​. Electron Wrapper ; ​pilaf​. React Native App ; ​feta​. Shared utils web/app....
Read more >
How to package an Electron app as snap from an monorepo
... https://github.com/benawad/dogehouse/tree/new-design/baklava)? ... that lets you start a container with Docker's --privileged flag.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found