mirror of
https://github.com/mykitserver/docker-limesurvey.git
synced 2025-12-06 16:39:11 +01:00
53 lines
1.4 KiB
Markdown
53 lines
1.4 KiB
Markdown
# Contributing
|
|
|
|
Every Pull Request is welcome.
|
|
|
|
## Upgrading the Version
|
|
|
|
The versions in this repository should correspond to the [GitHub LimeSurvey Releases](https://github.com/LimeSurvey/LimeSurvey/releases)
|
|
|
|
To update the version, simply update ARG variables for version and corresponding checksum:
|
|
|
|
```bash
|
|
# Version from GitHub Tags
|
|
# sha256 of tar.gz from GitHub Releases
|
|
|
|
$ grep ARG 4.0/apache/Dockerfile
|
|
ARG version='4.3.13+200824'
|
|
ARG sha256_checksum='4e9c6f20e'
|
|
```
|
|
|
|
It is best to use the upgrade shell script:
|
|
|
|
```bash
|
|
./upgrade.sh 4.3.13+200824
|
|
# Check if sha256 is correct
|
|
|
|
git add 4.0/ && git commit -m 'Upgrading to Version 4.3.13+200824'
|
|
git tag 4.3.13-200824
|
|
```
|
|
|
|
## Testing
|
|
|
|
In order to make sure the image works as promised, some container-structure-tests are provided. The tests require the `container-structure-test` tool to be installed.
|
|
|
|
For further information: https://github.com/GoogleContainerTools/container-structure-test
|
|
|
|
```bash
|
|
make apache-latest
|
|
|
|
container-structure-test test --image docker.io/martialblog/limesurvey:5-apache --config tests/apache-tests.yaml
|
|
```
|
|
|
|
```bash
|
|
make fpm-latest
|
|
|
|
container-structure-test test --image docker.io/martialblog/limesurvey:5-fpm-alpine --config tests/fpm-alpine-tests.yaml
|
|
```
|
|
|
|
```bash
|
|
make fpm-alpine-latest
|
|
|
|
container-structure-test test --image docker.io/martialblog/limesurvey:5-fpm --config tests/fpm-tests.yaml
|
|
```
|