Download:
child 134:c750ded699ca
parent 132:3cfe292cacf3
133:785475a2d155
Anton Shestakov <av6@dwimlabs.net>, Tue, 12 Jul 2016 16:37:09 +0800
checker: add wrapper for checker in docker

2 файлов изменено, 23 вставок(+), 0 удалений(-) [+]
check-in-docker.sh file | annotate | diff | comparison | revisions
dockerfiles/ubuntu-xenial file | annotate | diff | comparison | revisions
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/check-in-docker.sh Tue Jul 12 16:37:09 2016 +0800
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -eu
+
+(
+ cat dockerfiles/ubuntu-xenial
+) | docker build --tag candolint-checker -
+
+docker run --rm -u worker -v "$PWD":/mnt:ro candolint-checker \
+ sh -c "cd /mnt && python -u checker.py $@ 2>&1"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dockerfiles/ubuntu-xenial Tue Jul 12 16:37:09 2016 +0800
@@ -0,0 +1,14 @@
+FROM ubuntu:xenial
+
+RUN echo 'APT::Install-Recommends "no";' > /etc/apt/apt.conf.d/99recommends
+RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
+ build-essential \
+ git \
+ mercurial \
+ python-yaml \
+ luarocks \
+ unzip \
+ npm \
+ virtualenv
+
+RUN useradd worker --create-home --user-group