-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from cloudbees-oss/dockerkub-and-kiss
Adjust documentation to the new Docker Hub location and simplify the demo
- Loading branch information
Showing
4 changed files
with
33 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Contributing | ||
|
||
## Proposing changes | ||
|
||
If you want to improve the image, please submit a pull request to the repository. | ||
|
||
## Building the image | ||
|
||
* Ensure that Docker and Make are installed on your machine | ||
* Checkout the repository | ||
* Run `make build` | ||
|
||
It will produce a local `cloudbees/cjd-jcasc-demo:rolling` image. | ||
|
||
## Testing the local image | ||
|
||
Use the `make run-devel` command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,21 @@ | ||
IMAGE_TAG=cloudbees/cjd-jcasc-demo:rolling | ||
INCLUDE_ALL_BUNDLED_PLUGINS?=true | ||
IMAGE_TAG=cloudbees/cjd-jcasc-demo | ||
DEVEL_SUFFIX=devel | ||
IMAGE_DEVEL_TAG=${IMAGE_TAG}:${DEVEL_SUFFIX} | ||
DOCKER_BUILD_FLAGS?= | ||
|
||
clean: | ||
@if docker images cloudbees/cjd-jcasc-demo | awk '{ print $$2 }' | grep -q -F rolling; then docker image rm --force ${IMAGE_TAG} ; false; fi | ||
@if docker images ${IMAGE_TAG} | awk '{ print $$2 }' | grep -q -F ${IMAGE_DEVEL_TAG}; then docker image rm --force ${IMAGE_DEVEL_TAG} ; false; fi | ||
|
||
build: | ||
docker build -t ${IMAGE_TAG} ${DOCKER_BUILD_FLAGS} . | ||
docker build -t ${IMAGE_DEVEL_TAG} ${DOCKER_BUILD_FLAGS} . | ||
|
||
run: | ||
docker run -u root --rm -p 8080:8080 -p 50000:50000 \ | ||
-v /var/run/docker.sock:/var/run/docker.sock \ | ||
-e JAVA_OPTS="-Dcom.cloudbees.jenkins.cjp.installmanager.CJPPluginManager.allRequired=${INCLUDE_ALL_BUNDLED_PLUGINS}" \ | ||
${IMAGE_TAG} | ||
docker run --rm -p 8080:8080 ${IMAGE_TAG} | ||
|
||
run-devel: | ||
@if ls work ; then rm -rf work ; false; fi | ||
rm -rf work | ||
mkdir work | ||
docker run -u root --rm -p 8080:8080 -p 50000:50000 \ | ||
-v /var/run/docker.sock:/var/run/docker.sock \ | ||
-e JAVA_OPTS="-Dcom.cloudbees.jenkins.cjp.installmanager.CJPPluginManager.allRequired=${INCLUDE_ALL_BUNDLED_PLUGINS}" \ | ||
docker run --rm -p 8080:8080 \ | ||
-e VERBOSE=true \ | ||
-v $(CURDIR)/work:/var/jenkins_home/ \ | ||
${IMAGE_TAG} | ||
-v $(CURDIR)/work:/var/cloudbees-jenkins-distribution/ \ | ||
${IMAGE_DEVEL_TAG} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters