Skip to main content

Docker executor for Sloth CI

Project description

Run actions inside a `Docker <https://www.docker.com/>`__ image.

By default, Sloth CI apps run actions in a subprocess on the same machine they're running on. This extension overrides this and makes the app execute each action as a container inside a given Docker image.


Installation
------------

.. code-block:: bash

$ pip install sloth-ci.ext.docker_exec


Usage
-----

.. code-block:: yaml
:caption: docker_exec.yml

extensions:
run_in_docker:
# Use the module sloth_ci.ext.docker_exec.
module: docker_exec

# Image name. If missing, slug of the Sloth app listen point is used.
# image: foo

# Path to the Docker daemon to connect to. Can point to either a tcp URL or a unix socket. If missing, the client connects to /var/run/docker.sock.
# base_url: tcp://555.55.55.55:5555 *.

# Docker API version used on the server. If missing, the latest version is used.
# version: 1.10

# Path to the Dockerfile used to build an image if it doesn't exist. If missing, current directory is used.
# path_to_dockerfile: docker/files

# Memory limit in MB.
# memory_limit: 10

# CPU share in per cent.
# cpu_share: 5

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sloth-ci.ext.docker_exec-1.1.3.zip (5.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

sloth_ci.ext.docker_exec-1.1.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

sloth-ci.ext.docker_exec-1.1.3.win-amd64.exe (141.7 kB view details)

Uploaded Source

File details

Details for the file sloth-ci.ext.docker_exec-1.1.3.zip.

File metadata

File hashes

Hashes for sloth-ci.ext.docker_exec-1.1.3.zip
Algorithm Hash digest
SHA256 e0408bdd4b10c803e02225d572db280b8ae916786c9adf08a5567a26dbdad2f3
MD5 a5c8db6069cb9dd4a32879063851c262
BLAKE2b-256 c1bce23413b9e2443b697665639565007be5a6e663198c9ef1cb8e4a55bbb1b3

See more details on using hashes here.

File details

Details for the file sloth_ci.ext.docker_exec-1.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for sloth_ci.ext.docker_exec-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fcb64ea298bd7680b749fbf1cbeb5d56387163a193f241f1d3fe1d458b24b3f4
MD5 668e2077da857f96e1606feff70c0125
BLAKE2b-256 a70259f4134b13027348b483cba0afbacdcc849d0000f6924b6ef231de24037a

See more details on using hashes here.

File details

Details for the file sloth-ci.ext.docker_exec-1.1.3.win-amd64.exe.

File metadata

File hashes

Hashes for sloth-ci.ext.docker_exec-1.1.3.win-amd64.exe
Algorithm Hash digest
SHA256 95d9b7ab7dd712991d0414a82bec9ff2aa25d10a87a6bd0e3162b2b265a2070e
MD5 166fc51606dec8e16ac8b0765d7da191
BLAKE2b-256 a8ac205400c288b4d55c6a4cb49b099ab346fdee180d94b9946c10d2ddd4f2fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page