CentOS6でArtifactoryを構築するshell


iptablesはoff前提。
実行後、http://hogehoge:8081/ でアクセス。

#!/bin/bash -ex

ARTIFACTORY_VERSION=4.7.2
# PROXY_HOST=
# PROXY_PORT=
# NO_PROXY=

# export http_proxy="http://${PROXY_HOST}:${PROXY_PORT}"
# export https_proxy="http://${PROXY_HOST}:${PROXY_PORT}"
# export no_proxy="${NO_PROXY}"

yum -y install java-1.8.0-openjdk-devel
rpm -ivh https://dl.bintray.com/jfrog/artifactory-rpms/jfrog-artifactory-oss-${ARTIFACTORY_VERSION}.rpm
service artifactory start