<commit_before>#!/bin/bash
set -x

# update and install package(s)
sudo apt-get -qq update
sudo apt-get -qq install unzip

# Add ubuntu to docker group
sudo usermod -G docker ubuntu

# Restart docker service
sudo service docker restart

# Get docker-compose
curl -L \
https://github.com/docker/compose/releases/download/1.5.2/docker-compose-`uname -s`-`uname -m` \
      > docker-compose
sudo mv docker-compose /usr/local/bin/
sudo chmod +x /usr/local/bin/docker-compose

# Get the git repositories we will want to work with
mkdir -p /home/ubuntu/git
git clone https://github.com/Unidata/Unidata-Dockerfiles \
    /home/ubuntu/git/Unidata-Dockerfiles
git clone https://github.com/Unidata/TdsConfig /home/ubuntu/git/TdsConfig

# Create LDM directories
mkdir -p ~/var/logs 
mkdir -p ~/etc/TDS

# Copy various files for the LDM.
cp ~/git/Unidata-Dockerfiles/ldm/etc/netcheck.conf ~/etc

cp ~/git/Unidata-Dockerfiles/ams2016/ldmd.conf ~/etc/

cp ~/git/Unidata-Dockerfiles/ams2016/registry.xml ~/etc/

cp ~/git/Unidata-Dockerfiles/ams2016/scour.conf ~/etc/

# Set up LDM and TDS configuration
mkdir -p ~/tdsconfig/
cp ~/git/TdsConfig/idd/config.zip ~/tdsconfig/
unzip ~/tdsconfig/config.zip -d ~/tdsconfig/
cp -r ~/tdsconfig/pqacts/* ~/etc/TDS

# Set up data directories
sudo ln -s /mnt /data
sudo mkdir /mnt/ldm/
sudo chown -R ubuntu:docker /data/ldm
sudo mkdir /mnt/repository/
sudo chown -R ubuntu:docker /data/repository

# Create Tomcat logging directories
mkdir -p ~/logs/ramadda-tomcat
mkdir -p ~/logs/tds-tomcat

# Create RAMADDA default password
echo <PASSWORD>adda.install.password=<PASSWORD>! > /data/repository/pw.properties<commit_msg>forgot to tangle<commit_after>#!/bin/bash
set -x

# update and install package(s)
sudo apt-get -qq update
sudo apt-get -qq install unzip

# Add ubuntu to docker group
sudo usermod -G docker ubuntu

# Restart docker service
sudo service docker restart

# Get docker-compose
curl -L \
https://github.com/docker/compose/releases/download/1.5.2/docker-compose-`uname -s`-`uname -m` \
      > docker-compose
sudo mv docker-compose /usr/local/bin/
sudo chmod +x /usr/local/bin/docker-compose

# Get the git repositories we will want to work with
mkdir -p /home/ubuntu/git
git clone https://github.com/Unidata/Unidata-Dockerfiles \
    /home/ubuntu/git/Unidata-Dockerfiles
git clone https://github.com/Unidata/TdsConfig /home/ubuntu/git/TdsConfig

# Create LDM directories
mkdir -p ~/var/logs 
mkdir -p ~/etc/TDS

# Copy various files for the LDM.
cp ~/git/Unidata-Dockerfiles/ldm/etc/netcheck.conf ~/etc

cp ~/git/Unidata-Dockerfiles/ams2016/ldmd.conf ~/etc/

cp ~/git/Unidata-Dockerfiles/ams2016/registry.xml ~/etc/

cp ~/git/Unidata-Dockerfiles/ams2016/scour.conf ~/etc/

# Set up LDM and TDS configuration
mkdir -p ~/tdsconfig/
cp ~/git/TdsConfig/idd/config.zip ~/tdsconfig/
unzip ~/tdsconfig/config.zip -d ~/tdsconfig/
cp -r ~/tdsconfig/pqacts/* ~/etc/TDS

# Set up data directories
sudo ln -s /mnt /data
sudo mkdir /mnt/ldm/
sudo chown -R ubuntu:docker /data/ldm
sudo mkdir /mnt/repository/
sudo chown -R ubuntu:docker /home/ubuntu/repository

# Create Tomcat logging directories
mkdir -p ~/logs/ramadda-tomcat
mkdir -p ~/logs/tds-tomcat

# Create RAMADDA default password
echo ramadda.install.password=<PASSWORD>! > /home/ubuntu/repository/pw.properties
{'fraction_non_alphanumeric': 0.12742718446601942, 'fraction_numerical': 0.009101941747572815, 'mean_word_length': 3.6371308016877637, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 10, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6398037', 'n_tokens_mistral': 1358, 'n_tokens_neox': 1227, 'n_words': 319}