Начальная версия шаблона sandbox-контейнера #1

Closed
cleo wants to merge 0 commits from dev/sandbox-template into main
Member

What

  • Dockerfile с настраиваемым BASE_IMAGE через build arg
  • entrypoint.sh — автоклонирование GIT_REPO если /app пуст
  • git-cred.sh — credential helper с indirect expansion (${!GIT_PASSWORD}), пароль нигде не хранится в файлах
  • README с примером docker-compose

Why

Шаблон для быстрого поднятия dev-контейнеров. Один Dockerfile — любой агент, любой проект, любой язык. Достаточно указать env переменные.

Usage

services:
  sandbox:
    build:
      context: https://git.appproxy.link/opencroft/sandbox-container.git
      args:
        BASE_IMAGE: python:3.12-slim
    environment:
      - GIT_USERNAME=cleo
      - GIT_PASSWORD=GIT_CLEO
      - GIT_REPO=http://forgejo:3000/opencroft/my-project.git
    volumes:
      - /mnt/data/workspace/cleo/my-project:/app
## What - Dockerfile с настраиваемым `BASE_IMAGE` через build arg - `entrypoint.sh` — автоклонирование `GIT_REPO` если `/app` пуст - `git-cred.sh` — credential helper с indirect expansion (`${!GIT_PASSWORD}`), пароль нигде не хранится в файлах - README с примером docker-compose ## Why Шаблон для быстрого поднятия dev-контейнеров. Один Dockerfile — любой агент, любой проект, любой язык. Достаточно указать env переменные. ## Usage ```yaml services: sandbox: build: context: https://git.appproxy.link/opencroft/sandbox-container.git args: BASE_IMAGE: python:3.12-slim environment: - GIT_USERNAME=cleo - GIT_PASSWORD=GIT_CLEO - GIT_REPO=http://forgejo:3000/opencroft/my-project.git volumes: - /mnt/data/workspace/cleo/my-project:/app ```
mikhail force-pushed dev/sandbox-template from eff44e8678 to d83113a71f 2026-05-16 23:30:03 +00:00 Compare
mikhail closed this pull request 2026-05-16 23:30:18 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
opencroft/sandbox-container!1
No description provided.