Files
mixer-tools/Dockerfile
T
Matthew Johnson b75733a1e4 Travis: add workaround to failing clrtrust
In the current clearlinux:latest docker image clrtrust generate is
broken due to /var/lock not existing. To workaround this so our CI isn't
constantly failing mkdir -p this directory. This will not break future
fixes to clrtrust, but the maintainer will alert us when this workaround
can be removed.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2018-03-07 11:39:34 -08:00

16 lines
602 B
Docker

FROM clearlinux:latest
ENV GOPATH /home/gopath
ENV PATH="/home/gopath/bin:${PATH}"
COPY . / /home/gopath/src/github.com/clearlinux/mixer-tools/
RUN swupd bundle-add mixer go-basic c-basic os-core-update-dev && \
git config --global user.email "travis@example.com" && \
git config --global user.name "Travis CI" && \
mkdir -p /run/lock && \
clrtrust generate && \
go get -u gopkg.in/alecthomas/gometalinter.v2 && \
gometalinter.v2 --install
ENTRYPOINT ["/bin/sh", "-c", "cd /home/gopath/src/github.com/clearlinux/mixer-tools && make && make install && make lint; make check"]