Setting Up Artifactory

Installing Artifactory

Artifactory is intuitively simple to install assuming you don't have any other services running on 80, however, it's a little more complicated if you do. Everything can play nicely together with a little configuration in Apache

Start by installing Artifactory as normal using their nice script

$ ./bin/install.sh

Artifactory should now be running on localhost:8081/artifactory . We prefer it to run at /maven so open /etc/artifactory/jetty.xml and change

<Call name="setContextPath">
   <Arg>/artifactory</Arg>
</Call>

to

<Call name="setContextPath">
   <Arg>/maven</Arg>
</Call>

Configuring Apache

Install and enable mod_proxy and mod_proxy_httpd This is a big step but out of the scope of this document.

Configure the proxy:

<proxy *>
   ...
   Allow from all
</proxy>

Proxy /maven requests to localhost:8081/maven:

ProxyPass /maven http://localhost:8081/maven
ProxyPassReverse /maven http://localhost:8081/maven
ProxyPreserveHost On

And one last quirkly thing is to create a /var/www/maven directory. Apache seems to need this.

Configure Artifactory

  • Log in as admin and change the default password
  • Create any new users
    • Adjust any user permissions, most likely these users will need deploy permissions
  • Adjust the anonymous user to not have read permissions

More Information on Artifactory

http://www.jfrog.org/sites/artifactory/latest/

Labels

 
(None)