<commit_before>FROM centos:6

MAINTAINER IoT team

RUN yum update -y && yum install -y wget
RUN wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
RUN yum localinstall -y --nogpgcheck epel-release-6-8.noarch.rpm

RUN yum -y install rpm-build
RUN yum -y install python git python-pip python-devel python-virtualenv gcc ssh
RUN yum install -y openstack-utils openstack-keystone python-keystoneclient
RUN yum install -y wget unzip nc jq 
RUN yum install -y cracklib cracklib-python

RUN sudo yum -y install mysql-server mysql
RUN sudo service mysqld start
<commit_msg>add mysql config<commit_after>FROM centos:6

MAINTAINER IoT team

RUN yum update -y && yum install -y wget
RUN wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
RUN yum localinstall -y --nogpgcheck epel-release-6-8.noarch.rpm

RUN yum -y install mysql-server mysql
RUN service mysqld start

RUN yum -y install rpm-build
RUN yum -y install python git python-pip python-devel python-virtualenv gcc ssh
RUN yum install -y openstack-utils openstack-keystone python-keystoneclient
RUN yum install -y wget unzip nc jq 
RUN yum install -y cracklib cracklib-python




RUN openstack-config --set /etc/keystone/keystone.conf \
    database connection mysql://keystone:keystone@localhost/keystone

RUN openstack-config --set /etc/keystone/keystone.conf \
    DEFAULT admin_token ADMIN

RUN openstack-config --set /etc/keystone/keystone.conf \
    DEFAULT public_port 5001

RUN openstack-config --set /etc/keystone/keystone.conf \
    os_inherit enabled true

RUN openstack-config --set /etc/keystone/keystone.conf \
    token provider keystone.token.providers.uuid.Provider

RUN echo "CREATE DATABASE keystone; GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' \
  IDENTIFIED BY 'keystone'; GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' \
  IDENTIFIED BY 'keystone';" | /usr/bin/mysql -u root

RUN keystone-manage db_sync keystone


RUN keystone-manage pki_setup --keystone-user keystone --keystone-group keystone
RUN chown -R keystone:keystone /etc/keystone/ssl
RUN chmod -R o-rwx /etc/keystone/ssl

RUN service openstack-keystone start

RUN chkconfig openstack-keystone on

{'fraction_non_alphanumeric': 0.08752834467120181, 'fraction_numerical': 0.010884353741496598, 'mean_word_length': 3.957303370786517, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6901871', 'n_tokens_mistral': 825, 'n_tokens_neox': 745, 'n_words': 234}