Refactor Dockerfile and add linguist module

This commit refactors the Dockerfile to:
- Reintroduce the programmer user creation with sudo privileges
- Add necessary system dependencies for development tools
- Update Go installation to include PATH in root's bashrc
- Install github-linguist gem

It also includes the addition of a new linguist command module with functions to interact with GitHub Linguist for language statistics and file information retrieval.
This commit is contained in:
2026-02-21 11:41:21 +01:00
parent 4d81dba1e5
commit 65fc32459a
22 changed files with 265 additions and 5 deletions

36
old/Makefile Normal file
View File

@@ -0,0 +1,36 @@
.PHONY: build run all debug
# Variables
IMAGE_NAME = pmo_crazy_coder
TAG = latest
PORT = 7860
SANDBOX_VOLUME = "./bac_a_sable"
CONTAINER_NAME = $(IMAGE_NAME)
DOCKER_RUN_COMMON = --rm -p $(PORT):$(PORT) -v $(SANDBOX_VOLUME):/sandbox --name $(CONTAINER_NAME)
FULL_IMAGE_NAME = $(IMAGE_NAME):$(TAG)
all: run
$(SANDBOX_VOLUME):
mkdir -p $(SANDBOX_VOLUME)
stampdir:
mkdir -p stamp
stamp/build_PMOCrazyCoder: stampdir Dockerfile
@echo building the PMOCrazyCoder server
@docker build -t $(FULL_IMAGE_NAME) .
@touch $@
build: stamp/build_PMOCrazyCoder
run: build $(SANDBOX_VOLUME)
@echo Launching the PMOCrazyCoder MCP server
@docker run $(DOCKER_RUN_COMMON) \
-it \
$(FULL_IMAGE_NAME)
debug: build $(SANDBOX_VOLUME)
@echo Launching the PMOCrazyCoder MCP server in debug mode
@docker run $(DOCKER_RUN_COMMON) \
-it \
$(FULL_IMAGE_NAME) /bin/bash