<commit_before>#!/usr/bin/env bats

@test "Check docker is running" {
	run docker info
	[ $status = 0 ]
}

@test "Creating files in a docker container are owned by buildkite-agent" {
  run docker run -v "$PWD:/pwd" --rm -it alpine:latest mkdir /pwd/llamas
 	[ $status = 0 ]
  stat llamas
  stat llamas | grep 'Uid: ( 2000/buildkite-agent)   Gid: ( 2000/buildkite-agent)'
}<commit_msg>Add a test that containers can use docker socket<commit_after>#!/usr/bin/env bats

@test "Check docker is running" {
	run docker info
	[ $status = 0 ]
}

@test "Creating files in a docker container are owned by buildkite-agent" {
  run docker run -v "$PWD:/pwd" --rm -it alpine:latest mkdir /pwd/llamas
 	[ $status = 0 ]
  stat llamas
  stat llamas | grep 'Uid: ( 2000/buildkite-agent)   Gid: ( 1001/docker)'
}

@test "Containers can access docker socket" {
  run docker run --rm -v /var/run/docker.sock:/var/run/docker.sock docker:latest version
 	[ $status = 0 ]
}
{'fraction_non_alphanumeric': 0.13157894736842105, 'fraction_numerical': 0.022105263157894735, 'mean_word_length': 3.4232558139534883, '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': '6391938', 'n_tokens_mistral': 391, 'n_tokens_neox': 338, 'n_words': 112}