Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerized development setup #464

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

palkan
Copy link

@palkan palkan commented Oct 8, 2022

Based on https://evilmartians.com/chronicles/ruby-on-whales-docker-for-ruby-rails-development

image

Notes

  • Added hivemind to the image to manage frontend processes from a single container. Running multiple containers (which is The Docker Way) doesn't make a lot of sense for building assets

TODO

Future ideas

  • Consider adding hybrid support is some sense (Ruby/Node locally, databases in Docker; Node locally, Ruby and databases in Docker)
  • Consider extracting RuboCop/Standard into it's own gemfile (see the post)

@jagthedrummer
Copy link
Contributor

@andrewculver, what are your thoughts on this? Do we want to take on maintenance of a Docker config for BT?

@Natblow
Copy link
Contributor

Natblow commented Jan 26, 2024

I had to add these installations on the Dockerfile to make it all work :

# Install libglib-2.0.so.0
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
    --mount=type=cache,target=/var/lib/apt,sharing=locked \
    --mount=type=tmpfs,target=/var/log \
    apt-get install -yq --no-install-recommends \
      libglib2.0-0

# Install vips.so.42
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
    --mount=type=cache,target=/var/lib/apt,sharing=locked \
    --mount=type=tmpfs,target=/var/log \
    apt-get install -yq --no-install-recommends \
      libvips42

# Install redis-cli
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
    --mount=type=cache,target=/var/lib/apt,sharing=locked \
    --mount=type=tmpfs,target=/var/log \
    apt-get install -yq --no-install-recommends \
      redis-tools


<<<<<<< HEAD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's merge garbage left

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.

None yet

4 participants