- Make sure JDK is installed, download it here.
- JBoss Enterprise Application Platform 6.4 (EAP). This is the recommended container for Zanata, and it can be downloaded here. Installation instructions.
- Wildfly is much easier though (recommended version is 8.1.x) which can be downloaded here. You can also install with
brew install wildfly-as
. - A suitable MySQL database. This is NOT included in the Zanata archive. You can download MySQL here. You can also install with
brew install mysql
. - An email (SMTP) server to perform certain notifications. Mac OSX 10.10 can use postfix.
- JDK version 7 or later (7 is recommended for EAP as it is not yet certified to run against Java 8). OpenJDK is recommended, but you can also download Oracle's JDK
- Install maven
brew install maven
.
-
Make sure you have downloaded MYSQL. Start it one the command line with
mysql -u root
. -
Start MySQL service and create a database schema for Zanata.
CREATE DATABASE zanata /**!40100 DEFAULT CHARACTER SET utf8 **/;
- Run
git clone https://github.com/zanata/zanata-server.git
- Run
mvn clean package -Dchromefirefox -DskipTests -Dfunctional-test -Pwildfly8
- Get some coffee. Lots of coffee. Approximately 60 mins of coffee.
- Run
brew install gradle
- Run
cd zanata-overlay && gradle
unzip target/zanata-*-wildfly*.zip -d $JBOSS_HOME
cd $JBOSS_HOME/bin/zanata-installer
chmod +x install.sh
./install.sh
This will prompt you for database configuration detailscp -r <zanata-server-repo-dir>/zanata-war/target/zanata-<version>.war $JBOSS_HOME/standalone/deployments/zanata.war
$JBOSS_HOME/bin/standalone.sh
- go to
localhost:8080/zanata
- Create an account
- Run
UPDATE HAccount SET enabled = true WHERE username = 'myusername';
in mysql - Then run
insert into HAccountMembership(accountId, memberOf) values((select id from HAccount where username = 'myusername'), (select id from HAccountRole where name = 'admin'));
in mysql.
unzip $JBOSS_HOME/standalone/deployments/zanata.war -d zanatawar && rm zanata.war && mv zanatawar zanata.war
Turn zanata.war into a directorynpm run build && cp -r <spa-directory>/build/* $JBOSS_HOME/standalone/deployments/zanata.war/app