From e38ef5a3e278a3ca0939bfb64c73fc381987dc78 Mon Sep 17 00:00:00 2001 From: Oleksii Kurinnyi Date: Wed, 11 Jun 2025 09:30:36 +0000 Subject: [PATCH 1/3] feat: add aider --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6c736e3..9889255 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,7 +32,7 @@ ENV PATH="/root/.cargo/bin:${PATH}" # Using /opt/ra_aid_venv for the virtual environment and pinning protobuf versions RUN uv venv /opt/ra_aid_venv --python 3.12 \ && . /opt/ra_aid_venv/bin/activate \ - && uv pip install protobuf==4.25.3 googleapis-common-protos==1.63.0 ra-aid + && uv pip install protobuf==4.25.3 googleapis-common-protos==1.63.0 ra-aid aider-chat@latest # Add the ra-aid venv bin to the PATH so its executables are accessible ENV PATH="/opt/ra_aid_venv/bin:${PATH}" From c6a37e1e307fe0b953be4d9d7b3da9d163d1620b Mon Sep 17 00:00:00 2001 From: Oleksii Kurinnyi Date: Wed, 11 Jun 2025 09:31:04 +0000 Subject: [PATCH 2/3] chore: update README.md; add .gitignore --- .gitignore | 1 + README.md | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7753f93 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.ra-aid/ diff --git a/README.md b/README.md index 8125243..6e77663 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,71 @@ # dev-tools -Development container for using in Eclipse Che +## Overview + +This repository provides a pre-configured development environment, designed for use within Eclipse Che. It comes equipped with a comprehensive set of tools and configurations to support various development workflows, with a focus on Python and modern command-line utilities. + +## Base Image + +The environment is built upon the `quay.io/devfile/universal-developer-image:latest` base image. + +## Key Features & Installed Software + +### Shells +* **Fish (`fish`)**: The default shell for the primary user. +* **Zsh (`zsh`)** +* **Bash (`bash`)** + +### Editors +* **Neovim (`nvim`)** +* **Vim (`vim`)** + +### Python Environment +* **Python Version**: 3.12 +* **Package Manager**: `uv` (installed via `curl ... | sh` and available in `/root/.cargo/bin`) +* **Virtual Environment**: Located at `/opt/ra_aid_venv`, created using Python 3.12. +* **Key Python Packages Installed**: + * `protobuf==4.25.3` + * `googleapis-common-protos==1.63.0` + * `ra-aid` + * `aider-chat@latest` + +### Command-Line Utilities +* **Ripgrep (`rg`)**: A fast, line-oriented search tool. +* **Wget (`wget`)**: Utility for non-interactive download of files from the Web. +* `ca-certificates` + +### Development Tools +* **chectl**: CLI tool for Eclipse Che (installed at `/usr/local/bin/chectl`). + +### Prompt Customization +* **Starship**: A minimal, blazing-fast, and infinitely customizable cross-shell prompt. It is configured system-wide for Bash, Zsh, and Fish. + +### Fonts +* **FiraCode Nerd Font**: Version 3.4.0 installed system-wide for enhanced terminal aesthetics with ligatures and icons. + +## Environment Configuration + +### User +* **Default User ID**: `10001` + +### Default Shell +* The default shell for user `10001` is **Fish (`fish`)**. + +### PATH Configuration +The system `PATH` is augmented to include: +* `/root/.cargo/bin`: For the `uv` Python package manager. +* `/opt/ra_aid_venv/bin`: For executables from the Python virtual environment (e.g., `aider`, `ra-aid`). + +### Starship Prompt +* **System-wide Configuration**: Starship is initialized for: + * Bash: via `/etc/profile.d/starship.sh` + * Zsh: via `/etc/zshrc` + * Fish: via `/etc/fish/conf.d/starship.fish` +* **Custom Paths**: To avoid issues with user home directories in containerized environments, Starship uses: + * `STARSHIP_CONFIG=/opt/starship/config/starship.toml` + * `STARSHIP_CACHE=/opt/starship/cache` + +## Usage Notes + +* **Accessing Python Tools**: Python tools installed within the `/opt/ra_aid_venv` virtual environment (like `aider`, `uv`, and scripts from `ra-aid`) are directly accessible from the command line as their `bin` directory is in the `PATH`. +* **Starship Prompt**: The Starship prompt is automatically active in all configured shells (Fish, Zsh, Bash) upon starting a terminal session. From 0ee2ab3b655360927150af00a16de84f51705fed Mon Sep 17 00:00:00 2001 From: Oleksii Kurinnyi Date: Wed, 11 Jun 2025 12:59:11 +0300 Subject: [PATCH 3/3] fixup! feat: add aider --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9889255..11fbc38 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,7 +32,7 @@ ENV PATH="/root/.cargo/bin:${PATH}" # Using /opt/ra_aid_venv for the virtual environment and pinning protobuf versions RUN uv venv /opt/ra_aid_venv --python 3.12 \ && . /opt/ra_aid_venv/bin/activate \ - && uv pip install protobuf==4.25.3 googleapis-common-protos==1.63.0 ra-aid aider-chat@latest + && uv pip install ra-aid aider-chat # Add the ra-aid venv bin to the PATH so its executables are accessible ENV PATH="/opt/ra_aid_venv/bin:${PATH}"