Files
swupd-client/docker/Dockerfile
William Douglas 28e953828c Rework clear linux docker container for test runs
Also skips a few tests that do not run well with docker (changing date
and disk filling have a hard time). Adding comment for how to run
docker (needs the --cap-add LINUX_IMMUTABLE option passed).

Signed-off-by: William Douglas <william.douglas@intel.com>
2023-02-17 14:01:58 -08:00

22 lines
689 B
Docker

#
# This file is part of swupd-client.
#
# Copyright © 2017 Intel Corporation
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 2 or later of the License.
#
#
FROM clearlinux:latest
RUN swupd bundle-add os-core-update-dev sysadmin-basic os-testsuite c-basic haskell-basic
RUN pip install coverxygen && stack install ShellCheck && mv /root/.local/bin/shellcheck /usr/bin/
RUN useradd tester && usermod -aG wheelnopw tester
USER tester
COPY . /build
WORKDIR /build
# Requires docker run with: --cap-add LINUX_IMMUTABLE
CMD ["/build/docker/dockerrun.sh"]