Initial commit
commit
884c0508fc
|
@ -0,0 +1,10 @@
|
|||
ARG base=concourse/concourse:latest
|
||||
FROM ${base}
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y \
|
||||
jq \
|
||||
&& mv /usr/local/concourse/bin/runc /usr/local/concourse/bin/runc-original
|
||||
|
||||
ENV RUNC=/usr/local/concourse/bin/runc-original
|
||||
COPY runc-wrapper /usr/local/concourse/bin/runc
|
|
@ -0,0 +1,9 @@
|
|||
FROM concourse/concourse-dev:latest
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y \
|
||||
jq \
|
||||
&& mv /usr/local/concourse/bin/runc /usr/local/concourse/bin/runc-original
|
||||
|
||||
ENV RUNC=/usr/local/concourse/bin/runc-original
|
||||
COPY runc-wrapper /usr/local/concourse/bin/runc
|
|
@ -0,0 +1,9 @@
|
|||
FROM concourse/concourse:latest
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y \
|
||||
jq \
|
||||
&& mv /usr/local/concourse/bin/runc /usr/local/concourse/bin/runc-original
|
||||
|
||||
ENV RUNC=/usr/local/concourse/bin/runc-original
|
||||
COPY runc-wrapper /usr/local/concourse/bin/runc
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
# `serverwentdown/concourse-kvm`
|
||||
|
||||
Ugly patch to concourse's Docker image to mount the KVM device, until concourse/concourse#2784 is resolved.
|
||||
|
||||
## Tags
|
||||
|
||||
- [`latest`](Dockerfile.latest): Built from `concourse/concourse:latest`
|
||||
- [`dev`](Dockerfile.dev): Built from `concourse/concourse-dev:latest`
|
||||
|
||||
|
||||
<!-- vim: set conceallevel=2 et ts=2 sw=2: -->
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
RUNC=${RUNC:=runc}
|
||||
|
||||
if [ -f config.json ]; then
|
||||
mv config.json config.old.json
|
||||
jq -c '.mounts |= . + [{ "destination": "/dev/kvm", "type": "bind", "source": "/dev/kvm", "options": [ "bind", "rw" ] }]' config.old.json > config.json
|
||||
fi
|
||||
|
||||
exec $RUNC "$@"
|
Loading…
Reference in New Issue