From 1229e2b5804673cc7774c84639dff5f49e96586f Mon Sep 17 00:00:00 2001 From: thde Date: Thu, 17 Oct 2024 11:05:33 +0200 Subject: [PATCH] build: improve docker dev setup --- Dockerfile | 2 +- docker-compose.test.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 69d3357..8de15e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ RUN mkdir /app WORKDIR /app COPY Gemfile Gemfile.lock netbox-client-ruby.gemspec VERSION ./ -RUN bundle install --jobs 4 --deployment --quiet +RUN bundle install --jobs $(nproc) --deployment --quiet COPY . ./ diff --git a/docker-compose.test.yml b/docker-compose.test.yml index cfd3867..8c9e3d0 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -7,6 +7,8 @@ services: RUBY_VERSION: 3.2.2 image: netbox-client-ruby:3.2.2 command: 'docker/start.test.sh' + volumes: + - ./:/app app27: build: context: . @@ -14,3 +16,5 @@ services: RUBY_VERSION: 2.7.8 image: netbox-client-ruby:2.7.8 command: 'docker/start.test.sh' + volumes: + - ./:/app