Mercurial Source Code Control Server (SCM)
The purpose of this post is to help you create a source code control (SCM) server to host your private repositories. Bitbucket is great; however, private repositories can get expensive for big teams. SCMManager helps you take an ubuntu server and turn it into a private mercurial server.
Reference links:
URL: http://YourURL:8080
Username: scmadmin
Password: scmadmin
Here are the installation steps:
Create a new ubuntu 14.04 server
sudo apt-get update
sudo apt-get --yes install openjdk-6-jdk mercurial s3cmd
echo "echo 'deb http://maven.scm-manager.org/nexus/content/repositories/releases ./' >> /etc/apt/sources.list" | sudo sh
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com D742B261
sudo apt-get update
sudo apt-get install scm-server
sudo service scm-server start
sudo service scm-server status
From here you can use ubuntu's service command to start/stop the service:
- sudo service scm-server status
- sudo service scm-server stop
- sudo service scm-server start
- sudo service scm-server restart
Notes:
- If you are getting an error every time you issue a sudo command, issue the following commands
- wget bitbucket.org/cboecking/idempiere-installation-script/raw/default/utils/setHostName.sh
- chmod +x setHostName.sh
- sudo ./setHostName.sh