<commit_before>{
  "variables": {
    "git_sha": "GIT_SHA",
    "account_file": "",
    "project_id": "null"
  },
  "builders": [
    {
      "type": "googlecompute",
      "account_file": "{{user `account_file`}}",
      "project_id": "{{user `project_id`}}",
      "source_image": "ubuntu-1410-utopic-v20150202",
      "zone": "us-central1-a",
      "image_name": "redmine-{{timestamp}}-{{user `git_sha`}}"
    },
    {
      "type": "docker",
      "image": "ubuntu:14.10",
      "commit": "true" 
    }
  ],
  "provisioners": [
    {
      "type": "chef-solo",
      "install_command": "apt-get install -y curl && curl -L https://www.opscode.com/chef/install.sh | {{if .Sudo}}sudo{{end}} bash",
      "cookbook_paths": ["chef/site-cookbooks"],
      "run_list": [
        "recipe[rails-sample]",
        "recipe[rails-sample::user]",
        "recipe[rails-sample::ruby]",
        "recipe[rails-sample::app]"
      ]
    }
  ],
  "post-processors": [
        [
            {
                "type": "docker-tag",
                "repository": "gcr.io/{{user `project_id`}}/redmine",
                "tag": "{{user `git_sha`}}",
                "only": ["docker"]
            }
        ]
    ]
}<commit_msg>Packer images use git sha and branch for naming<commit_after>{
  "variables": {
    "git_commit": "",
    "git_branch": "",
    "account_file": "",
    "project_id": "null"
  },
  "builders": [
    {
      "type": "googlecompute",
      "account_file": "{{user `account_file`}}",
      "project_id": "{{user `project_id`}}",
      "source_image": "ubuntu-1410-utopic-v20150202",
      "zone": "us-central1-a",
      "image_name": "redmine-{{timestamp}}-{{user `git_branch`}}-{{user `git_commit`}}"
    },
    {
      "type": "docker",
      "image": "ubuntu:14.10",
      "commit": "true" 
    }
  ],
  "provisioners": [
    {
      "type": "chef-solo",
      "install_command": "apt-get install -y curl && curl -L https://www.opscode.com/chef/install.sh | {{if .Sudo}}sudo{{end}} bash",
      "cookbook_paths": ["chef/site-cookbooks"],
      "run_list": [
        "recipe[rails-sample]",
        "recipe[rails-sample::user]",
        "recipe[rails-sample::ruby]",
        "recipe[rails-sample::app]"
      ]
    }
  ],
  "post-processors": [
        [
            {
                "type": "docker-tag",
                "repository": "gcr.io/{{user `project_id`}}/redmine",
                "tag": "{{user `git_branch`}}-{{user `git_commit`}}",
                "only": ["docker"]
            }
        ]
    ]
}
{'fraction_non_alphanumeric': 0.2150793650793651, 'fraction_numerical': 0.013492063492063493, 'mean_word_length': 2.1551939924906134, 'pattern_counts': {'":': 49, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2297297', 'n_tokens_mistral': 956, 'n_tokens_neox': 887, 'n_words': 132}