Home
last modified time | relevance | path

Searched full:docker (Results 1 – 25 of 117) sorted by relevance

12345

/openbmc/qemu/tests/docker/
H A DMakefile.include1 # Makefile for Docker tests
3 .PHONY: docker docker-help docker-test docker-clean docker-image docker-qemu-src
13 DOCKER_FILES_DIR := $(SRC_PATH)/tests/docker/dockerfiles
19 RUNC ?= $(if $(shell command -v docker), docker, podman)
20 DOCKER_SCRIPT=$(SRC_PATH)/tests/docker/docker.py --engine $(RUNC)
23 DOCKER_SRC_COPY := $(BUILD_DIR)/docker-src.$(CUR_TIME)
33 $(call quiet-command, cp $(SRC_PATH)/tests/docker/run $@/run, \
36 docker-qemu-src: $(DOCKER_SRC_COPY)
38 # General rule for building docker images.
39 docker-image-%: $(DOCKER_FILES_DIR)/%.docker
[all …]
H A Ddocker.py3 # Docker controlling module
40 DOCKER = 2 variable in EngineEnum
80 if USE_ENGINE in [EngineEnum.AUTO, EngineEnum.DOCKER]:
81 commands += [["docker"], ["sudo", "-n", "docker"]]
84 # docker version will return the client details in stdout
141 we don't need qemu in the docker path to run (due to persistent
204 img_name + ".docker")
221 class Docker(object): class
222 """ Running Docker commands """
226 if ("docker" in self._command and
[all …]
/openbmc/docs/testing/
H A Drun-test-docker.md1 # Run OpenBMC Test Automation Using Docker
3 Running OpenBMC automation using Docker involves creating a Docker image and
4 then running automation tests inside the Docker container.
6 ## Build Docker Image
8 `Note: Prerequisite is to have Docker installed.`
26 5. Build the Docker image required to execute the robot tests (it may take close
27 to 15 mins for the first time). The default Docker image name is
28 "openbmc/ubuntu-robot-qemu". You can check images using "docker images"
31 `./scripts/build-qemu-robot-docker.sh`
33 …###### _Note: When your Docker is behind a proxy, add the following parameters to the build comman…
[all …]
H A Dlocal-ci-build.md5 ## Install Docker
7 Please install and configure Docker. The installation of Docker CE (Community
9 [Docker Docs](https://docs.docker.com/install/) are a good place to start
13 `sudo docker run hello-world`.
32 own changes, you can clone it directly into the Docker directory. This example
43 ./openbmc-build-scripts/run-unit-test-docker.sh
46 NOTE: When running 'run-unit-test-docker.sh' make sure you do not have any
66 ./openbmc-build-scripts/run-unit-test-docker.sh
81 ./openbmc-build-scripts/run-unit-test-docker.sh
87 start doing so, you should use `git worktree` instead so that the Docker
[all …]
/openbmc/qemu/.gitlab-ci.d/
H A Dcontainer-template.yml3 image: docker:latest
6 - docker:dind
11 - docker login $CI_REGISTRY -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD"
12 - until docker info; do sleep 1; done
16 - docker build --tag "$TAG" --cache-from "$TAG" --cache-from "$COMMON_TAG"
18 -f "tests/docker/dockerfiles/$NAME.docker" "."
19 - docker push "$TAG"
21 - docker logout
H A Dopensbi.yml1 # All jobs needing docker-opensbi must use the same rules it uses.
46 docker-opensbi:
49 image: docker:latest
51 - docker:dind
56 - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
57 - until docker info; do sleep 1; done
59 - docker pull $IMAGE_TAG || true
60 - docker build --cache-from $IMAGE_TAG --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
62 - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
63 - docker push $IMAGE_TAG
[all …]
/openbmc/openbmc/meta-raspberrypi/.github/actions/docker-build/
H A Daction.yml5 name: "Build a docker image"
10 description: "The name of the docker image"
18 - name: Build the ${{ inputs.docker_image }} docker image
21 # relevant docker files because there is a chance that another PR (or
23 # version of the PR included change for the relevant docker image but a
27 cd .github/workflows/docker-images/
29 # handle multiple runners on the same host using the same docker
34 echo "Building the docker image ${{ inputs.docker_image }}-${{ inputs.id }}... try $n..."
35 …if docker build . -f "${{ inputs.docker_image }}/Dockerfile" -t "${{ inputs.docker_image }}-${{ in…
38 # conflict. This is because while building, docker creates a
/openbmc/qemu/scripts/coverity-scan/
H A Drun-coverity-scan33 # --docker : create and work inside a container
34 # --docker-engine : specify the container engine to use (docker/podman/auto);
35 # implies --docker
45 # is intended mainly for internal use by the Docker support
115 # build docker container including the coverity-scan tools
116 echo "Building docker container..."
120 tests/docker/docker.py --engine ${DOCKER_ENGINE} build \
121 -t coverity-scanner -f scripts/coverity-scan/coverity-scan.docker \
148 if [ "$DOCKER" != yes ]; then
161 if [ "$DOCKER" = yes ]; then
[all …]
/openbmc/openbmc-build-scripts/
H A Drun-unit-test-docker.sh3 # This build script is for running the Jenkins unit test builds using docker.
5 # This script will build a docker container which will then be used to build
6 # and test the input UNIT_TEST_PKG. The docker container will be pre-populated
8 # phosphor-logging, ...). This allows the use of docker caching
11 # docker container will be pre-populated with the latest code from that input
26 # EXTRA_DOCKER_RUN_ARGS: Optional, pass arguments to docker run
66 # Configure docker build
68 echo "Building docker image with build-unit-test-docker"
71 DOCKER_IMG_NAME=$(./scripts/build-unit-test-docker)
87 # Run the docker unit test container with the unit test execution script
[all …]
H A Drun-rootfs-size-docker.sh3 # This script is for running rootfs_size.py in Jenkins using docker.
5 # This script will build a docker container which will then be used to build
12 # DISTRO: Optional, docker base image (ubuntu or fedora)
60 # Configure docker build
62 echo "Building docker image with build-rootfs-size-docker.sh"
67 ./build-rootfs-size-docker.sh
69 # Run the docker container with the rootfs_size execution script
70 echo "Executing docker image"
71 docker run --cap-add=sys_admin --rm=true \
H A Drun-qemu-robot-test.sh24 # Docker image will be tagged with when built.
94 echo "Unsupported system architecture(${ARCH}) found for docker image"
104 # Create the base Docker image for QEMU and Robot
105 # shellcheck source=scripts/build-qemu-robot-docker.sh
106 . "$DIR/scripts/build-qemu-robot-docker.sh" "$DOCKER_IMG_NAME"
115 # Start QEMU docker instance
116 # root in docker required to open up the https/ssh ports
117 obmc_qemu_docker=$(docker run --detach \
132 # docker instances talk over their private network
136 # This docker command intermittently asserts a SIGPIPE which
[all …]
H A Dqemu-build.sh24 # DOCKER_REG: <optional, the URL of a docker registry to utilize
26 # (ex. docker.io)
42 # Docker Image Build Variables:
53 # Create the docker run script
89 # Configure docker build
92 # Keep the base docker image in sync with the image under which we run the
128 if ! docker build -t ${img_name} - <<< "${Dockerfile}" ; then
129 echo "Failed to build docker container."
133 docker run \
H A Dbuild-rootfs-size-docker.sh3 # Build the required docker image to run rootfs_size.py
6 # DOCKER_IMG_NAME: <optional, the name of the docker image to generate>
8 # DISTRO: <optional, the distro to build a docker image against>
12 # DOCKER_REG: <optional, the URL of a docker registry to utilize
14 # (ex. docker.io)
38 ################################# docker img # #################################
78 ################################# docker img # #################################
81 docker build --network=host -t "${DOCKER_IMG_NAME}" - <<< "${Dockerfile}"
H A Dbuild-setup.sh4 # This build script is for running the OpenBMC builds as Docker containers.
24 # CONTAINER_ONLY Set to "true" if you only want to build the docker
26 # DOCKER_REG: <optional, the URL of a docker registry to utilize
28 # (ex. docker.io or public.ecr.aws/docker/library)
30 # Docker Image Build Variables:
41 # img_name The name given to the target build's docker image.
43 # img_tag The base docker image distro tag:
96 # Docker Image Build Variables:
133 DOCKER_IMAGE_NAME=$(./scripts/build-unit-test-docker)
134 docker run --cap-add=sys_admin --rm=true \
[all …]
/openbmc/openbmc/meta-raspberrypi/.github/workflows/
H A Dyocto-layer.yml27 .github/workflows/docker-images/yocto-builder/**
28 .github/workflows/docker-images/*.sh
38 uses: ./.github/actions/docker-build
45 docker run --rm -v "$GITHUB_WORKSPACE:/work:ro" \
50 - name: Cleanup temporary docker image
51 uses: ./.github/actions/docker-clean-image
55 - name: Cleanup dangling docker images
56 uses: ./.github/actions/docker-clean-dangling
H A Dyocto-builds.yml51 .github/workflows/docker-images/yocto-builder/**
52 .github/workflows/docker-images/*.sh
62 uses: ./.github/actions/docker-build
69 docker run --rm \
82 - name: Cleanup temporary docker image
83 uses: ./.github/actions/docker-clean-image
87 - name: Cleanup dangling docker images
88 uses: ./.github/actions/docker-clean-dangling
H A Dcompliance.yml20 uses: ./.github/actions/docker-build
26 docker run --rm -v "$GITHUB_WORKSPACE:/work:ro" \
29 - name: Cleanup temporary docker image
30 uses: ./.github/actions/docker-clean-image
34 - name: Cleanup dangling docker images
35 uses: ./.github/actions/docker-clean-dangling
/openbmc/qemu/
H A D.patchew.yml91 {% elif test == "docker-mingw@fedora" or test == "docker-quick@centos8" or test == "asan" %}
95 their output below. If you have Docker installed, you can probably reproduce it
122 requirements: docker
126 time make docker-test-debug@fedora TARGET_LIST=x86_64-softmmu J=14 NETWORK=1
127 docker-quick@centos8:
129 requirements: docker,x86_64
133 time make docker-test-quick@centos8 SHOW_ENV=1 J=14 NETWORK=1
142 docker-mingw@fedora:
144 requirements: docker,x86_64
225 docker-clang@ubuntu:
[all …]
/openbmc/openbmc-build-scripts/scripts/
H A Dbuild-unit-test-docker3 # Build the required docker image to run package unit tests
6 # DOCKER_IMG_NAME: <optional, the name of the docker image to generate>
8 # DISTRO: <optional, the distro to build a docker image against>
9 # FORCE_DOCKER_BUILD: <optional, a non-zero value with force all Docker
20 # DOCKER_REG: <optional, the URL of a docker registry to utilize
22 # (ex. docker.io)
41 # System may have docker or it may have podman, try docker first
42 from sh import docker
44 container = docker
51 print("No docker or podman found on system")
[all …]
H A Dbuild-qemu-robot-docker.sh3 # Build the required docker image to run QEMU and Robot test cases
11 # DOCKER_REG: <optional, the URL of a docker registry to utilize
13 # (ex. docker.io)
15 # parm1: <optional, the name of the docker image to generate>
17 # param2: <optional, the distro to build a docker image against>
48 ################################# docker img # #################################
49 # Create docker image that can run QEMU and Robot Tests
154 ################################# docker img # #################################
163 docker build ${PROXY_ARGS} -t "${DOCKER_IMG_NAME}" - <<< "${Dockerfile}"
/openbmc/qemu/docs/devel/testing/
H A Dmain.rst344 was originally written for Docker although we also support Podman as
346 names and scripts are prefixed with "docker" the system will
352 Docker Prerequisites
355 Install "docker" with the system package manager and start the Docker service
357 Docker commands. Typically it means setting up passwordless ``sudo docker``
362 $ sudo yum install docker
363 $ # or `apt-get install docker` for Ubuntu, etc.
364 $ sudo systemctl start docker
365 $ sudo docker ps
370 "docker" group and making the docker daemon socket file (by default
[all …]
/openbmc/openbmc/poky/documentation/dev-manual/
H A Dstart.rst67 Docker, which is described later.
256 which leverages `Docker Containers <https://www.docker.com/>`__ or it
346 leverages `Docker Containers <https://www.docker.com/>`__, you can
355 `Docker <https://www.docker.com/what-docker>`__ is a software
358 software to support Docker containers. Go to the Docker installation
360 Platforms <https://docs.docker.com/engine/install/#supported-platforms>`__"
364 meets system requirements, you need to install "Docker CE Stable" or
365 the "Docker Toolbox". Most situations call for Docker CE. However, if
367 Pre-Windows 10 or Windows 10 "Home" version), you must install Docker
371 Docker edition associated with your build host's native software. For
[all …]
/openbmc/openbmc-build-scripts/jenkins/
H A Drun-build-script-ci16 "${WORKSPACE}/openbmc-build-scripts/run-unit-test-docker.sh"
19 ./scripts/build-unit-test-docker
20 ./scripts/clean-unit-test-docker
21 ./scripts/build-qemu-robot-docker.sh
26 UNIT_TEST_PKG=sdbusplus "${WORKSPACE}/openbmc-build-scripts/run-unit-test-docker.sh"
/openbmc/phosphor-event/
H A D.build.sh16 docker pull ubuntu:15.10
17 docker build -t openbmc/phosphor-event - <<< "${Dockerfile}"
20 docker run --rm=true --user="${USER}" \
22 docker run --rm=true --user="${USER}" \
24 docker run --rm=true --user="${USER}" \
/openbmc/openbmc/meta-raspberrypi/.github/workflows/docker-images/
H A DREADME.md7 # Docker images for CI
9 Each directory contains the files for a docker image.
13 When building a docker image, the build context is expected to be where this
20 docker build . -f dco-check/Dockerfile -t dco-check

12345