Skip to main content

GitHub Action Self-hosted Runner Operator for Docker

Project description

conmasd

GitHub Action Self-hosted Runner Operator for Docker

Usage

Using Python file

Use set_config() to set config data, including credentials for GitHub App authentication, and execute with run() command.

from conmasd import Conmasd

client = Conmasd()
client.set_config({
    "github": {
        "credentials": {
            "app_id": "YOUR_APP_ID_INT",
            "pem_dir": "/data/cert.pem",
            "installation_id": "YOUR_INSTALLATION_ID_INT"
        },
        "entity": "orgs",
        "place": "github",
    }
})

client.run()

Using Docker Compose

Pass docker.sock, config file, and some other files required for creating runner to conmasd container.

386jp/conmasd image automatically reads /data/config.json. However, if you want to change config file path, pass file path to CONFIG_FILE environment variable.

services:
  conmasd:
    image: 386jp/conmasd:latest
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./config.json:/data/config.json
      - ./cert.pem:/data/cert.pem
      - ./gha-baseimg-compose.yml:/data/gha-baseimg-compose.yml

If you gracefully shutdown your conmasd container, it automatically removes all the runners currently running.

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

conmasd-0.1.4.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

conmasd-0.1.4-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file conmasd-0.1.4.tar.gz.

File metadata

  • Download URL: conmasd-0.1.4.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.1 CPython/3.12.2 Darwin/22.4.0

File hashes

Hashes for conmasd-0.1.4.tar.gz
Algorithm Hash digest
SHA256 8d9767cd239980098325c3832c7878b111288d657c432d32655aff68b0c88dac
MD5 3d3c6565b4f11b0b47787bc118618415
BLAKE2b-256 48a4ce404f6c11154239c2fef957664004760478aa381b74bc5855592e2cc6f8

See more details on using hashes here.

File details

Details for the file conmasd-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: conmasd-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.1 CPython/3.12.2 Darwin/22.4.0

File hashes

Hashes for conmasd-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b644eb4b0a76b5203c6a9b5d0d86733b9df2c1e29eaa55f6ea03ed62bfa47a67
MD5 9fa7df7dafde79690ae798b67bbb736f
BLAKE2b-256 cb2083cdf3440f69508f94c47fbaf6201ac15d079ec51909c3fc0f07ab9b9013

See more details on using hashes here.

Supported by

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