Jobsworth installer and migrator from hosted ClockingIT
This project has the purpose of helping you install jobsworth in an Ubuntu and Ubuntu Server OS, and also to help you migrate from the hosted verion of ClockingIT
At the moment the instructions are very raw, and the migration script might be unstable so be careful using it. You can choos to make an automatic install with the provided scripts or a Manual install following the steps detailed below.
You can install Jobsworth and also migrate your data if you wish, by using the scripts provided in this project. The scripts will try to download and install everything you need.
To download the script and execute all you have to do is execute the following commands in the linux console:
wget https://github.com/frank-orellana/jobsworth-installer/archive/master.tar.gz
tar xzf master.tar.gz
cd jobsworth-installer-master
chmod +x install-jobsworth.sh
sudo ./install-jobsworth.sh
Follow the steps on screen and when everything is finished without errors you will be able to access your brand new installation of jobsworth in http://your-ip:8080/ with the user: admin
and password: password
. It might take a while the first time.
- Ubuntu: 15.10,16.04,16.10,18.04
- Debian 8.8
It might work on others debian based distros and in other ubuntu versions, I just have not tried them.
Follow the instructions in the docker readme file
Detailed instructions and details for automatic Install
All this scripts have been tested ONLY on new installations of Debian 8.8, Ubuntu 15.10, 16.04 and 16.10
There's also a VirtualBox VM ready to try if you wish to download it from Dropbox with the instructions to use it here:
- Download the full project
- Extract the files to a folder IN your server
- Move to the
jobsworth-installer
directory - Make the file executable
chmod +x install-jobsworth.sh
- For Installation execute the file:
sudo ./install-jobsworth.sh
.
The script will automatically:
- Download and install MySql (It will ask you to set the root password)
- Create a new database named
jobsworth
and a database user namedjw
- Download, Install and configure Java JDK and Tomcat9
- You will be able to access tomcat welcome page at http://your-ip:8080/, and also the managemente addreses in http://your-ip:8080/host-manager and http://your-ip:8080/host-manager with the user and password
jobsworth
from your os and local network only. 2. The installation path will be /opt/tomcat. For more details see the script
- You will be able to access tomcat welcome page at http://your-ip:8080/, and also the managemente addreses in http://your-ip:8080/host-manager and http://your-ip:8080/host-manager with the user and password
- Download, install and configure Jobsworth
- After the installation is complete you can access jobsworth through http://your-ip:8080/ with the user:
admin
and password:password
. It might take a while the first time - For Data Migration view the instructions below
To see the full details see the Migration Guide
The scripts need to be executable. If they are not you will have to execute this before trying to execute them:
chmod +x install-jobsworth.sh
chmod +x migration-from-hosted/migrate-from-hosted.sh
You can prevent parts of the script from executing like this:
sudo NOXX=1 NOYY=1 ./install-jobsworth.sh
The options you can prevent are:
OPTION | What it prevents |
---|---|
NO_UPD_REP | The update of repositories (apt-get update) for example for when you are running the script a second time |
NO_DB_SERVER | The installation of mariadb-server |
NO_DB | The creation of the jobsworth database |
NO_JDK | The installation of openjdk-8-jdk |
NO_TOMCAT | Tomcat download and installation |
If you do not wish to use the automatic installation script, there is also a tutorial to install jobsworth from scratch in a clean Ubuntu 16.10 Server & Desktop distro.
The full steps can be found in here.
Click here to view the steps required to manually install jobsworth
Basically what you will do is:
- Install Ubuntu 15.10 or above
- Install and configure MariaDB (MySql)
- Install and configure Java JDK 8
- Install and configure Tomcat
- Install and configure the Jobsworth WAR file
Full steps here.
Also there is a VM already configured if you prefer. You can download it from dropbox.
With these steps you should be able to migrate your projects, tasks, users and most of the data from the hosted version of ClockingIT to your installation of jobsworth. You need to have already installed jobsworth for this to work.
For the migration you will need to:
- Download the full project, extract it in a folder IN your server instructions
- Go to the folder
jobsworth-installer/migration-from-hosted
- Download the sql dump from the hosted version of ClockingIT
- Make the script executable
chmod +x migrate-from-hosted.sh
- Run the script as sudo passing as a parameter the dump file name:
sudo ./migrate-from-hosted.sh my_dump_file.sql
All user's passwords will be reset to 'jobsworth'
The full steps for the migration can be found here
There might be some errors in the dump file, this has nothing to do with the current installer, and these errors will have to be fixed if necessary to import correctly.