Home
last modified time | relevance | path

Searched full:docker (Results 1 – 25 of 116) 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
[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/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 --security-opt apparmor=unconfined \
51 - name: Cleanup temporary docker image
52 uses: ./.github/actions/docker-clean-image
56 - name: Cleanup dangling docker images
57 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 --security-opt apparmor=unconfined \
84 - name: Cleanup temporary docker image
85 uses: ./.github/actions/docker-clean-image
89 - name: Cleanup dangling docker images
90 uses: ./.github/actions/docker-clean-dangling
H A Dcompliance.yml20 uses: ./.github/actions/docker-build
26 docker run --rm --security-opt apparmor=unconfined \
31 - name: Cleanup temporary docker image
32 uses: ./.github/actions/docker-clean-image
36 - name: Cleanup dangling docker images
37 uses: ./.github/actions/docker-clean-dangling
/openbmc/openbmc-build-scripts/
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-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
27 # EXTRA_DOCKER_RUN_ARGS: Optional, pass arguments to docker run
68 # Configure docker build
70 echo "Building docker image with build-unit-test-docker"
73 DOCKER_IMG_NAME=$(./scripts/build-unit-test-docker)
90 # Run the docker unit test container with the unit test execution script
[all …]
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
123 if ! docker build -t ${img_name} - <<< "${Dockerfile}" ; then
124 echo "Failed to build docker container."
128 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)
29 # EXTRA_DOCKER_RUN_ARGS: Optional, pass arguments to docker run
31 # Docker Image Build Variables:
42 # img_name The name given to the target build's docker image.
44 # img_tag The base docker image distro tag:
97 # Docker Image Build Variables:
134 DOCKER_IMAGE_NAME=$(./scripts/build-unit-test-docker)
[all …]
/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/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/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/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
/openbmc/openbmc-build-scripts/scripts/
H A Dclean-unit-test-docker3 # Removes docker images created by 'build-unit-test-docker' which are older
11 docker image ls \
14 grep -v "$(date '+%Y-W%V')" | xargs -r docker image rm || true
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
700 class Docker: global() class
[all...]
/openbmc/qemu/docs/devel/testing/
H A Dmain.rst371 was originally written for Docker although we also support Podman as
373 names and scripts are prefixed with "docker" the system will
379 Docker Prerequisites
382 Install "docker" with the system package manager and start the Docker service
384 Docker commands. Typically it means setting up passwordless ``sudo docker``
389 $ sudo yum install docker
390 $ # or `apt-get install docker` for Ubuntu, etc.
391 $ sudo systemctl start docker
392 $ sudo docker ps
397 "docker" group and making the docker daemon socket file (by default
[all …]
/openbmc/openbmc/meta-raspberrypi/.github/actions/docker-clean-image/
H A Daction.yml5 name: "Cleanup docker storage"
10 description: "The name of the docker image"
19 docker rmi "${{ inputs.docker_image }}" || true

12345