Lines Matching full:docker

3 # 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")
94 # __tag [private]: Generated Docker tag name for package stage.
315 """Class used to build the Docker stages for each package.
339 """Thread 'run' function. Builds the Docker stage."""
370 tag = Docker.tagname(self._stagename(), dockerfile)
376 Docker.build(self.package, tag, dockerfile)
382 """Ensure a Docker stage is created for all defined packages.
516 """Create a name for the Docker stage associated with this pkg."""
566 packages into a Docker stage.
575 # Workaround for upstream docker bug and multiple COPY cmds
583 install a package into a Docker stage.
650 class Docker: class
651 """Class to assist with Docker interactions. All methods are static."""
666 result += ":" + Docker.timestamp()
673 """Build a docker image using the Dockerfile and tagging it with 'tag'."""
686 # Capture the output of the 'docker build' command and send it to
689 # docker tag to stdout and we want to keep that pristine.
692 # --no-cache: Bypass the Docker cache if 'force_build'.
693 # --force-rm: Clean up Docker processes if they fail.
728 # Ensure appropriate docker build output to see progress and identify
932 # Run an arbitrary command to pollute the docker cache regularly force us
934 RUN echo {Docker.timestamp()}
960 # Build the base and stage docker images.
961 docker_base_img_name = Docker.tagname("base", dockerfile_base)
962 Docker.build("base", docker_base_img_name, dockerfile_base)
972 # even though it is no longer needed to rebuild the docker environment
1004 # Do the final docker build
1005 docker_final_img_name = Docker.tagname(None, dockerfile)
1006 Docker.build("final", docker_final_img_name, dockerfile)