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 index a754411..d34f2f0 100644 --- a/templates/artifactory-oss/0/docker-compose.yml.tpl +++ b/templates/artifactory-oss/0/docker-compose.yml.tpl @@ -1,21 +1,21 @@ version: '2' - services: - artifactory: - image: docker.bintray.io/jfrog/artifactory-oss:5.4.4 - {{- if (.Values.PUBLISH_PORT)}} - ports: - - ${PUBLISH_PORT}:8081 + {{- if eq .Values.ARTIFACTORY_VERSION "OSS"}} + image: docker.bintray.io/jfrog/artifactory-oss:5.4.5 {{- else}} - expose: - - 8081 + 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 index 28f0430..091c01e 100644 --- a/templates/artifactory-oss/0/rancher-compose.yml +++ b/templates/artifactory-oss/0/rancher-compose.yml @@ -1,17 +1,26 @@ version: '2' - catalog: - name: "Artifactory OSS" - version: "5.4.4" + 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: false - type: "string" - default: "8081" + required: true + type: "int" + default: 8081 - variable: "EXTRA_JAVA_OPTIONS" label: "Extra Java options" description: | @@ -24,3 +33,28 @@ catalog: 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 index 52a48d9..bffd58a 100644 --- a/templates/artifactory-oss/README.md +++ b/templates/artifactory-oss/README.md @@ -1,4 +1,5 @@ -# Artifactory OSS +# 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). diff --git a/templates/artifactory-oss/config.yml b/templates/artifactory-oss/config.yml index 363270a..53f9498 100644 --- a/templates/artifactory-oss/config.yml +++ b/templates/artifactory-oss/config.yml @@ -1,6 +1,6 @@ -name: Artifactory OSS +name: Artifactory description: | Artifactory is a universal Binary Repository Manager -version: 5.4.4 +version: 5.4.5 category: Repository