Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master' into cdi-prep
Browse files Browse the repository at this point in the history
Conflicts:
	zanata-war/src/main/java/org/zanata/notification/NotificationManager.java
  • Loading branch information
seanf committed Mar 30, 2015
2 parents b2e94a8 + 490b014 commit 8a8b0fd
Show file tree
Hide file tree
Showing 172 changed files with 6,449 additions and 1,379 deletions.
325 changes: 0 additions & 325 deletions CHANGELOG.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/configuration/authentication.md
Expand Up @@ -206,7 +206,6 @@ standalone.xml:

### Single Provider

_( As of version 3.5.1 )_
It's possible to configure Zanata to use a single pre-defined Open Id authentication provider. To do this, just add an extra `module-option` to the `login-module` element, like this:

```xml
Expand Down
47 changes: 9 additions & 38 deletions docs/configuration/infinispan.md
@@ -1,11 +1,6 @@
# Infinispan
# Infinispan for caching

_This section is still under review and is about features that have not been released yet_

Zanata uses Infinispan to manage its internal data caches and search indexes. Configuration for these caches happens in JBoss' `standalone/configuration/standalone.xml`. There are two different caches that need to be configured for Zanata:

1. Hibernate search Indexes
1. Other internal data caches
Zanata uses Infinispan to manage some of its internal data caches. Configuration for these caches happens in JBoss' `standalone/configuration/standalone.xml`.

The Infinispan configuration will be located inside the following module in `standalone.xml`:

Expand All @@ -17,40 +12,14 @@ The Infinispan configuration will be located inside the following module in `sta

Keep in mind that the module version may vary depending on your JBoss version.

### Hibernate Cache

The following is the recommended configuration for the Hibernate cache:
### Configuration for Internal data caches

```xml
...
<cache-container name="hibernate" default-cache="local-query" jndi-name="java:jboss/infinispan/container/hibernate" start="EAGER" module="org.jboss.as.jpa.hibernate:4">
<local-cache name="entity">
<transaction mode="NON_XA"/>
<eviction strategy="LRU" max-entries="10000"/>
<expiration max-idle="100000"/>
</local-cache>
<local-cache name="local-query">
<transaction mode="NONE"/>
<eviction strategy="LRU" max-entries="10000"/>
<expiration max-idle="100000"/>
</local-cache>
<local-cache name="timestamps">
<transaction mode="NONE"/>
<eviction strategy="NONE"/>
</local-cache>
</cache-container>
...
```

Depending on your JBoss installation, the hibernate cache might already be present in the configuration, in which case there is no need to create another one, but just modify it.

### Other internal data caches

```xml
...
<cache-container name="zanata" default-cache="default" jndi-name="java:jboss/infinispan/container/zanata"
start="EAGER"
module="org.jboss.as.clustering.web.infinispan">
<cache-container name="zanata" default-cache="default"
jndi-name="java:jboss/infinispan/container/zanata"
start="EAGER"
module="org.jboss.as.clustering.web.infinispan">
<local-cache name="default">
<transaction mode="NON_XA"/>
<eviction strategy="LRU" max-entries="10000"/>
Expand All @@ -59,3 +28,5 @@ Depending on your JBoss installation, the hibernate cache might already be prese
</cache-container>
...
```

*Please see the JBoss EAP or Wildfly documentation for more options on cache configuration.*
109 changes: 109 additions & 0 deletions docs/configuration/installation.md
@@ -0,0 +1,109 @@
Zanata can be installed by downloading a web archive (war) file, and configuring Jboss EAP or Wildfly according to this guide, or by downloading a handy installer.

## What you need

