Skip to content

Commit

Permalink
updated docker environment for pagy 4
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed Mar 8, 2021
1 parent 4a85efe commit 4676788
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
6 changes: 3 additions & 3 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ If you already set the variables:

```sh
cd docker
docker-compose build pagy3 pagy-jekyll
docker-compose build pagy pagy-jekyll
```

or just set it with the command. For example:
Expand Down Expand Up @@ -69,8 +69,8 @@ If you are serious about developing, you can integrate this environment with som
When you want to get rid of everything related to the `pagy` development on your system:

- `rm -rf /path/to/pagy`
- `docker rmi pagy pagy-gh-pages` or `docker rmi pagy:3 pagy-gh-pages` if you don't want to remove other versions (e.g. `pagy:4`)
- `docker volume rm pagy3_bundle pagy3_user_home pagy3_docs_site`
- `docker rmi pagy pagy-gh-pages` or `docker rmi pagy:4 pagy-gh-pages` if you don't want to remove other versions (e.g. `pagy:3`)
- `docker volume rm pagy_bundle pagy_user_home pagy_docs_site`
- `docker system prune` (not pagy related but good for reclaiming storage space from docker)

## Caveats
Expand Down
10 changes: 5 additions & 5 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ version: "3.8"
services:

pagy:
image: pagy:3
image: pagy:4
build:
context: .
dockerfile: pagy.dockerfile
Expand All @@ -20,7 +20,7 @@ services:
gid: $GID
password: "${PASSWORD:-rubydev}"
term: ${TERM:-xterm-256color}
container_name: pagy3
container_name: pagy
volumes:
- ../.:/opt/project
- bundle:/usr/local/bundle
Expand Down Expand Up @@ -61,9 +61,9 @@ services:

volumes:
bundle:
name: pagy3_bundle
name: pagy_bundle
user_home:
name: pagy3_user_home
name: pagy_user_home
docs_site:
name: pagy3_docs_site
name: pagy_docs_site

2 changes: 1 addition & 1 deletion docker/pagy.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.7
FROM ruby:3


ARG term
Expand Down
2 changes: 0 additions & 2 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# encoding: utf-8
# frozen_string_literal: true

$VERBOSE = nil

require 'bundler/setup'

require 'simplecov' if ENV['RUN_SIMPLECOV'] == 'true'
Expand Down

0 comments on commit 4676788

Please sign in to comment.