This repository has been archived by the owner on Dec 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Fábio Tramasoli edited this page Apr 24, 2017
·
1 revision
This repo is intended for creating base images for use with Jenkins. It provides a set of images for:
- Build Java applications based on maven and JDK 7,8
- Build Angular2 applications based on angular-cli
- Run SonarQube
- Build another images with docker client
We use Travis-CI as our continuous integration tool. So each of the images listed for use must:
- Be contained in a folder with the name: baseosname-mainappname-mainappversion/baseosversion
- This folder must have a travis-test.sh script
- For this folder be available to test it must be listed as a value of DOCKERFILE variable contained in .travis.yml file (in the root folder of the project)
After your changes are tested and passing in Travis you should:
- Create a TAG with the version
- Invoke a build in DockerHub with curl or whatever tool you like, eg.:
curl -H "Content-Type: application/json" --data '{"source_type": "Tag", "source_name": "${YOUR_RECENT_TAG_VERSION"}' -X POST https://registry.hub.docker.com/u/${YOUR_NAMESPACE}/${YOUR_HUB_PROJECT}/trigger/${SECRET_DOCKER_TOKEN}/