- JBoss Enterprise Application Platform 6.3 (EAP). This is the recommended container for Zanata, and it can be [downloaded here](http://www.jboss.org/jbossas/downloads/).
- ... OR Wildfly (recommended version is 8.1.x) which can be [downloaded here](http://wildfly.org/downloads/)
- A suitable MySQL database. This is NOT included in the Zanata archive. You can [download MySQL here](http://dev.mysql.com/downloads/mysql/).
- An email (SMTP) server to perform certain notifications.
- JDK version 7 or later (7 is recommended for EAP as it is not yet certified to run against Java 8). [OpenJDK](http://openjdk.java.net/install/) is recommended, but you can also download [Oracle's JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html)

The following packages are optional, but recommended:

- clamav for virus protection.

## Setting up the Zanata Database

1. Download and install MySQL 5 from the [MySQL download page](http://dev.mysql.com/downloads/mysql/).
Zanata has been thoroughly tested against MySQL 5 and the Zanata team therefore recommends that you install and use this version with Zanata.

1. Start MySQL service and create a database schema for Zanata.
`CREATE DATABASE zanata /**!40100 DEFAULT CHARACTER SET utf8 **/;`

## Installing Zanata

You can run Zanata on JBoss EAP 6 or Wildfly. Just download one of the installer archives below for your platform, and then extract it on top of your JBoss or Wildfly installation.

- [Zanata for JBoss EAP](http://sourceforge.net/projects/zanata/files/installer/zanata-3.6.0-eap-6.zip/download)
- [Zanata for Wildfly](http://sourceforge.net/projects/zanata/files/installer/zanata-3.6.0-wildfly-8.1.zip/download)

## Run the installer

Zanata comes bundled with an installer that helps with some of the initial setup. Simply run the following commands on a shell terminal:

```sh
$ cd <JBOSS>/bin/zanata-installer
$ ./install.sh
```

(there's also a .bat file if you are on Windows) The installation script will start asking some configuration questions. It will also download the Zanata web application and place it in the JBoss installation.

## Some advanced configuration

Zanata does not create an admin user by default. You need to register specific users to have administrative privileges.

1. Open the `<JBOSS>/standalone/configuration/standalone.xml` file.

1. Locate the following line, and replace `admin` with a comma-separated list of users that require administrator privileges on the system.

```xml
<simple name="java:global/zanata/security/admin-users" value="admin"/>
```

1. Register a user under the name "admin", and it will automatically have administrator privileges. Any number of users may be added to this list in a comma-separated format.

1. In the same file, configure other properties to your particular setup by adding more lines if necessary. The following properties must be configured in order for Zanata to run properly:
```xml
<simple name="java:global/zanata/email/default-from-address" value="admin@example.com"/>
```

This is the default email address that will appear as the sender on Zanata emails.

1. The following properties relate to the SMTP email server that Zanata uses to send emails. It defaults to a locally installed server using port 25. Add values to suit your configuration. If a particular property does not apply to the email server being used, you can comment it out or remove it completely.

```xml
<simple name="java:global/zanata/smtp/host" value="" />
<simple name="java:global/zanata/smtp/port" value="" />
<simple name="java:global/zanata/smtp/username" value="" />
<simple name="java:global/zanata/smtp/password" value="" />
<simple name="java:global/zanata/smtp/tls" value="" />
<simple name="java:global/zanata/smtp/ssl" value="" />
```

## Installing virus scanner (optional)

To prevent virus infected document being uploaded, Zanata is capable of working with clamav.
If clamav is not installed, a warning will be logged when files are uploaded.
If clamav is installed but `clamd` is not running,
Zanata may reject all uploaded files (depending on file type). To install and run clamav:
```
# Assuming the function install_missing() is still available
if [ -e /usr/bin/systemctl ];then
install_missing clamav-server clamav-scanner-systemd
sudo systemctl enable clamd@scan
sudo systemctl start clamd@scan
else
install_missing clamd
sudo chkconfig clamd on
if ! service clamd status ;then
sudo service clamd start
fi
fi
```

You should probably also ensure that freshclam is set to run at least once per day,
to keep virus definitions up to date.
The clamav package will probably do this for you, but you can check by looking for `/etc/cron.daily/freshclam`.
To override the default behaviour above, you can set the system property `virusScanner` when running the server.
`DISABLED` means no virus scanning will be performed; all files will be assumed safe.
Any other value will be treated as the name of a virus scanner command: the command will be called with the name of a file to scan.

## Running Zanata

Go to the `<JBOSS>/bin` directory and run the `standalone.sh` (Linux, Mac) or `standalone.bat` (Windows) file.

## Using Zanata

To start using your Zanata server, open a browser and navigate to `http://localhost:8080/zanata`

You can now upload some source strings and start translating. To get started, see [Adding Source Strings](user-guide/projects/upload-strings).
Binary file added docs/images/project-view-versions.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/version-merge-trans-cancel.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/version-merge-trans-dialog.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/version-merge-trans-progress.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/version-more-action-menu.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/version-view-languages.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 6 additions & 15 deletions docs/index.md
@@ -1,31 +1,22 @@
Zanata Server
=============

TBD

Features
--------

- TBD
Please visit [About|Zanata](http://zanata.org/about/)

Installation
------------

<!-- For installation instructions please see the [Installation Section](installation) -->
[Installation section](configuration/installation.md)

Contribute
----------

- Issue Tracker: http://bugzilla.redhat.com
- Source Code: github.com/zanata/zanata-server
- [Issue Tracker](http://bugzilla.redhat.com/buglist.cgi?product=Zanata)
- [Source Code on GitHub](http://github.com/zanata)

Support
-------

If you are having issues, please let us know.
We have a mailing list located at: zanata-users@redhat.com
For help and support options, see [Help|Zanata](http://zanata.org/help/)

License
-------

<!-- The project is licensed under the BSD license. -->
Zanata is Free software, licensed under the [LGPL](http://www.gnu.org/licenses/lgpl-2.1.html).

0 comments on commit 8a8b0fd

Please sign in to comment.