Re: dev environment setup

Matt Chambers

Hi Donal!

I try to run everything through docker.

We could make a docker-compose file that runs Postgres, a Cuebot, and one or two RQDs.  

Something like this (I left a lot out) at the root of the project.  With this file, you wouldn’t even need to build anything to get a simple queue running.  It would pull the latest dev images from docker-hub, or use your local images.

    image: “postgres:9.6.9”
        - “5432:5432”
        POSTGRES_PASSWORD: cuebot
        POSTGRES_USER: cuebot
        POSTGRES_DB: cuebot
        PG_DATA: /var/lib/postgresql/data/pgdata

      - “postgres”
   image: cuebot
       context: cuebot
            - OpenCue/cuebot:latest 
            - cuebot
       - 8080:8080
       - “/cuebot/target:/cuebot/lib”

       context: rqd

In this case, you would do:

docker-compose build
docker-compose up

This way if someone just want to do UI work, they can quickly spin up a cluster.


On May 29, 2019, at 6:54 PM, Brian Cipriano via Lists.Aswf.Io <> wrote:

Hi Donal,

Thanks for sharing this!

How do you set up your development environments?

My personal setup depends on what I'm working on.

I run a local Postgres instance, installed via Homebrew.

If I'm doing work on Cuebot, I've got IntelliJ set up with a Run Configuration to run CuebotApplication, with some Program arguments to point it to my local postgres instance.

If I'm working on any of the Python components, my process looks like:
- Run Cuebot either a) via IntelliJ as above or b) (more typically) via Docker
- Activate whichever virtualenv I plan to use
- Execute the Python code directly from my local checkout, using the CUEBOT_HOSTS env var to point it to my local Cuebot instance.
- I use PyCharm locally and will sometimes set up Run configurations in there to execute the module in question, which lets me use things like PyCharm's built-in debugger.

Happy to go into more detail on any of this if desired.

- brian

On Sun, May 26, 2019 at 6:46 AM Donal McMullan <donal.mcmullan@...> wrote:
I added some scripts to help myself get started with development on the repo:

Specifically I wanted some bootstraps to create a development environment for new users, and then to launch the applications directly from that environment without any intermediate step (like running installers, etc).

How do you set up your development environments?



Join to automatically receive all group messages.