<commit_before>FROM java:openjdk-8u72-jdk

MAINTAINER <EMAIL>
LABEL version="1.0"
LABEL description="Ionic 2 development environment sans XCode"
LABEL github="https://github.com/Hotshotsteam/ionic2-up"

ENV LANG C.UTF-8

RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -

RUN apt-get update && apt-get install -y --no-install-recommends \
      nodejs \
      unzip \
      lib32z1 \
      lib32ncurses5 \
      lib32stdc++6 \
    && apt-get clean && \
    rm -rf /var/lib/apt/lists/*

RUN mkdir $HOME/install && \
    ANDROID_HOME=$HOME/android && \
    SDK='https://dl.google.com/android/repository' && \
    echo \
      http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz \
      $SDK/platform-tools_r23.1.0-linux.zip \
      $SDK/tools_r25.1.6-linux.zip \
      $SDK/build-tools_r23.0.3-linux.zip \
      | tr " " "\n" \
      | wget -q -P $HOME/install -i - && \
    tar zxvf $HOME/install/android-sdk_r24.4.1-linux.tgz -C $HOME/install && \
    mv $HOME/install/android-sdk-linux $ANDROID_HOME && \
    rm -Rf $ANDROID_HOME/tools && \
    mkdir -p $ANDROID_HOME/build-tools && \
    mkdir -p $ANDROID_HOME/platforms && \
    unzip "$HOME/install/*.zip" -d $ANDROID_HOME && \
    mv $ANDROID_HOME/android-6.0 $ANDROID_HOME/build-tools/23.0.3 && \
    wget -q $SDK/platform-23_r03.zip -P $HOME/install && \
    unzip $HOME/install/platform-23_r03.zip -d $ANDROID_HOME && \
    mv $ANDROID_HOME/android-6.0 $ANDROID_HOME/platforms/android-23 && \
    rm -Rf $HOME/install && \
    printf \
      "\nANDROID_HOME=\$HOME/android\nPATH=\$PATH:\$ANDROID_HOME/platform-tools:\$ANDROID_HOME/tools\nexport ANDROID_HOME\n" \
      >> $HOME/.bashrc

ADD ./70-android.rules /etc/udev/rules.d/70-android.rules

RUN npm install cordova

RUN npm install -g ionic@2.0.0-beta.25

WORKDIR /project

EXPOSE 8100 35792 5037<commit_msg>Docker: Added ENV for android paths<commit_after>FROM java:openjdk-8u72-jdk

MAINTAINER <EMAIL>
LABEL version="1.0"
LABEL description="Ionic 2 development environment sans XCode"
LABEL github="https://github.com/Hotshotsteam/ionic2-up"

ENV LANG C.UTF-8

RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -

RUN apt-get update && apt-get install -y --no-install-recommends \
      nodejs \
      unzip \
      lib32z1 \
      lib32ncurses5 \
      lib32stdc++6 \
    && apt-get clean && \
    rm -rf /var/lib/apt/lists/*

RUN mkdir $HOME/install && \
    ANDROID_HOME=$HOME/android && \
    SDK='https://dl.google.com/android/repository' && \
    echo \
      http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz \
      $SDK/platform-tools_r23.1.0-linux.zip \
      $SDK/tools_r25.1.6-linux.zip \
      $SDK/build-tools_r23.0.3-linux.zip \
      | tr " " "\n" \
      | wget -q -P $HOME/install -i - && \
    tar zxvf $HOME/install/android-sdk_r24.4.1-linux.tgz -C $HOME/install && \
    mv $HOME/install/android-sdk-linux $ANDROID_HOME && \
    rm -Rf $ANDROID_HOME/tools && \
    mkdir -p $ANDROID_HOME/build-tools && \
    mkdir -p $ANDROID_HOME/platforms && \
    unzip "$HOME/install/*.zip" -d $ANDROID_HOME && \
    mv $ANDROID_HOME/android-6.0 $ANDROID_HOME/build-tools/23.0.3 && \
    wget -q $SDK/platform-23_r03.zip -P $HOME/install && \
    unzip $HOME/install/platform-23_r03.zip -d $ANDROID_HOME && \
    mv $ANDROID_HOME/android-6.0 $ANDROID_HOME/platforms/android-23 && \
    rm -Rf $HOME/install && \
    printf \
      "\nANDROID_HOME=\$HOME/android\nPATH=\$PATH:\$ANDROID_HOME/platform-tools:\$ANDROID_HOME/tools\nexport ANDROID_HOME\n" \
      >> $HOME/.bashrc

ADD ./70-android.rules /etc/udev/rules.d/70-android.rules

ENV ANDROID_HOME $HOME/android

ENV PATH $ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$PATH

RUN npm install cordova

RUN npm install -g ionic@2.0.0-beta.25

WORKDIR /project

EXPOSE 8100 35792 5037
{'fraction_non_alphanumeric': 0.1595043501186396, 'fraction_numerical': 0.041128394410756657, 'mean_word_length': 2.6133333333333333, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 6, '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': '745182', 'n_tokens_mistral': 1601, 'n_tokens_neox': 1502, 'n_words': 246}