<commit_before># This Dockerfile is to build a container
# in order to run a standalone Ironic with bifrost
FROM ubuntu:14.04
MAINTAINER <EMAIL>
# To be launched with docker build . in the dir containing this file
ENV DEBIAN_FRONTEND noninterative
# In case of proxy usage
ENV http_proxy http://web-proxy.fra.hp.com:8080
ENV https_proxy http://web-proxy.fra.hp.com:8080
RUN apt-get update
RUN apt-get -y install python-mock git openssh-client libpython2.7-dev python-oslotest  python-pip bash perl sudo libyaml-cpp-dev
# Optional
RUN apt-get update
RUN apt-get -y install vim-runtime strace libyaml-dev
# COnfigure a sngle use to launch operations
ENV BIFROST_UID bruno
RUN useradd -m $BIFROST_UID
RUN chown -R $BIFROST_UID /usr/local
# Configure sudo for bifrost
RUN echo "$BIFROST_UID   ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
# In case of proxy usage
RUN echo 'Defaults    env_keep += "no_proxy http_proxy https_proxy ftp_proxy"' >> /etc/sudoers
COPY launch-bifrost.sh /home/$BIFROST_UID/launch-bifrost.sh
RUN chmod 755 /home/$BIFROST_UID/launch-bifrost.sh
RUN su - $BIFROST_UID -c "./launch-bifrost.sh $http_proxy $https_proxy"
CMD /bin/bash<commit_msg>Avoid modifying /etc/hosts by bifrost<commit_after># This Dockerfile is to build a container
# in order to run a standalone Ironic with bifrost
FROM ubuntu:14.04
MAINTAINER <EMAIL>
# To be launched with docker build . in the dir containing this file
ENV DEBIAN_FRONTEND noninterative
# In case of proxy usage
ENV http_proxy http://web-proxy.fra.hp.com:8080
ENV https_proxy http://web-proxy.fra.hp.com:8080
RUN apt-get update
RUN apt-get -y install python-mock git openssh-client libpython2.7-dev python-oslotest  python-pip bash perl sudo libyaml-cpp-dev
# Optional
RUN apt-get update
RUN apt-get -y install vim-runtime strace libyaml-dev
# COnfigure a sngle use to launch operations
ENV BIFROST_UID bruno
RUN useradd -m $BIFROST_UID
RUN chown -R $BIFROST_UID /usr/local
# Configure sudo for bifrost
RUN echo "$BIFROST_UID   ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
# In case of proxy usage
RUN echo 'Defaults    env_keep += "no_proxy http_proxy https_proxy ftp_proxy"' >> /etc/sudoers
COPY launch-bifrost.sh /home/$BIFROST_UID/launch-bifrost.sh
RUN chmod 755 /home/$BIFROST_UID/launch-bifrost.sh
# Kudos to https://github.com/docker/docker/issues/10324 to have the 
# possibility to modify /etc/hosts
RUN echo "127.0.0.1 $HOSTNAME localhost" >> /etc/hosts ; su - $BIFROST_UID -c "./launch-bifrost.sh $http_proxy $https_proxy"
CMD /bin/bash
{'fraction_non_alphanumeric': 0.09174679487179487, 'fraction_numerical': 0.018028846153846152, 'mean_word_length': 4.440087145969499, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '1600955', 'n_tokens_mistral': 946, 'n_tokens_neox': 866, 'n_words': 286}