Skip to content

Latest commit

 

History

History
67 lines (44 loc) · 1.99 KB

CONTRIBUTING.md

File metadata and controls

67 lines (44 loc) · 1.99 KB

Contributing

Every Pull Request is welcome.

Branches

Choosing a proper name for a branch helps us identify its purpose and possibly find an associated bug or feature. Generally a branch name should include a topic such as fix or feature followed by a description. Branches should have only changes relevant to a specific issue.

git checkout -b fix/bug-in-connection
git checkout -b feature/improved-config-handling
git checkout -b doc/fix-typo

Upgrading the Version

The versions in this repository should correspond to the GitHub LimeSurvey Releases

To update the version, simply update ARG variables for version and corresponding checksum:

# Version from GitHub Tags
# sha256 of tar.gz from GitHub Releases

$ grep ARG 5.0/apache/Dockerfile
ARG version='5.3.13+200824'
ARG sha256_checksum='4e9c6f20e'

It is best to use the upgrade shell script:

./upgrade.sh 5.3.13+200824
# Check if sha256 is correct

git add 5.0/ && git commit -m 'Upgrading to Version 5.3.13+200824'
git tag 5.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

make apache-latest

container-structure-test test --image docker.io/martialblog/limesurvey:5-apache --config tests/apache-tests.yaml
make fpm-latest

container-structure-test test --image  docker.io/martialblog/limesurvey:5-fpm-alpine --config tests/fpm-alpine-tests.yaml
make fpm-alpine-latest

container-structure-test test --image  docker.io/martialblog/limesurvey:5-fpm --config tests/fpm-tests.yaml

ARM Platform

Changes related to the ARM platform should use branches starting with the arm/ prefix, this ensures the GitHub Actions are triggered.

Background: ARM builds take a long time to finish on the GitHub Runners.