<commit_before>#!/bin/bash
# 
# This script install docker 
# arch user should start docker server by systemctl
#
# CreateDate: 2015/12/10
# ChangeDate: 2015/12/10
# Author <NAME>
# Email <EMAIL>
source $GENPATH/lib/package.sh

is_archlinux

if [ $? -eq 0 ]; then
    install_packages docker
else
    curl -sSL https://get.daocloud.io/docker | sh
fi

gpasswd -a $INIT_USER docker
    
#to install docker-compose
curl -L https://github.com/docker/compose/releases/download/1.8.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose


<commit_msg>modify docker.sh to use office approach<commit_after>#!/bin/bash
# 
# This script install docker 
# arch user should start docker server by systemctl
#
# CreateDate: 2015/12/10
# ChangeDate: 2015/12/10
# Author <NAME>
# Email <EMAIL>
source $GENPATH/lib/package.sh

is_archlinux

if [ $? -eq 0 ]; then
    install_packages docker
else
    remove_package 0 docker docker-engine docker.io
    # only for ubuntu
    install_packages apt-transport-https ca-certificates curl software-properties-common

    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

    update_packages

    install_packages docker-ce

    curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose

    chmod +x /usr/local/bin/docker-compose
fi

gpasswd -a $INIT_USER docker
{'fraction_non_alphanumeric': 0.12419974391805377, 'fraction_numerical': 0.028169014084507043, 'mean_word_length': 3.5835777126099706, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2307654', 'n_tokens_mistral': 615, 'n_tokens_neox': 536, 'n_words': 132}