Skip to content

Add devcontainer and automations configuration#149

Merged
drzo merged 1 commit intoOpenCoq:mainfrom
danregima:devcontainer-setup
Mar 10, 2026
Merged

Add devcontainer and automations configuration#149
drzo merged 1 commit intoOpenCoq:mainfrom
danregima:devcontainer-setup

Conversation

@danregima
Copy link

Replaces the stub .devcontainer/devcontainer.json (which referenced an empty Dockerfile) with a working configuration, and adds .ona/automations.yaml migrating tasks from .gitpod.yml.

Changes

.devcontainer/devcontainer.json

  • Base image: mcr.microsoft.com/devcontainers/base:ubuntu-24.04
  • Features: Python and Node.js (added alongside the C++ base since the project uses Python bindings and some Node.js tooling)
  • Forwards ports 17001/18001 (CogServer), 5000 (REST API), 8080 (web demos)
  • VS Code extensions: ms-vscode.cpptools, ms-vscode.cmake-tools, ms-python.python

.ona/automations.yaml

  • install-deps (postDevcontainerStart): installs all apt packages and Python packages from .gitpod.Dockerfile
  • setup-env (postDevcontainerStart, depends on install-deps): runs .gitpod/setup.sh to configure env vars and create build-opencog/build-component helper scripts
  • build-opencog (manual, depends on setup-env): builds cogutil/atomspace/cogserver in dependency order — kept manual since it is long-running and not needed on every environment start

The .gitpod.yml welcome-message command task was not migrated as it has no automation value.

Replaces the stub .devcontainer/devcontainer.json (which referenced an
empty Dockerfile) with a working configuration based on
mcr.microsoft.com/devcontainers/base:ubuntu-24.04 plus Python and Node.js
features.

Adds .ona/automations.yaml migrating tasks from .gitpod.yml:
- install-deps: installs apt and pip packages on postDevcontainerStart
- setup-env: runs .gitpod/setup.sh to configure env vars and build scripts
- build-opencog: manual trigger to build cogutil/atomspace/cogserver

The .gitpod.yml welcome-message command task was dropped as it has no
automation value.

Co-authored-by: Ona <no-reply@ona.com>
@drzo drzo merged commit 546f182 into OpenCoq:main Mar 10, 2026
18 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants