Skip to content

Commit

Permalink
Merge pull request #34 from samvera-labs/solr-version
Browse files Browse the repository at this point in the history
Use the solr:slim docker image
  • Loading branch information
rotated8 authored Jan 28, 2021
2 parents 6517aa0 + 1b188f2 commit a4821de
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,29 @@ commands are named and documented to avoid surprises.
Circle has general information about [executors](https://circleci.com/docs/2.0/executor-intro/#section=configuration),
and [commands](https://circleci.com/docs/2.0/using-orbs/#commands) that may be useful as well.

## Best practices

The executors allow you to set parameters for the dependencies they use. For instance, you could have in
your parameters

```
solr_version:
type: string
default: '7-slim'
```

or in your build matrix:

```
ruby_type: 'ruby'
```

Different dependencies have different parameters, but all of them allow you to specify a version. You should do
this! The orb is permissive in the versions it allows, and may surprise you by upgrading when you least expect
it.

Be prepared! Control your destiny! Specify versions!

## Releasing new versions

1. Install the CircleCI Client -
Expand Down
2 changes: 1 addition & 1 deletion src/executors/ruby_fcrepo_solr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ parameters:
default: '8985'
solr_version:
type: string
default: '7-alpine'
default: 'slim'
docker:
- image: circleci/<< parameters.ruby_type >>:<< parameters.ruby_version >>-node-browsers-legacy
- image: samvera/fcrepo4:<< parameters.fcrepo_version >>
Expand Down
2 changes: 1 addition & 1 deletion src/executors/ruby_fcrepo_solr_redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ parameters:
default: '8985'
solr_version:
type: string
default: '7-alpine'
default: 'slim'
docker:
- image: circleci/<< parameters.ruby_type >>:<< parameters.ruby_version >>-node-browsers-legacy
- image: samvera/fcrepo4:<< parameters.fcrepo_version >>
Expand Down
2 changes: 1 addition & 1 deletion src/executors/ruby_fcrepo_solr_redis_postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ parameters:
default: '8985'
solr_version:
type: string
default: '7-alpine'
default: 'slim'
docker:
- image: circleci/<< parameters.ruby_type >>:<< parameters.ruby_version >>-node-browsers-legacy
- image: samvera/fcrepo4:<< parameters.fcrepo_version >>
Expand Down

0 comments on commit a4821de

Please sign in to comment.