<commit_before>#!/bin/bash
#
# This script can be used to start a minimal set of containers that allows
# you to boot an instance.  Note that it requires that you have some openstack
# clients available: keystone, glance, and nova, as well as mysql to ensure
# services are up.  You will also need these in order to interact with the
# installation once started.

# Set SELinux to permissive
setenforce permissive

# This directory is shared with the host to allow qemu instance
# configs to remain accross restarts.  This is needed in the event libvirt
# is not installed in the system.
mkdir -p /etc/libvirt/qemu

# This should probably go into nova-networking or nova-compute containers.
# but you can't modprobe from a container for some reason
modprobe ebtables

MY_IP=$(ip route get $(ip route | awk '$1 == "default" {print $3}') |
    awk '$4 == "src" {print $5}')

# Source openrc for commands
source openrc

echo Starting rabbitmq.
docker-compose -f rabbitmq.yml up -d
<commit_msg>Check for root privilege in start.sh<commit_after>#!/bin/bash
#
# This script can be used to start a minimal set of containers that allows
# you to boot an instance.  Note that it requires that you have some openstack
# clients available: keystone, glance, and nova, as well as mysql to ensure
# services are up.  You will also need these in order to interact with the
# installation once started.

if [[ $EUID -ne 0 ]]; then
    echo "You must execute this script as root." 1>&2
    exit 1
fi

# Set SELinux to permissive
setenforce permissive

# This directory is shared with the host to allow qemu instance
# configs to remain accross restarts.  This is needed in the event libvirt
# is not installed in the system.
mkdir -p /etc/libvirt/qemu

# This should probably go into nova-networking or nova-compute containers.
# but you can't modprobe from a container for some reason
modprobe ebtables

MY_IP=$(ip route get $(ip route | awk '$1 == "default" {print $3}') |
    awk '$4 == "src" {print $5}')

# Source openrc for commands
source openrc

echo Starting rabbitmq.
docker-compose -f rabbitmq.yml up -d

{'fraction_non_alphanumeric': 0.07384468794664126, 'fraction_numerical': 0.005717008099094807, 'mean_word_length': 3.918032786885246, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1824904', 'n_tokens_mistral': 633, 'n_tokens_neox': 605, 'n_words': 314}