Skip to content

A programming framework for agentic AI

Initial devcontainer scaffolding (#66)

Kosta Petan178e209e5f78
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
new file mode 100644
index 000000000..1b25c9a67
--- /dev/null
+++ b/.devcontainer/Dockerfile
@@ -0,0 +1,6 @@
+# Note: You can use any Debian/Ubuntu based image you want.
+FROM mcr.microsoft.com/devcontainers/base:bullseye
+
+# [Optional] Uncomment this section to install additional OS packages.
+# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
+# && apt-get -y install --no-install-recommends <your-package-list-here>
\ No newline at end of file
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
new file mode 100644
index 000000000..4244703ae
--- /dev/null
+++ b/.devcontainer/devcontainer.json
@@ -0,0 +1,42 @@
+// For format details, see https://aka.ms/devcontainer.json. For config options, see the
+// README at: https://github.com/devcontainers/templates/tree/main/src/docker-outside-of-docker-compose
+{
+ "name": "agnext devcontainer",
+ "dockerComposeFile": "docker-compose.yml",
+ "service": "devcontainer",
+ "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
+
+ // Use this environment variable if you need to bind mount your local source code into a new container.
+ "remoteEnv": {
+ "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}"
+ },
+
+ "features": {
+ "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
+ "moby": true,
+ "installDockerBuildx": true,
+ "version": "latest",
+ "dockerDashComposeVersion": "none"
+ },
+ "ghcr.io/devcontainers/features/python:1": {
+ "installTools": true,
+ "version": "latest"
+ }
+ },
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
+ // "forwardPorts": [],
+
+ // Use 'postCreateCommand' to run commands after the container is created.
+ "postCreateCommand": "bash .devcontainer/startup.sh",
+
+ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
+ "remoteUser": "root",
+ "customizations": {
+ "vscode": {
+ "extensions": [
+ "ms-python.python",
+ "ms-python.debugpy"
+ ]
+ }
+ }
+}
diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml
new file mode 100644
index 000000000..b95cf48e5
--- /dev/null
+++ b/.devcontainer/docker-compose.yml
@@ -0,0 +1,26 @@
+version: '3'
+
+services:
+ devcontainer:
+ build:
+ context: .
+ dockerfile: Dockerfile
+
+ volumes:
+ # Forwards the local Docker socket to the container.
+ - /var/run/docker.sock:/var/run/docker-host.sock
+ # Update this to wherever you want VS Code to mount the folder of your project
+ - ../..:/workspaces:cached
+
+ # Overrides default command so things don't shut down after the process ends.
+ entrypoint: /usr/local/share/docker-init.sh
+ command: sleep infinity
+
+ # Uncomment the next four lines if you will use a ptrace-based debuggers like C++, Go, and Rust.
+ # cap_add:
+ # - SYS_PTRACE
+ # security_opt:
+ # - seccomp:unconfined
+
+ # Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
+ # (Adding the "ports" property to this file will not forward from a Codespace.)
diff --git a/.devcontainer/startup.sh b/.devcontainer/startup.sh
new file mode 100644
index 000000000..a9bf588e2
--- /dev/null
+++ b/.devcontainer/startup.sh
@@ -0,0 +1 @@
+#!/bin/bash