diff --git a/.env b/.env new file mode 120000 index 0000000..d490592 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +jenkins.conf \ No newline at end of file diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..0c64ff9 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,4 @@ +[![cc-bc-sa](https://i.creativecommons.org/l/by-sa/4.0/88x31.png)](http://creativecommons.org/licenses/by-sa/4.0/) + +This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. +To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. diff --git a/README.md b/README.md new file mode 100644 index 0000000..6814dbb --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# jenkins via docker-compose + +## Configuration +Please see [`jenkins.conf`](jenkins.conf) + +## Usage + +## License +[![cc-bc-sa](https://i.creativecommons.org/l/by-sa/4.0/88x31.png)](http://creativecommons.org/licenses/by-sa/4.0/): Please see [license](LICENSE.md) diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..c4f17cf --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: "2.1" + +services: + master-jenkins: + image: jenkins:latest + volumes: + - jenkins-vol-1:/var/jenkins_home + restart: always + ports: + - "${HTTP_BIND:-127.0.0.1}:${HTTP_PORT:-8080}:8080" + - "${API_BIND:-127.0.0.1}:${API_PORT:-50000}:50000" diff --git a/jenkins.conf b/jenkins.conf new file mode 100644 index 0000000..b2970cd --- /dev/null +++ b/jenkins.conf @@ -0,0 +1,16 @@ +## +# @file jenkins.conf +# @author Pascal Gollor +# @date 2017-04-04 +# +# +# User 0.0.0.0 instead of 127.0.0.1 to bin on all interfaces +# + +# http bind host and port +HTTP_BIND=127.0.0.1 +HTTP_PORT=8080 + +# java api bind host and port +API_BIN=127.0.0.1 +API_PORT=50000