Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Research spike Arch-Z (docker-compose) #36838

Closed as not planned
Closed as not planned

Description

@efritz

Implements a portion of RFC 696: Reduced isolation deployments for executor.

Explore how to write a docker-compose.override.yaml file with our current executor distribution so that we can loosely bundle privileged executors on compose deployments. Findings should be added to product documentation (on installing/configuring executors).

Activity

  1. efritz commented on Jun 8, 2022

    @efritz
    ContributorAuthor

    Current work in progress:

    version: '2.4'
    services:
      executor:
        container_name: executor
        image: 'index.docker.io/sourcegraph/executor:insiders@sha256:4909f85ba9b2446cf7c901dc735f265493b50e90acaf4cc0d36bac11d8c0d1b4'
        cpus: 1
        mem_limit: '4g'
        user: root
        privileged: true
        environment:
          # sync with `executors.frontendURL` in site config
          - EXECUTOR_FRONTEND_URL=http://sourcegraph-frontend-0:3080
          # sync with `executors.accessToken` in site config
          - EXECUTOR_FRONTEND_PASSWORD=hunter2hunter2hunter2
          # Choose what work to process
          - EXECUTOR_QUEUE_NAME=codeintel
          # Documenting defaults
          - EXECUTOR_MAXIMUM_RUNTIME_PER_JOB=30m
          - EXECUTOR_MAXIMUM_NUM_JOBS=2
          - EXECUTOR_NUM_TOTAL_JOBS=200
          - EXECUTOR_MAX_ACTIVE_TIME=2h
          # Run as root
          - UID=1000
          - GID=1000
          # Note: path must be equivalent to mounted executor-scratch (see volumes)
          - TMPDIR=/tmp/sourcegraph/executor-scratch
        volumes:
          # Note: paths must be equivalent on host and in docker
          - '/tmp/sourcegraph/executor-scratch:/tmp/sourcegraph/executor-scratch'
          - '/var/run/docker.sock:/var/run/docker.sock'
        networks:
          - sourcegraph
        restart: always
    
  2. efritz commented on Jun 8, 2022

    @efritz
    ContributorAuthor

    Related: #36830

  3. efritz commented on Jun 10, 2022

    @efritz
    ContributorAuthor

    A working solution can be found in this branch/PR.

  4. changed the title [-]RFC 696: Research spike Arch-Z (docker-compose)[/-] [+]Research spike Arch-Z (docker-compose)[/+] on Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions