<commit_before>docker-atom
-----------
*NB* This *doesn't* work now for reasons that I'm not entirely sure of. It works when you bring up each container outside of Compose, so eventually I'll branch this off and make an annoying non-Compose method. If *you* know why it doesn't work, please submit a pull request!! Thanks.


This is a [Docker](http://docker.com) [Compose](https://docs.docker.com/compose/) recipe for [Artefactual](http://www.artefactual.com/)'s [Access To Memory](http://www.artefactual.com/services/atom-2/) software. 

Note that I've only tested this on 64bit native Linux using Docker directly, so if you're using [boot2docker](https://github.com/boot2docker/boot2docker) or a VM things might be different.

To use:

1. Clone this repo.
2. Install [Docker and Docker Compose](http://docs.docker.com/compose/install/)
3. in the repo directory, run ```docker-compose up```
4. Watch things build! Fun!
5. Wait a titch after everything's finished building. A few seconds should do it.
6. Visit port 8000 in whatever machine you've run docker on, e.g., http://localhost:8000.
7. Fill in the web config fields! For the database portion, it's ```atom``` for the database, ```atom``` for the user, ```worstpass``` for the password. Be sure to go to advanced config and change your server from ```localhost``` to ```db```. For Elasticsearch, the server name is ```es```.
8. It'll take around a minute for AtoM to shake itself out.
9. Fill in your site information, go to your new site.
10. Note that there is a bug with php5-fpm - after your new site comes up, the "Browse By" links on the left may be nonfunctional -- you may get 500 errors. To fix that, run the following line in a new shell or terminal window:

```docker exec dockeratom_nginx_1 service php5-fpm stop```

Note that the container name (```dockeratom_nginx_1```) might be different in your setup. Run ```docker ps```  to figure out what the name of your nginx container is.

Share and enjoy! 

Note: This is meant for development and testing purposes only. Don't try to run AtoM in production with Docker Compose.

If you dig into the directories and change things (like the atom database password or user) be sure to execute ```docker-compose rm``` followed by ```docker-compose build``` before you do another ```docker-compose up```


Unless otherwise indicated, anything written by jbfink is in the Public Domain (see UNLICENSE). Software that I may incorporate (e.g. AtoM) is licensed seperately.
<commit_msg>More explication.<commit_after>docker-atom
-----------
*NB* This *doesn't* work now for reasons that I'm not entirely sure of. It works when you bring up each container outside of Compose, so eventually I'll branch this off and make an annoying non-Compose method. If *you* know why it doesn't work, please submit a pull request!! Thanks.


This is a [Docker](http://docker.com) [Compose](https://docs.docker.com/compose/) recipe for [Artefactual](http://www.artefactual.com/)'s [Access To Memory](http://www.artefactual.com/services/atom-2/) software. 

Note that I've only tested this on 64bit native Linux using Docker directly, so if you're using [boot2docker](https://github.com/boot2docker/boot2docker) or a VM things might be different.

To use:

1. Clone this repo.
2. Install [Docker and Docker Compose](http://docs.docker.com/compose/install/)
3. in the repo directory, run ```docker-compose up```
4. Watch things build! Fun!
5. Wait a titch after everything's finished building. A few seconds should do it.
6. Visit port 8000 in whatever machine you've run docker on, e.g., http://localhost:8000.
7. Fill in the web config fields! For the database portion, it's ```atom``` for the database, ```atom``` for the user, ```worstpass``` for the password. Be sure to go to advanced config and change your server from ```localhost``` to ```db```. For Elasticsearch, the server name is ```es```.
8. It'll take around a minute for AtoM to shake itself out.
9. Fill in your site information, go to your new site.
10. Note that there is a bug with php5-fpm - after your new site comes up, the "Browse By" links on the left may be nonfunctional -- you may get 500 errors. To fix that, run the following line in a new shell or terminal window:

```docker exec dockeratom_nginx_1 service php5-fpm stop```

Note that the container name (```dockeratom_nginx_1```) might be different in your setup. Run ```docker ps```  to figure out what the name of your nginx container is. Also, this does stop FPM but supervisord will immediately start FPM again, so don't be put off by the "stop" there in the ``service``` command.

Share and enjoy! 

Note: This is meant for development and testing purposes only. Don't try to run AtoM in production with Docker Compose.

If you dig into the directories and change things (like the atom database password or user) be sure to execute ```docker-compose rm``` followed by ```docker-compose build``` before you do another ```docker-compose up```


Unless otherwise indicated, anything written by jbfink is in the Public Domain (see UNLICENSE). Software that I may incorporate (e.g. AtoM) is licensed seperately.

{'fraction_non_alphanumeric': 0.1024542267238021, 'fraction_numerical': 0.012465913517724971, 'mean_word_length': 4.255885363357216, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, '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': '843358', 'n_tokens_mistral': 1526, 'n_tokens_neox': 1411, 'n_words': 752}