mirror of
https://github.com/clearlinux/mixer-tools.git
synced 2026-09-05 05:01:28 +00:00
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>
16 lines
602 B
Docker
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"]
|
|
|