From dcb8678e80285a8ca38d3267e8820758f2e1c03c Mon Sep 17 00:00:00 2001 From: Raul Sanchez Date: Thu, 20 Jul 2017 16:32:45 +0200 Subject: [PATCH] Upgrade artifactory version to 5.4.5. Added OSS or PRO version deployment --- templates/artifactory-oss/0/README.md | 30 + .../artifactory-oss/0/docker-compose.yml.tpl | 22 + .../artifactory-oss/0/rancher-compose.yml | 60 ++ templates/artifactory-oss/README.md | 8 + .../catalogIcon-artifactory.svg | 634 ++++++++++++++++++ templates/artifactory-oss/config.yml | 6 + 6 files changed, 760 insertions(+) create mode 100644 templates/artifactory-oss/0/README.md create mode 100644 templates/artifactory-oss/0/docker-compose.yml.tpl create mode 100644 templates/artifactory-oss/0/rancher-compose.yml create mode 100644 templates/artifactory-oss/README.md create mode 100644 templates/artifactory-oss/catalogIcon-artifactory.svg create mode 100644 templates/artifactory-oss/config.yml diff --git a/templates/artifactory-oss/0/README.md b/templates/artifactory-oss/0/README.md new file mode 100644 index 0000000..f7ca52e --- /dev/null +++ b/templates/artifactory-oss/0/README.md @@ -0,0 +1,30 @@ +# Artifactory + +[Artifactory][artifactory] is a universal Binary Repository Manager for use by build tools (like Maven and Gradle), +dependency management tools (like Ivy and NuGet) and build servers (like Jenkins, Hudson, TeamCity and Bamboo). + +Repository managers serve two purposes: they act as highly configurable proxies between your organization and +external repositories and they also provide build servers with a deployment destination for your internally +generated artifacts. + +### Usage: + + Select Artifactory from catalog. + + - Select artifactory version, OSS or PRO. + - Set the params. + + Click deploy. + +Note: To use the PRO version, you need to get a free trial. + + +### More info: + +- [Resources][artifactory-resources] +- [Free-trial][artifactory-trial] + + +[artifactory]: https://www.jfrog.com/artifactory/ +[artifactory-resources]: https://www.jfrog.com/support-service/resources/ +[artifactory-trial]: https://www.jfrog.com/artifactory/free-trial/ \ No newline at end of file diff --git a/templates/artifactory-oss/0/docker-compose.yml.tpl b/templates/artifactory-oss/0/docker-compose.yml.tpl new file mode 100644 index 0000000..d34f2f0 --- /dev/null +++ b/templates/artifactory-oss/0/docker-compose.yml.tpl @@ -0,0 +1,22 @@ +version: '2' +services: + artifactory: + {{- if eq .Values.ARTIFACTORY_VERSION "OSS"}} + image: docker.bintray.io/jfrog/artifactory-oss:5.4.5 + {{- else}} + image: docker.bintray.io/jfrog/artifactory-pro:5.4.5 + {{- end}} + volumes: + - artifactory-data:/var/opt/jfrog/artifactory + environment: + - EXTRA_JAVA_OPTIONS=${EXTRA_JAVA_OPTIONS} + {{- if (.Values.PUBLISH_PORT)}} + artifactory-lb: + image: rancher/lb-service-haproxy:v0.6.4 + ports: + - ${PUBLISH_PORT}:${PUBLISH_PORT} + {{- end}} +volumes: + artifactory-data: + driver: ${VOLUME_DRIVER} + diff --git a/templates/artifactory-oss/0/rancher-compose.yml b/templates/artifactory-oss/0/rancher-compose.yml new file mode 100644 index 0000000..091c01e --- /dev/null +++ b/templates/artifactory-oss/0/rancher-compose.yml @@ -0,0 +1,60 @@ +version: '2' +catalog: + name: "Artifactory" + version: "5.4.5" + description: "Artifactory is a universal Binary Repository Manager" + questions: + - variable: "ARTIFACTORY_VERSION" + label: "Version" + description: | + Select the Artifactory server version. OSS or PRO + required: true + default: "OSS" + type: enum + options: + - OSS + - PRO + - variable: "PUBLISH_PORT" + label: "Publish port" + description: | + Set port if you want publish external port for Artifactory server. + required: true + type: "int" + default: 8081 + - variable: "EXTRA_JAVA_OPTIONS" + label: "Extra Java options" + description: | + type: "string" + default: "" + - variable: "VOLUME_DRIVER" + type: "string" + label: "Volume driver for Artifactory data" + description: | + Specifiy docker volume driver to use + default: "local" + required: true +services: + artifactory-lb: + scale: 1 + lb_config: + certs: [] + port_rules: + - protocol: http + service: artifactory + source_port: ${PUBLISH_PORT} + target_port: 8081 + health_check: + response_timeout: 2000 + healthy_threshold: 2 + port: 42 + unhealthy_threshold: 3 + artifactory: + scale: 1 + retain_ip: true + health_check: + port: 8081 + interval: 5000 + unhealthy_threshold: 3 + request_line: 'GET / HTTP/1.0' + healthy_threshold: 2 + response_timeout: 5000 diff --git a/templates/artifactory-oss/README.md b/templates/artifactory-oss/README.md new file mode 100644 index 0000000..48420e8 --- /dev/null +++ b/templates/artifactory-oss/README.md @@ -0,0 +1,8 @@ +# Artifactory + +Artifactory is a universal Binary Repository Manager for use by build tools (like Maven and Gradle), +dependency management tools (like Ivy and NuGet) and build servers (like Jenkins, Hudson, TeamCity and Bamboo). + +Repository managers serve two purposes: they act as highly configurable proxies between your organization and +external repositories and they also provide build servers with a deployment destination for your internally +generated artifacts. \ No newline at end of file diff --git a/templates/artifactory-oss/catalogIcon-artifactory.svg b/templates/artifactory-oss/catalogIcon-artifactory.svg new file mode 100644 index 0000000..ab68b61 --- /dev/null +++ b/templates/artifactory-oss/catalogIcon-artifactory.svg @@ -0,0 +1,634 @@ + + + + + + diff --git a/templates/artifactory-oss/config.yml b/templates/artifactory-oss/config.yml new file mode 100644 index 0000000..53f9498 --- /dev/null +++ b/templates/artifactory-oss/config.yml @@ -0,0 +1,6 @@ +name: Artifactory +description: | + Artifactory is a universal Binary Repository Manager +version: 5.4.5 +category: Repository +