Results 1 to 3 of 3

Thread: Need help : artifactory setup

  1. #1
    Join Date
    May 2008
    Posts
    29

    Need help : artifactory setup

    Hi,

    I am not much sure so I need some guideline or tutorial to setup artifactory on MySQL.

    Thanks in advance.

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    Re: Need help : artifactory setup

    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
    Code:
    $ ./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
    Code:
    <Call name="setContextPath">
       <Arg>/artifactory</Arg>
    </Call>
    to
    Code:
    <Call name="setContextPath">
       <Arg>/maven</Arg>
    </Call>
    Configuring Apache

    Install and enable mod_proxy and mod_proxy_httpd
    Configure the proxy:
    Code:
    <proxy *>
       ...
       Allow from all
    </proxy>
    Proxy /maven requests to localhost:8081/maven:

    Code:
    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

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Need help : artifactory setup

    Running Artifactory on MySQL

    Artifactory can be configured to run with almost any JDBC database for its data store. The instructions below describes how to set up Artifactory on MySQL. By using MySQL (over the built-in Derby DB) you can leverage exiting MySQL infrastructure and use the MySQL backup, restore and high-availability features. The setup involves creating the dedicated MySQL database instance and then configuring Artifactory to use that instance.

    Create the Artifactory MySQL Database

    You can use the $ARTIFACTORY_HOME/misc/mysql/createdb.sql SQL script to execute the SQL commands below to create a database. Please review and edit this script before executing it, according to your environment.

    Code:
    [root@pond artifactory]# mysql -u root
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 3
    Server version: 5.0.45 Source distribution
    
    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
    
    mysql> create database artifactory character set utf8;
    Query OK, 1 row affected (0.00 sec)
    
    mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX on artifactory.* TO 'artifactory_user'@'localhost' IDENTIFIED BY 'password';
    Query OK, 0 rows affected (0.00 sec)
    
    mysql> flush privileges;
    Query OK, 0 rows affected (0.00 sec)
    
    mysql> quit

Similar Threads

  1. Replies: 3
    Last Post: 11-01-2014, 09:54 AM
  2. Replies: 1
    Last Post: 25-09-2012, 06:37 PM
  3. Replies: 7
    Last Post: 05-08-2010, 06:03 AM
  4. Replies: 3
    Last Post: 01-07-2009, 03:20 PM
  5. Replies: 4
    Last Post: 23-04-2009, 09:59 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,486,896.56346 seconds with 16 queries