Upgrade artifactory version to 5.4.5. Added OSS or PRO version deployment

This commit is contained in:
Raul Sanchez
2017-07-20 16:32:45 +02:00
parent a67b58c999
commit dcb8678e80
6 changed files with 760 additions and 0 deletions
+30
View File
@@ -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/
@@ -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}
@@ -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