Hi,
I am not much sure so I need some guideline or tutorial to setup artifactory on MySQL.
Thanks in advance.
Hi,
I am not much sure so I need some guideline or tutorial to setup artifactory on MySQL.
Thanks in advance.
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
Artifactory should now be running on localhost:8081/artifactory . We prefer it to run at /maven so open /etc/artifactory/jetty.xml and changeCode:$ ./bin/install.sh
toCode:<Call name="setContextPath"> <Arg>/artifactory</Arg> </Call>
Configuring ApacheCode:<Call name="setContextPath"> <Arg>/maven</Arg> </Call>
Install and enable mod_proxy and mod_proxy_httpd
Configure the proxy:
Proxy /maven requests to localhost:8081/maven:Code:<proxy *> ... Allow from all </proxy>
And one last quirkly thing is to create a /var/www/maven directory. Apache seems to need this.Code:ProxyPass /maven http://localhost:8081/maven ProxyPassReverse /maven http://localhost:8081/maven ProxyPreserveHost On
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
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
Bookmarks