Skip to content

Commit

Permalink
CI: don't upgrade hub in test containers
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Jan 31, 2024
1 parent 578d66e commit abdefa6
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 68 deletions.
1 change: 1 addition & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ config.yaml) each time the container is run.
| `BOUNCERS_ALLOWED_OU` | bouncer-ou | OU values allowed for bouncers, separated by comma |
| | | |
| __Hub management__ | | |
| `NO_HUB_UPGRADE` | false | Skip hub update / upgrade when the container starts |
| `COLLECTIONS` | | Collections to install, separated by space: `-e COLLECTIONS="crowdsecurity/linux crowdsecurity/apache2"` |
| `PARSERS` | | Parsers to install, separated by space |
| `SCENARIOS` | | Scenarios to install, separated by space |
Expand Down
6 changes: 5 additions & 1 deletion docker/docker_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,12 @@ fi
conf_set_if "$PLUGIN_DIR" '.config_paths.plugin_dir = strenv(PLUGIN_DIR)'

## Install hub items

cscli hub update || true
cscli hub upgrade || true

if isfalse "$NO_HUB_UPGRADE"; then
cscli hub upgrade || true
fi

cscli_if_clean parsers install crowdsecurity/docker-logs
cscli_if_clean parsers install crowdsecurity/cri-logs
Expand Down
2 changes: 1 addition & 1 deletion docker/test/Pipfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[packages]
pytest-dotenv = "0.5.2"
pytest-xdist = "3.5.0"
pytest-cs = {ref = "0.7.18", git = "https://github.com/crowdsecurity/pytest-cs.git"}
pytest-cs = {ref = "0.7.19", git = "https://github.com/crowdsecurity/pytest-cs.git"}

[dev-packages]
gnureadline = "8.1.2"
Expand Down
142 changes: 76 additions & 66 deletions docker/test/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit abdefa6

Please sign in to comment.