mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 13:23:08 +00:00
40af8ee748
Enable cargo clippy in the smoke test script for kokoro with many whitelisted rules to be resolved. This check will reject compile warnings as well. Also, this CL removes cargo check in Docker.crosvm as cargo clippy is a superset of cargo check. BUG=chromium:908640 TEST=./wrapped_smoke_test.sh Change-Id: Iaa546fc0166e3d9762c5e91144d036725d38b0f9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2145538 Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org> Tested-by: Keiichi Watanabe <keiichiw@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Zach Reizner <zachr@chromium.org>
26 lines
892 B
Text
26 lines
892 B
Text
FROM crosvm-base
|
|
|
|
COPY . /platform/crosvm
|
|
|
|
RUN cargo install --features 'default-no-sandbox wl-dmabuf gpu x' --path . --root /usr
|
|
|
|
ARG UID=1000
|
|
ARG GID=1000
|
|
|
|
RUN export uid=$UID gid=$GID && \
|
|
mkdir -p /home/chronos && \
|
|
echo "chronos:x:${uid}:${gid}:Developer,,,:/home/chronos:/bin/bash" >> /etc/passwd && \
|
|
echo "chronos:x:${uid}:" >> /etc/group && \
|
|
chown ${uid}:${gid} -R /home/chronos
|
|
|
|
# Install nvidia proprietary drivers if requested.
|
|
ARG NVIDIA_VERSION=
|
|
RUN if [ -n "${NVIDIA_VERSION}" ]; then \
|
|
nvidia_url=http://us.download.nvidia.com/XFree86/Linux-x86_64 && \
|
|
nvidia_binary=NVIDIA-Linux-x86_64-"${NVIDIA_VERSION}".run && \
|
|
curl -LO "${nvidia_url}"/"${NVIDIA_VERSION}"/"${nvidia_binary}" && \
|
|
chmod +x ./"${nvidia_binary}" && \
|
|
./"${nvidia_binary}" --accept-license --silent --no-kernel-module; \
|
|
fi
|
|
|
|
ENTRYPOINT ["crosvm"]
|