Skip to content
This repository has been archived by the owner on Oct 22, 2023. It is now read-only.

Commit

Permalink
Fix .gitignore path that incorrectly excluded root .batect directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
charleskorn committed Aug 3, 2020
1 parent bb09942 commit 97ed01b
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .batect/shellcheck/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM alpine:3.12.0

RUN apk add --no-cache shellcheck=0.7.1-r1
14 changes: 14 additions & 0 deletions .batect/test-env/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM docker:19.03.12-dind

RUN apk add --no-cache \
bash=5.0.17-r0 \
curl=7.69.1-r0 \
openjdk11-jre-headless=11.0.7_p10-r1 \
python3=3.8.5-r0

COPY entrypoint.sh /usr/local/bin/

ENV DOCKER_HOST=unix:///var/run/docker.sock
ENV DOCKER_TLS_CERTDIR=""

ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
27 changes: 27 additions & 0 deletions .batect/test-env/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#! /usr/bin/env bash

set -euo pipefail

function main() {
startDocker
runTests "$@"
}

function startDocker() {
echo "Starting Docker..."
dockerd &>/var/log/dockerd.log &

while [ ! -S /var/run/docker.sock ]; do
echo "Waiting for Docker to start..."
sleep 1
done

echo "Docker has started."
}

function runTests() {
echo "Running tests..."
exec "$@"
}

main "$@"
3 changes: 3 additions & 0 deletions .batect/yamllint/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM alpine:3.12.0

RUN apk add --no-cache yamllint=1.23.0-r0
4 changes: 4 additions & 0 deletions .batect/yapf/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM alpine:3.12.0

RUN apk add --no-cache py3-pip=20.1.1-r0
RUN pip install yapf==0.30.0
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.batect/
**/.batect/caches/
.idea/
build/

0 comments on commit 97ed01b

Please sign in to comment.