Base application for creating GitLab event listener.
- Maven build:
mvn clean install - Build development docker container:
docker build -t tunguski/kosher . - Run Kosher locally:
docker run --name kosher -d -p 10081:8080 --volumes-from=gitlab_gitlab_1 tunguski/kosher- Kosher may connect to Gitlab server via volume, so here gitlab_gitlab_1 container have to be created first.
- Use https://github.com/sameersbn/docker-gitlab
docker-compose.ymlif you don't have Gitlab already.
- Create test project in Gitlab. We use cloned Kosher project for this purpose.
- Add Webhook that connects Gitlab build to Kosher:
http://kosher:8080/hooks - Test your webhook in Gitlab. It should start Kosher build. You can
check if it started by looking at logs:
docker logs -f --tail=20 kosherIt should produce build logs for started build. - Check resulted build via Kosher web view. Our test project is cloned
as
tunguski/kosherand test build starts formasterbranch. If you configure project as described here, you should be able to see result at http://localhost:10081/tunguski/kosher/master/index.html
If you want to work on your site's style, please read Kosher-base-style README for more information.
