<commit_before><commit_msg>Commands for afternoon<commit_after>
# Registry testen
docker login devspace.ff-solutions.de:5001

# Gitlab Runner starten
mkdir /vagrant/docker-runner-data
touch /vagrant/docker-runner-data/config.toml

docker run -d \
    --name docker-runner \
    --network gitlab-net \
    --restart always \
    --dns 172.18.0.7 \
    -v /vagrant/docker-runner-data/config.toml:/etc/gitlab-runner/config.toml \
    -v /var/run/docker.sock:/var/run/docker.sock \
    gitlab/gitlab-runner:v10.0.2

# Gitlab Runner registrieren
docker exec -it docker-runner gitlab-runner register --non-interactive --name docker --url https://devspace.ff-solutions.de --registration-token <PASSWORD> --executor docker --tag-list docker --docker-image alpine:latest --docker-dns 172.18.0.7 --docker-network-mode gitlab-net --docker-volumes /var/run/docker.sock:/var/run/docker.sock


# Firewall Server Box konfigurieren
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080

# Rancher starten
docker run -d -v ~/rancher-data:/var/lib/mysql --restart=unless-stopped --network gitlab-net -p 8080:8080 rancher/server:v1.6.10

{'fraction_non_alphanumeric': 0.1381118881118881, 'fraction_numerical': 0.03496503496503497, 'mean_word_length': 3.240740740740741, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5732885', 'n_tokens_mistral': 460, 'n_tokens_neox': 404, 'n_words': 90}