diff --git a/Dockerfile b/Dockerfile index ac4ea2d..7b9755d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,3 @@ FROM alpine:edge as builder -RUN apk add -u crystal shards tzdata libc-dev +RUN apk add -u make crystal shards tzdata libc-dev yaml-dev diff --git a/ameba b/ameba new file mode 100755 index 0000000..c70e001 --- /dev/null +++ b/ameba @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -eu + +docker run -it \ + -u "$(id -u):$(id -g)" \ + -v "$PWD:/app" \ + -w "/app" \ + expansion-crystal ./bin/ameba "$@" diff --git a/shard.lock b/shard.lock new file mode 100644 index 0000000..4f4c07b --- /dev/null +++ b/shard.lock @@ -0,0 +1,6 @@ +version: 1.0 +shards: + ameba: + github: crystal-ameba/ameba + version: 0.10.1 + diff --git a/shard.yml b/shard.yml index 3f4f57d..1f0dd82 100644 --- a/shard.yml +++ b/shard.yml @@ -11,3 +11,8 @@ targets: crystal: 0.31.0 license: MIT + +development_dependencies: + ameba: + github: crystal-ameba/ameba + version: ~> 0.10.1 \ No newline at end of file