<commit_before># installation concepts

## environment

 * `CATALINA_HOME`  : tomcat installation
 * `ASIO_BASE`      : asio binaries
 * `ASIO_HOME`      : asio configuration folders (?)

## deploying

### explicit

`${ASIO_BASE}/bin/asio deploy [name] [path/to/config.ttl]`

* how to pass additional parameters?

### central config folder

`${ASIO_BASE}/bin/asio deploy [name]`

* will expect to find /[name]/config.ttl and /[name]/asio.properties at `ASIO_HOME`
* can be used to redeploy a dataset
* asio could watch `ASIO_HOME` for config changes

## undeploying

`${ASIO_BASE}/bin/asio undeploy [name]`<commit_msg>+ deployment script thoughts<commit_after># installation concepts

## environment

 * `CATALINA_HOME`  : tomcat installation
 * `ASIO_BASE`      : asio binaries
 * `ASIO_HOME`      : asio configuration folders (?)

## management script

### commands

* `${ASIO_BASE}/bin/asio deploy [name] [path/to/config.ttl]`
* `${ASIO_BASE}/bin/asio undeploy [name]`
* [optional] `${ASIO_BASE}/bin/asio reload [name]`

### implementation

* copy mapping file (`config.ttl`) to `${ASIO_HOME}/[name]/config.ttl`
* [optional] write settings to `${ASIO_HOME}/[name]/asio.properties`
* [optional] asio could watch `${ASIO_HOME}/[name]/` for config changes
* [possibly] create `${ASIO_HOME}/[name]/context.xml` from template
* invoke `http://localhost:${TOMCAT_PORT}/manager/text/deploy?config=file:/${CONTEXT.XML}&war=${ASIO_BASE}/asio.war`
  to deploy the web application

## asio parameterization

### convention
webapp searches config in `${ASIO_HOME}/[context-name]/` (-> use `ServletContext.getContextPath()`)

### JNDI
use `java:comp/env/asio/home` to access path to configuration folder (-> use tomcat `context.xml` to define
separate JNDI resources for each deployed webapp)
{'fraction_non_alphanumeric': 0.1520763187429854, 'fraction_numerical': 0.0, 'mean_word_length': 5.0033670033670035, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7200736', 'n_tokens_mistral': 600, 'n_tokens_neox': 580, 'n_words': 151}