Skip to content

Add shared QueerGlobal Cloud Agent environment (queerglobal.com) - #7

Open
mnyon-grandkru wants to merge 1 commit into
mainfrom
cursor/org-shared-cloud-env-315f
Open

mnyon-grandkru wants to merge 1 commit into
mainfrom
cursor/org-shared-cloud-env-315f

Conversation

@mnyon-grandkru

Copy link
Copy Markdown

What

Adds a Cloud Agent development environment for queerglobal.com, built on a shared universal base image intended to be reused across every repo in the QueerGlobal org.

  • .cursor/Dockerfile — shared base image: Ubuntu 24.04 with Go 1.22.5, Node 20, Python 3.12, Docker CLI + Compose, and common CLI tooling (git, make, jq, shellcheck, golangci-lint 1.59.1, etc.). Language runtimes/toolchains live here so any repo in the org can start from an identical base.
  • .cursor/environment.json — uses that image and serves the static site via python3 -m http.server 8000 (exposed on port 8000). Nothing to build for this repo; the toolchain is shared for org consistency.

Why a shared image

The org spans several stacks (Go services, a React/TS frontend, this static site, an OpenAPI/mock artwork API, docs). A single base image gives every repo the same reproducible toolchain; each repo layers its own install/terminals on top. Versions are pinned to what the repos already use (e.g. Go 1.22.5 matches hub-framework and go-jsonschema/.tool-versions; golangci-lint 1.59.1 matches go-jsonschema/.tool-versions).

Validation

Because this is a custom Dockerfile (repo-managed) environment, it was validated by building the image with Docker and exercising it end to end:

Check Result
docker build of .cursor/Dockerfile Succeeded
Toolchain in image Go 1.22.5, Node 20.20.2, npm 10.8.2, Python 3.12.3, Docker 29.1.3 + Compose 2.40.3, golangci-lint 1.59.1, shellcheck 0.9.0
queerglobal.com served from image (python3 -m http.server 8000) /, /aboutus/, /blog/, /contactus/, /donations/, /resources/, CSS + PNG assets all HTTP 200
qg-config-go (go build ./... + go vet) in image Passed
hub-framework (go build ./...) in image Passed
qg-frontend-v2 (npm ci + CI=true npm run build) in image Passed (build needs NODE_OPTIONS=--openssl-legacy-provider for its legacy react-scripts, set in that repo's own config)

Homepage rendered from the local server:

QueerGlobal homepage rendered from the local Cloud Agent environment

Rollout

This PR sets up queerglobal.com only. The same .cursor/Dockerfile is meant to be copied into each other org repo, paired with a repo-specific .cursor/environment.json (e.g. npm ci + dev server for qg-frontend-v2; go build/go test for the Go repos; dockerized mock for qg-artwork-api). Those will land as separate PRs from per-repo Cloud Agent runs.

Note

Repo-managed .cursor/environment.json is the highest-precedence environment source, so merging this PR is what activates the environment for future Cloud Agents on this repo — there is no separate dashboard "Save" step for this style of setup.

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Introduce a shared universal base image (Go 1.22.5 + Node 20 + Python 3 +
Docker + common CLI tooling) at .cursor/Dockerfile, reused across the org,
and wire queerglobal.com's .cursor/environment.json to serve the static
site via python http.server on port 8000.

Co-authored-by: Mark Nyon <mnyon-grandkru@users.noreply.github.com>
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