[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74FNK77PEVT7XB5SGV5DTAG":3,"skill-same:01M74FNK77PEVT7XB5SGV5DTAG":41},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":14,"categories":15,"keywords":16,"publishedAt":17,"linkOnly":18,"markdownContent":19,"markdownBody":19,"frontMatter":20,"refName":21,"commitSha":22,"skillDirectory":23,"forksCount":12,"repositoryHtmlUrl":24,"repositoryHomepageUrl":6,"ownerHtmlUrl":25,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":26,"install":27,"resources":40},"01M74FNK77PEVT7XB5SGV5DTAG","environment",null,"VarshaDanduri\u002Fudit-agent","VarshaDanduri","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F66090922?v=4","01M74FNHFD0QJCYVRDENWC008E","01M74FNHFX047QSG489FT9QV0Q",0,"MIT","https:\u002F\u002Fgithub.com\u002FVarshaDanduri\u002Fudit-agent\u002Fblob\u002Fmain\u002Fskills\u002Fenvironment\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"# UDIT build runbook — clean-slate devcontainer path\n\nFull reproduction of building 4 UDel web apps from a clean Mac, using the\ndevcontainer base image. Every command executed is below in order.\n\nCovers: **CourseDescription, CoursesSearch, diploma-validation, finalexams**.\n\n---\n\n## 0. Prerequisites on the host (Mac)\n\nInstall these once. Versions used here:\n\n```bash\nbrew install gh git\nbrew install --cask docker            # Docker Desktop, must be running\nbrew install --cask visual-studio-code\ncode --install-extension ms-vscode-remote.remote-containers\n```\n\nYou also need a **GitHub Personal Access Token (classic)** with these scopes:\n\n- `read:packages` — to pull the dcbase container & resolve UDel Maven packages\n- `repo` — to clone the 5 private repos\n\nAuthenticate the host once:\n\n```bash\ngh auth login                          # web flow, paste the token when prompted\ndocker login ghcr.io -u \u003Cyour-gh-username>\n# password = the same PAT\n```\n\n---\n\n## 1. Workspace and clones\n\n```bash\nmkdir -p ~\u002FDownloads\u002FUDIT && cd ~\u002FDownloads\u002FUDIT\n\ngit clone https:\u002F\u002Fgithub.com\u002FUniversity-of-Delaware-IT-ESCS-AD\u002FCourseDescription.git\ngit clone https:\u002F\u002Fgithub.com\u002FUniversity-of-Delaware-IT-ESCS-AD\u002FCoursesSearch.git\ngit clone https:\u002F\u002Fgithub.com\u002FUniversity-of-Delaware-IT-ESCS-AD\u002Fdiploma-validation.git\ngit clone https:\u002F\u002Fgithub.com\u002FUniversity-of-Delaware-IT-ESCS-AD\u002Ffinalexams.git\n```\n\nSwitch each repo to the `devcontainer` branch:\n\n```bash\nfor repo in CourseDescription CoursesSearch diploma-validation finalexams; do\n  ( cd ~\u002FDownloads\u002FUDIT\u002F$repo && git checkout devcontainer )\ndone\n```\n\n---\n\n## 2. dcbase container image\n\nThe devcontainer branches reference\n`ghcr.io\u002Funiversity-of-delaware-it-escs-ad\u002Fartifacts\u002Fdcbase:latest`. As of this\nwriting the org-side ACL for that container has not been granted to outside\ncollaborators, so we instead pull the same image from the maintainer's personal\nGHCR namespace and tag it locally with the org URL the devcontainer expects:\n\n```bash\ndocker pull ghcr.io\u002Fchristophermccurdy\u002Fdcbase:latest\ndocker tag  ghcr.io\u002Fchristophermccurdy\u002Fdcbase:latest \\\n            ghcr.io\u002Funiversity-of-delaware-it-escs-ad\u002Fartifacts\u002Fdcbase:latest\ndocker images | grep dcbase\n```\n\nBoth tags should now point to the same image ID.\n\nWhen the org ACL is fixed, this whole step becomes a single\n`docker pull ghcr.io\u002Funiversity-of-delaware-it-escs-ad\u002Fartifacts\u002Fdcbase:latest`\nand no source files ever change.\n\n---\n\n## 3. Database fixtures (`\u002Fopt\u002Fapps\u002Fdata`)\n\nThe devcontainers bind-mount three host paths into the container:\n\n```\n\u002Fopt\u002Fapps\u002Fdata\u002Fproperties\u002Fdbpool   →  \u002Fopt\u002Fapps\u002Fdata\u002Fproperties\u002Fdbpool\n\u002Fopt\u002Fapps\u002Fdata\u002Fdbobjects.sql.gz    →  \u002Fworkspace\u002Fdbobjects.sql.gz\n\u002Fopt\u002Fapps\u002Fdata\u002Fsysadm.sql.gz       →  \u002Fworkspace\u002Fsysadm.sql.gz\n```\n\nThe fixtures live in `data.tar.gz` in this repo. Extract to the bind-mount root\n(needs sudo on macOS because `\u002Fopt` is root-owned):\n\n```bash\nsudo mkdir -p \u002Fopt\u002Fapps\u002Fdata\nsudo chown $USER \u002Fopt\u002Fapps\u002Fdata\ntar -xzf ~\u002FDownloads\u002FUDIT\u002Fdata.tar.gz -C \u002Fopt\u002Fapps\u002Fdata\u002F\nls \u002Fopt\u002Fapps\u002Fdata\u002F                       # dbobjects.sql.gz, sysadm.sql.gz, properties\u002F\nls \u002Fopt\u002Fapps\u002Fdata\u002Fproperties\u002Fdbpool\u002F     # legtst_dbobjects.properties, satst_sysadm.properties\n```\n\n---\n\n## 4. Per-repo `.devcontainer\u002F.env`\n\nEach devcontainer launches with `--env-file .devcontainer\u002F.env`. The container's\n`\u002Fusr\u002Flocal\u002Fbin\u002Fon-create.sh` reads `GITHUB_USERNAME` \u002F `GITHUB_TOKEN` from those\nenv vars to write `~\u002F.m2\u002Fsettings.xml` so Maven can resolve the private\n`edu.udel.itwd:*` packages from GitHub Packages. There's a template `.env.in`\nchecked in; fill in the real values:\n\n```bash\nfor repo in CourseDescription CoursesSearch diploma-validation finalexams; do\n  cat > ~\u002FDownloads\u002FUDIT\u002F$repo\u002F.devcontainer\u002F.env \u003C\u003C'EOF'\nGITHUB_USERNAME=\u003Cyour-gh-username>\nGITHUB_TOKEN=\u003Cyour-pat>\nEOF\ndone\n```\n\nThese files are gitignored — they never leave the machine.\n\n---\n\n## 5. Open in container & build (per repo)\n\nFor each of the four repos:\n\n```bash\ncode ~\u002FDownloads\u002FUDIT\u002FCourseDescription\n# In VS Code: Cmd+Shift+P → \"Dev Containers: Reopen in Container\"\n```\n\nThe first reopen will:\n\n1. Pull \u002F build the devcontainer image with the four SDKMan features layered on\n   (Java 21 Temurin, Ant, Maven, Tomcat 10.1.52).\n2. Bind-mount `\u002Fopt\u002Fapps\u002Fdata\u002F...`.\n3. Run `postCreateCommand: \u002Fusr\u002Flocal\u002Fbin\u002Fon-create.sh` — generates\n   `~\u002F.m2\u002Fsettings.xml` from the env vars and primes the local Maven cache.\n4. Run `postStartCommand` — starts nginx + tomcat.\n5. Run `postAttachCommand` — `init-dbpools --ignore-globals dbobjects sysadm`\n   loads the `.sql.gz` dumps into the dbpools.\n\nOnce the container is up, build inside it:\n\n| Repo | Build command |\n|---|---|\n| CourseDescription | `mvn clean package` |\n| CoursesSearch | `ant clean dist` |\n| diploma-validation | `mvn clean package` |\n| finalexams | `mvn clean package` |\n\nThe resulting WARs land in each project's `target\u002F` (Maven) or `dist\u002F` (Ant)\ndirectory and are auto-deployed to the container's Tomcat at port 8080\n(forwarded to the host).\n\n---\n\n## 6. Troubleshooting\n\n### 6.1 `bind source path does not exist: \u002Fopt\u002Fapps\u002Fdata\u002F...`\n\nDocker Desktop on macOS runs containers inside a Linux VM that can only\nbind-mount host paths it's been told to share. By default it shares `\u002FUsers`,\n`\u002FVolumes`, `\u002Fprivate`, `\u002Ftmp` — **not `\u002Fopt`**. So `\u002Fopt\u002Fapps\u002Fdata` exists on\ndisk but not from the VM's view.\n\nFix: Docker Desktop menu bar icon → **Settings → Resources → File sharing**,\nclick **+**, add `\u002Fopt`, then **Apply & Restart**. In VS Code:\n**Dev Containers: Rebuild and Reopen in Container**.\n\n### 6.2 `InvalidBaseImagePlatform: pulled with platform \"linux\u002Famd64\", expected \"linux\u002Farm64\"`\n\nWarning, not an error. `dcbase` is x86 only; on Apple Silicon it runs under\nemulation (slower, but works). Ignore.\n\n### 6.3 Maven dependency resolution: `\u003Cartifact> was not found ... resolution is not reattempted`\n\nA previous `mvn` attempt 404'd and Maven cached the failure. Inside the\ncontainer:\n\n```bash\nrm -rf ~\u002F.m2\u002Frepository\u002Fedu\u002Fudel\u002Fitwd\u002F\u003Cartifact-name>\ncd \u002Ftmp\nmvn -B -U dependency:get -Dartifact=\u003CgroupId>:\u003CartifactId>:\u003Cversion>\n```\n\nNote the `-Dartifact` order: `groupId:artifactId:version[:packaging]`.\nPutting `jar` before the version (e.g. `:jar:1.0.0`) makes Maven misparse\n`jar` as the version and produces malformed URLs like\n`\u002F\u003Cartifact>\u002Fjar\u002F\u003Cartifact>-jar.pom`.\n\nIf `dependency:get` still 404s, confirm whether the artifact is actually\npublished to the org's Maven Packages:\n\n```bash\ncurl -s -u \u003Cgh-username>:\u003Cpat> \\\n  \"https:\u002F\u002Fmaven.pkg.github.com\u002FUniversity-of-Delaware-IT-ESCS-AD\u002Fartifacts\u002F\u003Cgroup-path>\u002F\u003CartifactId>\u002F\u003Cversion>\u002F\" \\\n  | head -40\n```\n\nEmpty \u002F 404 there means upstream packaging issue — the maintainer has to\npublish the missing JAR. No client-side workaround.\n\n### 6.4 Re-running `on-create.sh`\n\n```bash\ncd \u002Fworkspaces\u002F\u003CRepoName>\n\u002Fusr\u002Flocal\u002Fbin\u002Fon-create.sh\n```\n\n**Do not `sudo` this script.** `sudo` resets `PATH` and the SDKMan-managed\n`java` \u002F `mvn` binaries become invisible (`java: command not found`).\n\n### 6.5 Tomcat post-start: `cp: cannot stat '.\u002Fstaged\u002Flib': No such file or directory`\n\nCascading failure from §6.3 — when Maven can't resolve a UDel artifact,\n`.\u002Fstaged\u002Flib` is never produced, so the Tomcat post-start step fails. Fix\nthe dependency resolution and rerun `on-create.sh`; this clears.\n\n### 6.6 `Could not find or load main class org.h2.tools.RunScript`\n\nSame cascade. The `init-dbpools` script needs jars that didn't get staged\nbecause `on-create.sh` aborted earlier. Resolve §6.3, rerun `on-create.sh`.\n\n---\n\n## Outstanding (organization-side) work\n\nThese are not user-facing build steps; they're permission grants that need to\nhappen on the UD side before §2's tag alias is unnecessary:\n\n- Grant `darwashiOM` (and other outside collaborators) **Read** on the\n  `university-of-delaware-it-escs-ad\u002Fartifacts\u002Fdcbase` container package via:\n  Package settings → \"Manage Actions access\" \u002F \"Invite collaborator\".\n- Same per-package grant for each of the seven `edu.udel.itwd:*` Maven\n  packages (`udeljar`, `springutils`, `jdbcpool`, `json`, `contentDepot-client`,\n  `ud-parent-pom`, `ud-dependencies`).\n\nOnce both are in place, §2's tag alias becomes a simple\n`docker pull ghcr.io\u002Funiversity-of-delaware-it-escs-ad\u002Fartifacts\u002Fdcbase:latest`.\n",{},"main","cda181b230981b921597b51f665cb74e0427836f","skills\u002Fenvironment","https:\u002F\u002Fgithub.com\u002FVarshaDanduri\u002Fudit-agent","https:\u002F\u002Fgithub.com\u002FVarshaDanduri","2026-05-24 10:05:16",{"source":7,"skillName":5,"commands":28,"prompt":38,"zipAvailable":39},[29,32,35],{"tool":30,"command":31},"npx","npx skills add VarshaDanduri\u002Fudit-agent --skill environment",{"tool":33,"command":34},"bunx","bunx skills add VarshaDanduri\u002Fudit-agent --skill environment",{"tool":36,"command":37},"pnpm","pnpm dlx skills add VarshaDanduri\u002Fudit-agent --skill environment","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVarshaDanduri\u002Fudit-agent\u002Fblob\u002Fmain\u002Fskills\u002Fenvironment\u002FSKILL.md",true,[],[42,49],{"skillNo":43,"name":44,"nameZh":6,"description":45,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":46,"categories":47,"keywords":48,"publishedAt":17},"01M74FNR8V11452CC4XJ3ZE1VB","github-build-readme","Use when writing or updating a GitHub README\u002Frunbook that documents how to build, set up, or reproduce a project from a clean machine. Captures the styling, structure, and conventions for clean-slate build docs (devcontainer setup, multi-repo workspaces, troubleshooting sections).","https:\u002F\u002Fgithub.com\u002FVarshaDanduri\u002Fudit-agent\u002Fblob\u002Fmain\u002Fskills\u002Freadme\u002FSKILL.md",[],[],{"skillNo":50,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":17},"01M74FNQCTCQXS5C6F63S6QPTW","git-operations","https:\u002F\u002Fgithub.com\u002FVarshaDanduri\u002Fudit-agent\u002Fblob\u002Fmain\u002Fskills\u002Fgit-operations\u002FSKILL.md",[],[]]