Skip to content

Commit

Permalink
build: improve docker dev setup
Browse files Browse the repository at this point in the history
  • Loading branch information
thde committed Oct 17, 2024
1 parent 854b589 commit 1229e2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 . ./

Expand Down
4 changes: 4 additions & 0 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ services:
RUBY_VERSION: 3.2.2
image: netbox-client-ruby:3.2.2
command: 'docker/start.test.sh'
volumes:
- ./:/app
app27:
build:
context: .
args:
RUBY_VERSION: 2.7.8
image: netbox-client-ruby:2.7.8
command: 'docker/start.test.sh'
volumes:
- ./:/app

0 comments on commit 1229e2b

Please sign in to comment.