NETID-238 Dockerize PHP NetID RPC
Added in a DOCKERFILE and a docker-compose.yml which create environments to run unit and integration tests without any prerequisites (aside from docker) installed. Added a release script to release to the remote repository and an environment file to keep track of version locally.
To run the tests:
- Have Docker installed
- cd into the rpc-netid-php directory
- run
docker-compose run --rm test
ordocker-compose run --rm integration-test
The test and integration test are separated into two different profiles, so that way if keys or passwords need to be copied into the integration testing profile, it does not effect anything else.
docker-compose run --rm
is used to create a one-off container. Since there is no front-facing web application, this prevents lingering inaccessible containers from hanging on.
To release:
- Have git installed
- Version number in .env file (normally branch should be master, but can be modified)
- Run
chmod +x release.sh
- Run
./release.sh
Notify: @bjsousa @NUWAN.KUMARASIRI