Skip to content

Comments

Add Docker for easier setup of Que development environment#324

Merged
ZimbiX merged 11 commits intomasterfrom
add-docker
Feb 20, 2022
Merged

Add Docker for easier setup of Que development environment#324
ZimbiX merged 11 commits intomasterfrom
add-docker

Conversation

@ZimbiX
Copy link
Member

@ZimbiX ZimbiX commented Dec 23, 2021

Providing a Docker Compose service for running PostgreSQL, with a script for running the tests, makes it a lot easier to get started for developing Que. You no longer need to have installed & started PostgreSQL, set DATABASE_URL appropriately, or created a database for Que. Different versions of PostgreSQL can also be tested easily, by setting POSTGRES_VERSION - e.g. auto/test-postgres-14.

This setup follows GreenSync conventions, although auto/test is not used on GitHub Actions.

I've used the latest Ruby Docker image for Ruby 2.7. We can update this to Ruby 3 in #319.

@ZimbiX ZimbiX requested a review from smontanari December 23, 2021 10:22
@ZimbiX ZimbiX mentioned this pull request Dec 23, 2021
17 tasks
ZimbiX and others added 6 commits February 19, 2022 16:45
Providing a Docker Compose service for running PostgreSQL, with a script for running the tests, makes it a lot easier to get started for developing Que. You no longer need to have installed & started PostgreSQL, set `DATABASE_URL` appropriately, or created a database for Que. Different versions of PostgreSQL can also be tested easily, by setting `POSTGRES_VERSION` - e.g. `auto/test-postgres-14`.

This setup follows GreenSync conventions, although `auto/test` is not used on GitHub Actions.

I've used the latest Ruby Docker image for Ruby 2.7. We can update this to Ruby 3 in #319.
Docker Compose is now included in Docker as a subcommand; so `docker compose` is already available once Docker is installed, whereas using `docker-compose` requires the separate installation of the `docker-compose` package, which is now just a wrapper program.
Using just Docker Compose keeps the documentation simpler, and it's included with Docker now
@ZimbiX ZimbiX merged commit 99a8542 into master Feb 20, 2022
@ZimbiX ZimbiX deleted the add-docker branch February 20, 2022 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants