Compare commits
46 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fb2bac752a | |||
| 99acac3136 | |||
| 5c0ed9fbcd | |||
| b4007504b7 | |||
| a482ef9ef9 | |||
| 1bfa31acc0 | |||
| 2ab41bdce5 | |||
| 01f842323e | |||
| d6ea94f20d | |||
| 6d65f29674 | |||
| 4c098708f4 | |||
| 3301e2463e | |||
| ae289072ed | |||
| 696b328a7d | |||
| 38d2e1e965 | |||
| 1de58d4742 | |||
| 84a44f0477 | |||
| a5180ad781 | |||
| 8ba340e32f | |||
| c5538a84d1 | |||
| 81c343ddb6 | |||
| 091a9a9695 | |||
| ab0bcc25f3 | |||
| fa22a0d512 | |||
| b779817f2c | |||
| b899233138 | |||
| 7ffe1f0b34 | |||
| 75c2f21bae | |||
| 8174773cfb | |||
| 898660fd30 | |||
| b76eba3c4f | |||
| 67e9e17eab | |||
| 543be42786 | |||
| 05ef5690b1 | |||
| 1b0d53291f | |||
| f95aa89208 | |||
| c61c4d9d86 | |||
| bd6dc0a865 | |||
| a7b93e380a | |||
| ebd8b2e424 | |||
| 5e0b7e595d | |||
| 46cb1aac07 | |||
| 45dfb9b7ed | |||
| c6decd1f08 | |||
| cc290d65ff | |||
| 6f76e53e5d |
@@ -0,0 +1,83 @@
|
||||
# Builds the DevOps IT manual (manual/) into a PDF on every push to main
|
||||
# that touches the manual or this workflow, and uploads it as an artifact.
|
||||
name: Build IT manual
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "manual/**"
|
||||
- ".gitea/workflows/manual.yml"
|
||||
workflow_dispatch: # lets a team member re-run a build by hand from the Actions tab
|
||||
|
||||
jobs:
|
||||
build-manual:
|
||||
# Runner label registered in Part 2. The label maps to the job image built
|
||||
# from manual/ci/Dockerfile (TeX Live + Node.js), so each job runs in a
|
||||
# fresh, temporary container -- never inside the Gitea container.
|
||||
runs-on: latex
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
steps:
|
||||
- name: Check out the triggering commit
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Generate build metadata
|
||||
working-directory: manual
|
||||
env:
|
||||
GIT_COMMIT: ${{ github.sha }}
|
||||
BUILD_NUMBER: ${{ github.run_number }}
|
||||
run: |
|
||||
MANUAL_VERSION="v1.5"
|
||||
SHORT_SHA="${GIT_COMMIT:0:7}"
|
||||
BUILD_ID="${MANUAL_VERSION}+build.${BUILD_NUMBER}.${SHORT_SHA}"
|
||||
|
||||
cat > build-metadata.tex <<EOF
|
||||
\newcommand{\ManualVersion}{${MANUAL_VERSION}}
|
||||
\newcommand{\BuildIdentifier}{${BUILD_ID}}
|
||||
\newcommand{\BuildCommit}{${GIT_COMMIT}}
|
||||
\newcommand{\BuildRunNumber}{${BUILD_NUMBER}}
|
||||
EOF
|
||||
|
||||
cat >> build-metadata.tex <<'EOF'
|
||||
\noindent\textbf{Manual version:} \ManualVersion\\
|
||||
\textbf{Build identifier:} \BuildIdentifier\\
|
||||
\textbf{Commit hash:} \BuildCommit\\
|
||||
\textbf{Gitea Actions run:} \BuildRunNumber
|
||||
EOF
|
||||
|
||||
- name: Record build identity and toolchain
|
||||
run: |
|
||||
SHORT_SHA="${GITHUB_SHA::7}"
|
||||
echo "SHORT_SHA=${SHORT_SHA}" >> "$GITHUB_ENV"
|
||||
echo "Commit: ${GITHUB_SHA} (${SHORT_SHA})"
|
||||
echo "Run number: ${GITHUB_RUN_NUMBER}"
|
||||
pdflatex --version | head -n 1
|
||||
latexmk -v | head -n 2 | tail -n 1
|
||||
python3 -c "import pygments; print('Pygments', pygments.__version__)"
|
||||
|
||||
- name: Compile the manual
|
||||
working-directory: manual
|
||||
# All options live in manual/.latexmkrc; it stops with a non-zero
|
||||
# exit code on the first LaTeX error, which fails this step.
|
||||
run: latexmk devopsAssignment.tex
|
||||
|
||||
- name: Verify the PDF exists
|
||||
working-directory: manual
|
||||
run: |
|
||||
if [ ! -s devopsAssignment.pdf ]; then
|
||||
echo "ERROR: manual/devopsAssignment.pdf is missing or empty"
|
||||
exit 1
|
||||
fi
|
||||
ls -l devopsAssignment.pdf
|
||||
|
||||
- name: Upload the PDF as an artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: it-manual-build-${{ github.run_number }}-${{ env.SHORT_SHA }}
|
||||
path: manual/devopsAssignment.pdf
|
||||
if-no-files-found: error
|
||||
retention-days: 30
|
||||
@@ -0,0 +1 @@
|
||||
__pycache__/
|
||||
@@ -0,0 +1,188 @@
|
||||
// Scrap-Web pipeline: Chapter 4 CI checks + Chapter 6 secure delivery.
|
||||
//
|
||||
// Trust boundary:
|
||||
// * Every build (branches and pull requests) runs the Chapter 4 checks on the
|
||||
// controller's built-in node. No credentials, no Docker socket.
|
||||
// * Delivery stages run only for trusted branches, on the 'delivery' agent,
|
||||
// which holds the Docker socket and the registry/deploy credentials.
|
||||
// TODO before submission: remove the feature branch from TRUSTED_BRANCH so
|
||||
// only reviewed code on main can deliver.
|
||||
|
||||
def TRUSTED_BRANCH = 'main|feature/issue-24-delivery'
|
||||
|
||||
pipeline {
|
||||
agent none
|
||||
|
||||
options {
|
||||
skipDefaultCheckout()
|
||||
disableConcurrentBuilds() // no competing releases
|
||||
timeout(time: 30, unit: 'MINUTES')
|
||||
buildDiscarder(logRotator(numToKeepStr: '50'))
|
||||
}
|
||||
|
||||
environment {
|
||||
REGISTRY = 'git.ssw590-08.me'
|
||||
IMAGE = 'git.ssw590-08.me/ssw-590-08/pricing'
|
||||
}
|
||||
|
||||
stages {
|
||||
// ---------------- Chapter 4 CI (all builds, controller) ----------------
|
||||
stage('CI checks') {
|
||||
agent { label 'built-in' }
|
||||
steps {
|
||||
checkout scm
|
||||
sh 'git rev-parse HEAD'
|
||||
sh 'python3 --version'
|
||||
sh 'python3 -m py_compile pricing.py tests/test_pricing.py'
|
||||
sh 'python3 -m unittest discover -s tests -v'
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------- Chapter 6 delivery (trusted branches, agent) ---------
|
||||
stage('Delivery') {
|
||||
when { beforeAgent true; branch pattern: TRUSTED_BRANCH, comparator: 'REGEXP' }
|
||||
agent { label 'delivery' }
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
checkout scm
|
||||
script {
|
||||
env.APP_COMMIT = sh(script: 'git rev-parse HEAD', returnStdout: true).trim()
|
||||
env.IMAGE_TAG = "${env.IMAGE}:${env.APP_COMMIT}"
|
||||
}
|
||||
echo "Source commit: ${env.APP_COMMIT}"
|
||||
}
|
||||
}
|
||||
|
||||
stage('Unit tests') {
|
||||
steps {
|
||||
dir('pricing') {
|
||||
sh '''
|
||||
python3 -m venv .venv
|
||||
.venv/bin/pip install -q --require-hashes -r requirements.txt
|
||||
.venv/bin/python -m py_compile app.py test_app.py
|
||||
.venv/bin/python -m unittest -v
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 6.4.5 (kholmes): dependency + secret checks on the source.
|
||||
stage('Security scan: source') {
|
||||
steps {
|
||||
sh '''
|
||||
if [ -x security/scan.sh ]; then
|
||||
security/scan.sh source
|
||||
else
|
||||
echo "security/scan.sh not added yet (6.4.5)"
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build image') {
|
||||
steps {
|
||||
dir('pricing') {
|
||||
sh 'docker build --build-arg APP_COMMIT="$APP_COMMIT" -t "$IMAGE_TAG" .'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 6.4.5 (kholmes): image vulnerability scan before publishing.
|
||||
stage('Security scan: image') {
|
||||
steps {
|
||||
sh '''
|
||||
if [ -x security/scan.sh ]; then
|
||||
security/scan.sh image "$IMAGE_TAG"
|
||||
else
|
||||
echo "security/scan.sh not added yet (6.4.5)"
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
stage('Publish') {
|
||||
steps {
|
||||
withCredentials([usernamePassword(credentialsId: 'gitea-registry-push',
|
||||
usernameVariable: 'REG_USER',
|
||||
passwordVariable: 'REG_TOKEN')]) {
|
||||
// Push, then delete the local copy and pull it back from the
|
||||
// registry, so the recorded digest is the registry's, not a local ID.
|
||||
sh '''
|
||||
printf '%s' "$REG_TOKEN" | docker login "$REGISTRY" -u "$REG_USER" --password-stdin
|
||||
docker push "$IMAGE_TAG"
|
||||
docker image rm "$IMAGE_TAG"
|
||||
docker pull "$IMAGE_TAG"
|
||||
docker logout "$REGISTRY"
|
||||
docker image inspect "$IMAGE_TAG" --format '{{index .RepoDigests 0}}' > image-digest.txt
|
||||
echo "Published: $(cat image-digest.txt)"
|
||||
'''
|
||||
}
|
||||
script { env.IMAGE_DIGEST = readFile('image-digest.txt').trim() }
|
||||
writeFile file: 'build-record.txt', text: """source_commit: ${env.APP_COMMIT}
|
||||
image_tag: ${env.IMAGE_TAG}
|
||||
image_digest: ${env.IMAGE_DIGEST}
|
||||
jenkins_build: ${env.BUILD_URL}
|
||||
"""
|
||||
archiveArtifacts artifacts: 'image-digest.txt, build-record.txt', fingerprint: true
|
||||
}
|
||||
}
|
||||
|
||||
// 6.4.6: deploy the digest just published to staging with Ansible,
|
||||
// then rerun unchanged and require changed=0 (idempotence).
|
||||
stage('Deploy staging') {
|
||||
steps {
|
||||
script {
|
||||
// Expected behaviour comes from the source, not from config.
|
||||
def version = sh(script: "sed -n 's/^VERSION = \"\\(.*\\)\"/\\1/p' pricing/app.py", returnStdout: true).trim()
|
||||
def unit = sh(script: "sed -n 's/^UNIT_PRICE = //p' pricing/app.py", returnStdout: true).trim()
|
||||
env.APP_VERSION = version
|
||||
writeFile file: "release-${version}-staging.yml", text: """target_env: staging
|
||||
release_image: ${env.IMAGE_DIGEST}
|
||||
expected_version: ${version}
|
||||
expected_commit: ${env.APP_COMMIT}
|
||||
expected_total: ${3 * (unit as Integer)}
|
||||
public_url: https://staging.ssw590-08.me
|
||||
proxy_network: gitea-net
|
||||
"""
|
||||
}
|
||||
archiveArtifacts artifacts: "release-${env.APP_VERSION}-staging.yml", fingerprint: true
|
||||
withCredentials([sshUserPrivateKey(credentialsId: 'deploy-ssh', keyFileVariable: 'DEPLOY_KEY')]) {
|
||||
sh '''
|
||||
export PATH=/opt/ansible-venv/bin:$PATH
|
||||
ansible-playbook -i ansible/inventory.ini ansible/deploy.yml --syntax-check
|
||||
ansible-playbook -i ansible/inventory.ini ansible/deploy.yml \
|
||||
--private-key "$DEPLOY_KEY" -e @release-$APP_VERSION-staging.yml
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Staging idempotence') {
|
||||
steps {
|
||||
withCredentials([sshUserPrivateKey(credentialsId: 'deploy-ssh', keyFileVariable: 'DEPLOY_KEY')]) {
|
||||
sh '''
|
||||
export PATH=/opt/ansible-venv/bin:$PATH
|
||||
ansible-playbook -i ansible/inventory.ini ansible/deploy.yml \
|
||||
--private-key "$DEPLOY_KEY" -e @release-$APP_VERSION-staging.yml | tee rerun.log
|
||||
grep -E 'startup +: .*changed=0 +unreachable=0 +failed=0' rerun.log \
|
||||
|| { echo "Second run changed something: not idempotent"; exit 1; }
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 6.4.7 (kholmes): approval + production deploy.
|
||||
stage('Approve and deploy production') {
|
||||
steps { echo 'Not implemented yet (6.4.7).' }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
success { echo 'All stages passed.' }
|
||||
failure { echo 'A stage failed: see the stage view for which one.' }
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,7 @@
|
||||
# Scrap-Web
|
||||
|
||||
This Repo is here to act as Group 8's repo for the SSW590 course
|
||||
This Repo is here to act as Group 8's repo for the SSW590 course
|
||||
|
||||
In the 10/2 assignment, we added a domain, reverse proxy, https, and created our repo in Gitea
|
||||
|
||||
In the 10/10 assignment, we added an automation workflow for compiling a LaTeX artifact upon git pushes
|
||||
@@ -0,0 +1,21 @@
|
||||
services:
|
||||
jenkins:
|
||||
build: .
|
||||
image: custom-jenkins:lts-jdk21-python3
|
||||
container_name: jenkins
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
JAVA_OPTS: "-Xms256m -Xmx512m"
|
||||
volumes:
|
||||
- jenkins-home:/var/jenkins_home
|
||||
networks:
|
||||
- gitea-net
|
||||
|
||||
volumes:
|
||||
jenkins-home:
|
||||
name: jenkins_home
|
||||
|
||||
networks:
|
||||
gitea-net:
|
||||
external: true
|
||||
name: gitea-net
|
||||
@@ -0,0 +1,29 @@
|
||||
# LaTeX build output: generated by every compile, never committed.
|
||||
# The PDF is produced by the Gitea Actions workflow and downloaded as an artifact.
|
||||
*.pdf
|
||||
*.aux
|
||||
*.log
|
||||
*.out
|
||||
*.toc
|
||||
*.lof
|
||||
*.lot
|
||||
*.bbl
|
||||
*.blg
|
||||
*.idx
|
||||
*.ilg
|
||||
*.ind
|
||||
*.glo
|
||||
*.gls
|
||||
*.glg
|
||||
*.acn
|
||||
*.acr
|
||||
*.alg
|
||||
*.ist
|
||||
*.fls
|
||||
*.fdb_latexmk
|
||||
*.synctex.gz
|
||||
_minted*/
|
||||
|
||||
# Exception: PDFs used as figures inside the manual must stay tracked.
|
||||
# Uncomment and adjust if you ever include a PDF image:
|
||||
# !images/**/*.pdf
|
||||
@@ -0,0 +1,21 @@
|
||||
# Build configuration for the SSW 590 DevOps IT manual.
|
||||
# Usage (from the repository root): latexmk devopsAssignment.tex
|
||||
|
||||
# Produce a PDF with pdflatex.
|
||||
$pdf_mode = 1;
|
||||
|
||||
# -shell-escape : required by the minted package (calls Python Pygments)
|
||||
# -interaction=nonstopmode, -halt-on-error : stop on the first LaTeX error
|
||||
# instead of waiting for input, so CI fails clearly
|
||||
# -file-line-error : print errors as file:line:message
|
||||
$pdflatex = 'pdflatex -shell-escape -interaction=nonstopmode -halt-on-error -file-line-error %O %S';
|
||||
|
||||
# Run makeglossaries when the glossary or acronym inputs change.
|
||||
# (bibtex and makeindex are handled by latexmk automatically.)
|
||||
add_cus_dep('glo', 'gls', 0, 'run_makeglossaries');
|
||||
add_cus_dep('acn', 'acr', 0, 'run_makeglossaries');
|
||||
sub run_makeglossaries {
|
||||
return system("makeglossaries \"$_[0]\"");
|
||||
}
|
||||
|
||||
push @generated_exts, 'glo', 'gls', 'glg', 'acn', 'acr', 'alg', 'ist';
|
||||
|
After Width: | Height: | Size: 232 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 52 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 107 KiB |
|
After Width: | Height: | Size: 111 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 74 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 91 KiB |
|
After Width: | Height: | Size: 584 KiB |
|
After Width: | Height: | Size: 126 KiB |
|
After Width: | Height: | Size: 142 KiB |
|
After Width: | Height: | Size: 94 KiB |
|
After Width: | Height: | Size: 138 KiB |
|
After Width: | Height: | Size: 327 KiB |
|
After Width: | Height: | Size: 216 KiB |
|
After Width: | Height: | Size: 146 KiB |
|
After Width: | Height: | Size: 192 KiB |
|
After Width: | Height: | Size: 159 KiB |
|
After Width: | Height: | Size: 194 KiB |
|
After Width: | Height: | Size: 220 KiB |
|
After Width: | Height: | Size: 617 KiB |
|
After Width: | Height: | Size: 169 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 422 KiB |
|
After Width: | Height: | Size: 157 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 174 KiB |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 47 KiB |
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 48 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 264 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 52 KiB |
|
After Width: | Height: | Size: 2.0 MiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 52 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 123 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 131 KiB |
|
After Width: | Height: | Size: 160 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 432 KiB |
|
After Width: | Height: | Size: 235 KiB |
|
After Width: | Height: | Size: 151 KiB |
|
After Width: | Height: | Size: 188 KiB |
|
After Width: | Height: | Size: 522 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 134 KiB |
|
After Width: | Height: | Size: 94 KiB |
|
After Width: | Height: | Size: 472 KiB |
|
After Width: | Height: | Size: 257 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 47 KiB |
|
After Width: | Height: | Size: 281 KiB |
|
After Width: | Height: | Size: 104 KiB |
|
After Width: | Height: | Size: 172 KiB |
|
After Width: | Height: | Size: 52 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 105 KiB |
|
After Width: | Height: | Size: 142 KiB |
|
After Width: | Height: | Size: 98 KiB |
|
After Width: | Height: | Size: 85 KiB |
|
After Width: | Height: | Size: 120 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 53 KiB |
@@ -0,0 +1,5 @@
|
||||
# Scrap-Web
|
||||
|
||||
This Repo is here to act as Group 8's repo for the SSW590 course
|
||||
|
||||
In the 10/2 assignment, we added a domain, reverse proxy, https, and created our repo in Gitea
|
||||
@@ -0,0 +1,5 @@
|
||||
This assignment guides students through a reproducible DevOps activity. It
|
||||
defines the learning objectives, environment boundary, workflow, evidence,
|
||||
reflection, and submission criteria. Replace bracketed text with assignment-
|
||||
specific facts before release. Students should be able to recreate the work
|
||||
from the submitted automation and runbook rather than from undocumented manual steps.
|
||||
@@ -0,0 +1,31 @@
|
||||
# Job image for the "latex" Gitea runner label (see .gitea/workflows/manual.yml).
|
||||
#
|
||||
# Base: official TeX Live image. It already includes Python + Pygments, which
|
||||
# the minted package needs. A fixed release tag is used instead of "latest" so
|
||||
# builds are reproducible; record the resolved digest in the manual.
|
||||
FROM texlive/texlive:TL2025-historic
|
||||
|
||||
# The workflow's actions (checkout, upload-artifact) are JavaScript actions and
|
||||
# need Node.js inside the job container; git lets checkout do a real clone.
|
||||
# Packages come from the image's own Debian repositories -- no downloaded scripts.
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
nodejs git ca-certificates python3 python3-pip python3-venv curl \
|
||||
&& python3 -m venv /opt/latex-venv \
|
||||
&& /opt/latex-venv/bin/pip install --upgrade pip \
|
||||
&& /opt/latex-venv/bin/pip install --upgrade latexminted==0.7.1 Pygments \
|
||||
&& mkdir -p /tmp/minted-src /usr/local/share/texmf/tex/latex/minted \
|
||||
&& curl -fsSL https://mirrors.ctan.org/macros/latex/contrib/minted/minted.dtx \
|
||||
-o /tmp/minted-src/minted.dtx \
|
||||
&& curl -fsSL https://mirrors.ctan.org/macros/latex/contrib/minted/minted.ins \
|
||||
-o /tmp/minted-src/minted.ins \
|
||||
&& cd /tmp/minted-src \
|
||||
&& latex minted.ins \
|
||||
&& cp minted.sty /usr/local/texlive/2025/texmf-dist/tex/latex/minted/minted.sty \
|
||||
&& mktexlsr \
|
||||
&& rm -rf /tmp/minted-src \
|
||||
&& mktexlsr \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV PATH="/opt/latex-venv/bin:/usr/local/bin:${PATH}"
|
||||
@@ -0,0 +1,367 @@
|
||||
%%
|
||||
%% This is file `cornell.cls',
|
||||
%% generated with the docstrip utility.
|
||||
%%
|
||||
%% The original source files were:
|
||||
%%
|
||||
%% cornell.dtx (with options: `class')
|
||||
%%
|
||||
%% IMPORTANT NOTICE:
|
||||
%%
|
||||
%% For the copyright see the source file.
|
||||
%%
|
||||
%% Any modified versions of this file must be renamed
|
||||
%% with new filenames distinct from cornell.cls.
|
||||
%%
|
||||
%% For distribution of the original source see the terms
|
||||
%% for copying and modification in the file cornell.dtx.
|
||||
%%
|
||||
%% This generated file may be distributed as long as the
|
||||
%% original source files, as listed above, are part of the
|
||||
%% same distribution. (The sources need not necessarily be
|
||||
%% in the same archive or directory.)
|
||||
%% Document class `cornell' to use with LaTeX 2e.
|
||||
%% Based on `crnlphd' class. The following is from the file `crnlphd.dtx':
|
||||
%% Based loosely on old cuphdthesis style file.
|
||||
%% Found to give good results, according to the thesis secretary.
|
||||
%% File: crnlphd.dtx Copyright (C) 1994 Sergio Gelato
|
||||
%% Made available without any warranty, express or implied.
|
||||
%% Modifications
|
||||
%% 03/26/98 Mike Heisler
|
||||
%% Conform to Eric's final version. Margins are subject to
|
||||
%% The whim of the printer.
|
||||
%% 10/10/97 Mike Heisler and Eric Dahl
|
||||
%% Altered footnotesize and changed the Acknowledgement and
|
||||
%% Biographical titles per thesis secretary guideline that
|
||||
%% they must match the rest of the document, i.e. flush left
|
||||
%% and capitalized rather than all caps
|
||||
%% 05/21/97 Mike Heisler
|
||||
%% Added a 'papers' option to handle bibliographis as sections
|
||||
%% at the end of each chapter. Reduced top margin.
|
||||
%%
|
||||
%% $Id$
|
||||
%% \CharacterTable
|
||||
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
|
||||
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
|
||||
%% Digits \0\1\2\3\4\5\6\7\8\9
|
||||
%% Exclamation \! Double quote \" Hash (number) \#
|
||||
%% Dollar \$ Percent \% Ampersand \&
|
||||
%% Acute accent \' Left paren \( Right paren \)
|
||||
%% Asterisk \* Plus \+ Comma \,
|
||||
%% Minus \- Point \. Solidus \/
|
||||
%% Colon \: Semicolon \; Less than \<
|
||||
%% Equals \= Greater than \> Question mark \?
|
||||
%% Commercial at \@ Left bracket \[ Backslash \\
|
||||
%% Right bracket \] Circumflex \^ Underscore \_
|
||||
%% Grave accent \` Left brace \{ Vertical bar \|
|
||||
%% Right brace \} Tilde \~}
|
||||
%%
|
||||
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
|
||||
\ProvidesClass{cornell}
|
||||
[1998/03/26 v2.0
|
||||
Cornell University thesis class]
|
||||
\newif\ifphd
|
||||
\DeclareOption{phd}{\phdtrue}
|
||||
\DeclareOption{master}{\phdfalse}
|
||||
\ExecuteOptions{phd}
|
||||
\newif\ifpapers
|
||||
\DeclareOption{papers}{\paperstrue}
|
||||
\DeclareOption{10pt}{%
|
||||
\OptionNotUsed%
|
||||
\ClassWarningNoLine{cornell}{Font size 10pt not allowed; using 12pt}%
|
||||
}
|
||||
\DeclareOption{11pt}{%
|
||||
\OptionNotUsed%
|
||||
\ClassWarningNoLine{cornell}{Font size 11pt not allowed; using 12pt}%
|
||||
}
|
||||
\newcommand{\prelim@contents}[1]{}
|
||||
\DeclareOption{tocprelim}{%
|
||||
\renewcommand{\prelim@contents}[1]{\addcontentsline{toc}{section}{#1}}
|
||||
}
|
||||
\DeclareOption*{%
|
||||
\PassOptionsToClass{\CurrentOption}{report}%
|
||||
}
|
||||
\ProcessOptions
|
||||
|
||||
\LoadClass[12pt]{report}[1994/06/01]
|
||||
\renewcommand{\defaultscriptratio}{.75}
|
||||
\renewcommand{\defaultscriptscriptratio}{.6}
|
||||
\setlength\headsep{25\p@}
|
||||
\if@twocolumn
|
||||
\else
|
||||
\setlength\oddsidemargin{0in}
|
||||
\setlength\evensidemargin{0in}
|
||||
\setlength\textwidth{6.5in}
|
||||
\setlength\topmargin{-0.5in}
|
||||
\setlength\headheight{0.2in}
|
||||
\setlength\headsep{0.35in}
|
||||
\setlength\textheight{8.85in}
|
||||
\setlength\footskip{0.5in}
|
||||
\setlength\marginparwidth{0.85in}
|
||||
\setlength\marginparsep{0.125in}
|
||||
\fi
|
||||
\if@compatibility
|
||||
\setlength\topmargin{0\p@}
|
||||
\else
|
||||
\fi
|
||||
\newcommand{\ps@cornell}{%
|
||||
\def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
|
||||
\def\@oddfoot{}%
|
||||
\def\@evenhead{\thepage\hfil{\slshape\leftmark}}%
|
||||
\def\@evenfoot{}%
|
||||
\def\chaptermark##1{}%
|
||||
\def\sectionmark##1{}%
|
||||
}
|
||||
\newcommand{\ps@cornellc}{%
|
||||
\def\@oddhead{\hfil\thepage\hfil}%
|
||||
\def\@oddfoot{}%
|
||||
\def\@evenhead{\@oddhead}%
|
||||
\def\@evenfoot{}%
|
||||
\def\chaptermark##1{}%
|
||||
\def\sectionmark##1{}%
|
||||
}
|
||||
\raggedbottom
|
||||
\newcommand{\@prolformat}[1]{{\begin{flushleft} \Huge #1 \end{flushleft}} }
|
||||
\newcommand{\ackname}{\@prolformat{Acknowledgements}}
|
||||
\newcommand{\bioname}{\@prolformat{Biographical Sketch}}
|
||||
\renewcommand{\contentsname}{\@prolformat{Table of Contents}}
|
||||
\renewcommand{\listtablename}{\@prolformat{List of Tables}}
|
||||
\renewcommand{\listfigurename}{\@prolformat{List of Figures}}
|
||||
\renewcommand{\l@figure}{\@dottedtocline{1}{1.5em}{2.6em}}
|
||||
\let\l@table\l@figure
|
||||
|
||||
\renewenvironment{thebibliography}[1]
|
||||
{\ifpapers \clearpage \section*{\bibname%
|
||||
\@mkboth{\uppercase{\bibname}}{\uppercase{\bibname}}}%
|
||||
\else%
|
||||
\chapter*{\bibname%
|
||||
\@mkboth{\uppercase{\bibname}}{\uppercase{\bibname}}}%
|
||||
\fi%
|
||||
\list{\@biblabel{\arabic{enumiv}}}%
|
||||
{\settowidth\labelwidth{\@biblabel{#1}}%
|
||||
\leftmargin\labelwidth
|
||||
\advance\leftmargin\labelsep
|
||||
\@openbib@code
|
||||
\usecounter{enumiv}%
|
||||
\let\p@enumiv\@empty
|
||||
\renewcommand\theenumiv{\arabic{enumiv}}}%
|
||||
\sloppy\clubpenalty4000\widowpenalty4000%
|
||||
\sfcode`\.\@m\relax
|
||||
\ifpapers%
|
||||
\addcontentsline{toc}{section}{\bibname}%
|
||||
\else%
|
||||
\addcontentsline{toc}{chapter}{\bibname}%
|
||||
\fi
|
||||
\singlespacing}
|
||||
{\def\@noitemerr
|
||||
{\@latex@warning{Empty `thebibliography' environment}}%
|
||||
\normalspacing
|
||||
\endlist}
|
||||
|
||||
\newcommand{\@titlesize}{\Large}
|
||||
\newcommand{\@subtitlesize}{\large}
|
||||
\newcommand{\@authorsize}{\normalsize} % No Pharaoh he.
|
||||
\newcommand{\@conferralmonth}{January}
|
||||
\newcommand{\@conferralyear}{}
|
||||
|
||||
\newcommand{\titlesize}[1]{\renewcommand{\@titlesize}{#1}}
|
||||
\newcommand{\subtitlesize}[1]{\renewcommand{\@subtitlesize}{#1}}
|
||||
\newcommand{\authorsize}[1]{\renewcommand{\@authorsize}{#1}}
|
||||
\newcommand{\conferraldate}[2]{%
|
||||
\renewcommand{\@conferralmonth}{#1}
|
||||
\renewcommand{\@conferralyear}{#2}
|
||||
}
|
||||
\newcommand{\@degreefield}{Master of Science} %CHANGED
|
||||
\newcommand{\degreefield}[1]{\renewcommand{\@degreefield}{#1}} %CHANGED
|
||||
|
||||
\renewcommand{\maketitle}{%
|
||||
\begin{titlepage}%
|
||||
\vspace*{-0.24in}
|
||||
\begin{center}%
|
||||
\@titlesize \@title
|
||||
\end{center}
|
||||
\vfill
|
||||
%\begin{center}
|
||||
%\@subtitlesize
|
||||
%A \ifphd Dissertation \else Thesis \fi \\ %CHANGED
|
||||
%Presented to the Faculty of the Graduate School \\
|
||||
%of Cornell University \\
|
||||
%in Partial Fulfillment of the Requirements for the Degree of \\
|
||||
%\ifphd Doctor of Philosophy \else \@degreefield \fi %CHANGED
|
||||
%\end{center}
|
||||
\vfill
|
||||
\begin{center}
|
||||
\@authorsize
|
||||
by \\
|
||||
\@author \\
|
||||
\@conferralmonth\ \@conferralyear
|
||||
\end{center}
|
||||
\vspace*{0.26in}
|
||||
\end{titlepage}
|
||||
}
|
||||
|
||||
\renewenvironment{titlepage}{%
|
||||
\typeout{Title page}
|
||||
\pagestyle{empty}
|
||||
\doublespacing
|
||||
}{%
|
||||
\normalspacing\clearpage
|
||||
}
|
||||
|
||||
|
||||
\newenvironment{copyrightpage}{%
|
||||
\typeout{Copyleft page}
|
||||
\pagestyle{empty}
|
||||
\null\vfil
|
||||
\begin{center}
|
||||
}{%
|
||||
\end{center}
|
||||
\vfil\null
|
||||
\clearpage
|
||||
}
|
||||
|
||||
\newcommand{\makecopyright}{%
|
||||
\begin{copyrightpage}
|
||||
\copyright\ \@copyrightholder\ \@copyrightyear \\
|
||||
ALL RIGHTS RESERVED \\[.5in]
|
||||
\end{copyrightpage}
|
||||
}
|
||||
\newcommand{\@copyrightholder}{\@author}
|
||||
\newcommand{\@copyrightyear}{\@conferralyear}
|
||||
|
||||
\newcommand{\copyrightholder}[1]{\renewcommand{\@copyrightholder}{#1}}
|
||||
\newcommand{\copyrightyear}[1]{\renewcommand{\@copyrightyear}{#1}}
|
||||
|
||||
|
||||
\newlength{\@abhdskip}
|
||||
\renewenvironment{abstract}{%
|
||||
\typeout{Abstract}
|
||||
\singlespacing
|
||||
\ifphd %CHANGED
|
||||
\setlength{\@abhdskip}{.25in}
|
||||
\addtolength{\@abhdskip}{-\topmargin}
|
||||
\vspace*{\@abhdskip}
|
||||
\begin{center}
|
||||
\@abstracttitle \\
|
||||
\ \\
|
||||
\@author \\
|
||||
\@conferralyear
|
||||
\end{center}
|
||||
\vspace{.25in}
|
||||
\else %CHANGED
|
||||
\chapter*{%
|
||||
\begin{center}
|
||||
\normalsize
|
||||
ABSTRACT
|
||||
\end{center}
|
||||
}
|
||||
\par
|
||||
\fi %CHANGED
|
||||
\pagestyle{empty}
|
||||
\thispagestyle{empty}
|
||||
}{%
|
||||
\clearpage
|
||||
}
|
||||
|
||||
\newcommand{\@abstracttitle}{\@title}
|
||||
\newcommand{\abstracttitle}[1]{\renewcommand{\@abstracttitle}{#1}}
|
||||
|
||||
|
||||
\newenvironment{biosketch}{%
|
||||
\typeout{Vita}
|
||||
\pagestyle{plain}
|
||||
\pagenumbering{roman}
|
||||
\setcounter{page}{3}
|
||||
\prelim@contents{Biographical Sketch}
|
||||
\chapter*{%
|
||||
\bioname
|
||||
}
|
||||
\par
|
||||
}{%
|
||||
\clearpage
|
||||
}
|
||||
|
||||
\newenvironment{dedication}{%
|
||||
\prelim@contents{Dedication}
|
||||
\null\vfil
|
||||
\begin{center}
|
||||
}{
|
||||
\end{center}
|
||||
\vfil\null
|
||||
\clearpage
|
||||
}
|
||||
|
||||
\newenvironment{acknowledgements}{%
|
||||
\prelim@contents{Acknowledgments}
|
||||
\chapter*{%
|
||||
\ackname
|
||||
}
|
||||
\par
|
||||
}{%
|
||||
\cleardoublepage
|
||||
}
|
||||
|
||||
\newcommand{\contentspage}{%
|
||||
\singlespacing
|
||||
\label{toc}
|
||||
\prelim@contents{\contentsname}
|
||||
\tableofcontents
|
||||
\normalspacing
|
||||
\clearpage
|
||||
}
|
||||
|
||||
\newcommand{\tablelistpage}{%
|
||||
\singlespacing
|
||||
\label{lot}
|
||||
\prelim@contents{\listtablename}
|
||||
\listoftables
|
||||
\normalspacing
|
||||
\clearpage
|
||||
}
|
||||
|
||||
\newcommand{\figurelistpage}{%
|
||||
\singlespacing
|
||||
\label{lof}
|
||||
\prelim@contents{\listfigurename}
|
||||
\listoffigures
|
||||
\normalspacing
|
||||
\clearpage
|
||||
}
|
||||
\newcommand{\abbrlist}{%
|
||||
\singlespacing
|
||||
\prelim@contents{List of Abbreviations}
|
||||
\chapter*{List of Abbreviations}
|
||||
}
|
||||
|
||||
\newcommand{\symlist}{%
|
||||
\singlespacing
|
||||
\prelim@contents{List of Symbols}
|
||||
\chapter*{List of Symbols}
|
||||
}
|
||||
|
||||
\newcommand{\preface}{%
|
||||
\singlespacing
|
||||
\prelim@contents{Preface}
|
||||
\chapter*{Preface}
|
||||
}
|
||||
|
||||
\newcommand{\singlespacing}{%
|
||||
\let\CS=\@currsize\renewcommand{\baselinestretch}{1.0}\tiny\CS}
|
||||
\newcommand{\singlespacingplus}{%
|
||||
\let\CS=\@currsize\renewcommand{\baselinestretch}{1.25}\tiny\CS}
|
||||
\newcommand{\doublespacing}{%
|
||||
\let\CS=\@currsize\renewcommand{\baselinestretch}{1.75}\tiny\CS}
|
||||
\newcommand{\realdoublespacing}{%
|
||||
\let\CS=\@currsize\renewcommand{\baselinestretch}{2}\tiny\CS}
|
||||
\newcommand{\normalspacing}{\doublespacing}
|
||||
\newcommand{\footnotespacing}{\singlespacing}
|
||||
\newcommand{\changespacing}[2]{%
|
||||
\renewcommand{#1}{%
|
||||
\let\CS=\@currsize\renewcommand{\baselinestretch}{#2}\tiny\CS}%
|
||||
}
|
||||
\newcommand{\changenormalspacing}[1]{\renewcommand{\normalspacing}{#1}}
|
||||
\normalspacing
|
||||
|
||||
\endinput
|
||||
%%
|
||||
%% End of file `cornell.cls'.
|
||||
@@ -0,0 +1,107 @@
|
||||
\chapter{AI Agent Usage Guide}
|
||||
\ChapterLabel{AIAgentGuide}
|
||||
\index{AI agent}
|
||||
\index{AI agent!DevOps workflow}
|
||||
\index{Appendix!AI Agent Usage Guide}
|
||||
|
||||
\section{How to Use This Appendix}
|
||||
An AI agent that creates, reviews, or maintains an assignment shall read this
|
||||
file first. It shall identify the task in the routing table, read the minimum
|
||||
authoritative sources, and expand context only for a discovered dependency or
|
||||
inconsistency. This guide is maintained in LaTeX so it is visible, versioned,
|
||||
and reviewable with the assignment.
|
||||
|
||||
\section{Governing Principles}
|
||||
The authored LaTeX files, versioned automation, and approved assignment
|
||||
materials are authoritative. The PDF is a review artifact and shall not be
|
||||
edited directly. AI may draft, explain, analyze, check consistency, and assist
|
||||
with builds. It shall not invent completion, evidence, access, costs, grades,
|
||||
approvals, command output, security posture, or operational results.
|
||||
|
||||
\section{Chapter File Convention}
|
||||
\index{AI agent!chapter file convention}
|
||||
Every assignment chapter shall be stored in exactly one file named with the
|
||||
\texttt{devops} prefix, a PascalCase chapter name, and the \texttt{.tex}
|
||||
suffix. For example, Chapter~2 is fully contained in
|
||||
\path{devopsExampleAssignment.tex}. A chapter file shall begin with its
|
||||
\texttt{\string\chapter\{...\}} command and contain all of that chapter's
|
||||
sections and subsections. Do not split one chapter across files, create
|
||||
section-only \texttt{.tex} files, or use \texttt{\string\input} or
|
||||
\texttt{\string\include} to assemble a chapter from smaller fragments.
|
||||
|
||||
Supporting non-chapter files may use a different name only when they are not
|
||||
chapter content: \texttt{prologue.tex}, \texttt{abstract.tex},
|
||||
\texttt{devopsGlossary.tex}, and \texttt{devopsReferences.bib} are examples.
|
||||
Appendix chapters follow the same chapter-file convention.
|
||||
|
||||
\section{AI Quick Start}
|
||||
\begin{enumerate}
|
||||
\item Read this guide and identify the requested outcome.
|
||||
\item Select the closest task below and load only its listed sources.
|
||||
\item Inspect supplied facts and report consequential gaps or assumptions.
|
||||
\item Make narrowly scoped changes; preserve stable IDs, glossary terms, and history.
|
||||
\item Never request, print, store, or commit credentials, tokens, personal data, or production data.
|
||||
\item Build the complete PDF, inspect the log, visually inspect affected pages, and record material AI use in \ChapterRef{AIPromptLog}.
|
||||
\end{enumerate}
|
||||
|
||||
\section{Task Routing}
|
||||
\small
|
||||
\begin{tabularx}{\linewidth}{L{4.0cm}Y}
|
||||
\caption{AI Task-Routing Table\label{Table:AITaskRouting}}\\
|
||||
\toprule \textbf{Task} & \textbf{Minimum authoritative sources}\\ \midrule
|
||||
Initialize an assignment & \texttt{devopsAssignment.tex}, \texttt{prologue.tex}, \texttt{devopsIntroduction.tex}, \texttt{devopsExampleAssignment.tex}, and the instructor's assignment facts.\\
|
||||
Develop a workflow & \texttt{devopsExampleAssignment.tex}, source repository materials, and authorized environment constraints.\\
|
||||
Define evidence & \texttt{devopsExampleAssignment.tex} and controlled execution outputs.\\
|
||||
Review a retrospective & \texttt{devopsExampleAssignment.tex} and the submitted workflow or runbook.\\
|
||||
Edit AI guidance & \texttt{devopsAIAgentGuide.tex}, \texttt{devopsAIPromptLog.tex}, \texttt{devopsDocumentGuide.tex}, and \texttt{devopsAssignment.tex}.\\
|
||||
Compile or troubleshoot & \texttt{devopsAssignment.tex}, \texttt{devopsDocumentGuide.tex}, the affected chapter, and the build log.\\ \bottomrule
|
||||
\end{tabularx}
|
||||
\normalsize
|
||||
|
||||
\section{DevOps-Specific Rules}
|
||||
\begin{enumerate}
|
||||
\item Prefer versioned, repeatable automation over undocumented manual steps.
|
||||
\item Treat deployment output, monitoring data, and screenshots as evidence only when they reflect an actual execution.
|
||||
\item Design failure exercises to be isolated, reversible, and authorized.
|
||||
\item Apply least privilege and never place secrets in LaTeX, source control, prompts, screenshots, or logs.
|
||||
\item State expected cloud cost, cleanup action, and resource ownership for each remote-environment activity.
|
||||
\item Identify whether a recommendation is a proposal, an instructor directive, or demonstrated evidence.
|
||||
\end{enumerate}
|
||||
|
||||
\section{Example AI Requests}
|
||||
\subsection{Create an Assignment Brief}
|
||||
\begin{verbatim}
|
||||
Read devopsAIAgentGuide.tex and use the Initialize an Assignment context.
|
||||
From the supplied SSW 590 objective and constraints, fill only supported
|
||||
placeholders in the introduction and activity brief. Propose clear, observable
|
||||
completion criteria, a safe cleanup action, and a rubric. Do not invent cloud
|
||||
access, due dates, policy, costs, or approved tools. Update history, compile,
|
||||
and report instructor decisions still needed.
|
||||
\end{verbatim}
|
||||
|
||||
\subsection{Review a Student Workflow}
|
||||
\begin{verbatim}
|
||||
Read devopsAIAgentGuide.tex and the workflow, evidence, and retrospective
|
||||
chapters. Review the supplied repository and sanitized evidence for
|
||||
reproducibility, least privilege, observability, rollback, and cleanup.
|
||||
Separate verified facts from gaps and recommendations. Do not claim that an
|
||||
unexecuted command passed, and do not request credentials or operate resources.
|
||||
\end{verbatim}
|
||||
|
||||
\section{Human Decisions and Information Boundaries}
|
||||
The instructor retains authority over assignment scope, grading, due dates,
|
||||
approved tooling, access, budgets, security posture, exceptions, and policy.
|
||||
An AI agent shall surface alternatives and evidence, not represent a decision
|
||||
as approved. Record material prompts, assumptions, corrections, and unresolved
|
||||
issues in \ChapterRef{AIPromptLog}.
|
||||
|
||||
\section{Completion Checklist}
|
||||
\begin{itemize}
|
||||
\item Scope, deliverables, environment, constraints, and cleanup are clear.
|
||||
\item Activity identifiers and evidence references are valid and unique.
|
||||
\item Examples contain no secrets, personal data, or unsafe production actions.
|
||||
\item New controlled terms are added to the glossary and indexed.
|
||||
\item The newest approved change is recorded in document history.
|
||||
\item The complete build succeeds with no unresolved references or missing files.
|
||||
\item A human reviews all decisions requiring instructional or operational authority.
|
||||
\end{itemize}
|
||||
@@ -0,0 +1,117 @@
|
||||
\chapter{AI Prompt Log}
|
||||
\ChapterLabel{AIPromptLog}
|
||||
\index{AI prompt log}
|
||||
\section{How to Use This Appendix}
|
||||
Use this log when AI assistance materially affects assignment wording,
|
||||
automation, evidence interpretation, troubleshooting, or feedback. Record
|
||||
enough context for an instructor or reviewer to understand the input, output,
|
||||
assumptions, and human corrections. Do not record credentials or personal data.
|
||||
|
||||
\section{Example Record}
|
||||
Date: \textit{[timestamp]}; Tool and model: \textit{[name]}; Task:
|
||||
\textit{[requested outcome]}; Inputs: \textit{[sanitized constraints and
|
||||
evidence]}; Output used: \textit{[summary]}; Human review and corrections:
|
||||
\textit{[summary]}; Unresolved assumptions: \textit{[list or none]}.
|
||||
|
||||
\section{Log Entries}
|
||||
|
||||
\begin{itemize}
|
||||
|
||||
\item \textbf{Project selection.} Date: September 24, 2026. Tool and
|
||||
model: Claude, model claude-sonnet-5. Task: choose a semester project
|
||||
satisfying the "master a DevOps technology" option. Inputs: assignment
|
||||
prompt, rubric, team constraints. Output used: recommendation to master
|
||||
GitHub Actions, compared against GitLab CI/CD to satisfy the
|
||||
two-comparable-tools rubric criterion. Human review and corrections:
|
||||
team selected the direction. Unresolved assumptions: none.
|
||||
|
||||
\item \textbf{Project scoping.} Date: September 24, 2026. Tool and model:
|
||||
Claude, model claude-sonnet-5. Task: apply the DevOps project to the
|
||||
team's Senior Design project (Scrap) without altering Scrap itself, and
|
||||
draft the Project Proposal chapter. Inputs: Scrap's Milestone 1 report
|
||||
and development plan; Project Proposal instructions and rubric. Output
|
||||
used: recommendation to target Scrap's decoupled companion website only;
|
||||
full Project Proposal chapter. Human review and corrections: team
|
||||
confirmed the scoping and confirmed DigitalOcean as the deployment
|
||||
environment after free alternatives (Google Cloud Run, Oracle Cloud) were
|
||||
researched and compared. Unresolved assumptions: course team membership
|
||||
(two-person vs.\ Scrap's three-person team) not explicitly confirmed.
|
||||
|
||||
\item \textbf{LaTeX Docker chapter.} Date: September 24, 2026. Tool and
|
||||
model: Claude, model claude-sonnet-5. Task: build and document a Docker
|
||||
container that compiles a LaTeX document with TeX Live, using
|
||||
\texttt{minted}. Inputs: assignment instructions for this chapter.
|
||||
Output used: \texttt{Dockerfile}, sample \texttt{hello.tex}, and chapter
|
||||
text. Human review and corrections: LaTeX/Dockerfile logic verified by
|
||||
direct \texttt{pdflatex} compilation (no Docker available in the
|
||||
assistant's sandbox); the student ran the actual container and reported
|
||||
a bug (an empty mounted folder hid the built-in \texttt{hello.tex}),
|
||||
which was diagnosed and fixed by mounting the project directory instead.
|
||||
Unresolved assumptions: none.
|
||||
|
||||
\item \textbf{Document History update.} Date: September 24, 2026. Tool
|
||||
and model: Claude, model claude-sonnet-5. Task: update the Document
|
||||
History table to reflect this assignment's completed chapters. Inputs:
|
||||
assignment instructions; chapters completed. Output used: consolidated
|
||||
Document History entry. Human review and corrections: student requested
|
||||
a single consolidated version entry rather than one per chapter, and
|
||||
later supplied the report's authoritative Document History text
|
||||
directly. Unresolved assumptions: chapter labels for the Digital Ocean
|
||||
Docker Deployment and class-based JavaScript refactor chapters not
|
||||
confirmed, as the assistant did not create those two chapters.
|
||||
|
||||
\item \textbf{Automated manual build.} Date: October 8--9, 2026. Tool and
|
||||
model: Claude, model claude-opus-5-5. Task: plan the team work split, create
|
||||
the reproducible build configuration (\texttt{.latexmkrc}), the Gitea
|
||||
Actions workflow, the job-image Dockerfile, and draft the Automated Manual
|
||||
Build chapter. Inputs: assignment instructions; the manual's LaTeX source.
|
||||
Output used: build configuration, workflow, Dockerfile, chapter text for
|
||||
sections 1, 3 and 5. Human review and corrections: the build command and
|
||||
workflow shell steps were tested by compiling the manual in the assistant's
|
||||
sandbox; the student moved the manual from issue~5 to a dedicated issue~8
|
||||
branch. Unresolved assumptions: runner label \texttt{latex} and the TL2025
|
||||
job image are pending the runner registration.
|
||||
|
||||
|
||||
\item \textbf{Continuous integration with Jenkins.} Date: October 18--24,
|
||||
2026. Tool and model: Claude, model claude-opus-5-5. Task: split the work,
|
||||
guide the Gitea integration account, branch protection and pull-request
|
||||
demonstration, write the pricing tests and \texttt{Jenkinsfile}, and draft
|
||||
and edit the Continuous Integration chapter. Inputs: assignment
|
||||
instructions; sanitized screenshots, console logs, and commit IDs. Output
|
||||
used: \texttt{Jenkinsfile}, tests, chapter text, and edits merging both
|
||||
partners' sections. Human review and corrections: the students ran every
|
||||
step on the real services and supplied the evidence; the assistant's claims
|
||||
were checked against the screenshots (for example, the token scopes).
|
||||
Unresolved assumptions: none.
|
||||
|
||||
\item \textbf{SRE monitoring and reliability.} Date: October 25--29, 2026.
|
||||
Tool and model: Claude, model claude-opus-5-5. Task: split the work, choose
|
||||
pinned releases, write the monitoring Compose, Prometheus, Blackbox, Grafana
|
||||
provisioning and dashboard files and the runbook, guide the alert set-up
|
||||
and incident exercise, and draft sections of the SRE chapter. Inputs:
|
||||
assignment instructions; baseline and \texttt{docker stats} output;
|
||||
Prometheus API query output; Grafana and Discord screenshots. Output used:
|
||||
configuration files, dashboard JSON, runbook, and chapter text. Human review
|
||||
and corrections: the student deployed and ran everything on the Droplet;
|
||||
the SMTP failure led to the Discord route; an incorrect alert condition and
|
||||
summary found during testing were corrected; all timestamps come from the
|
||||
recorded logs and screenshots. Unresolved assumptions: none.
|
||||
|
||||
\item \textbf{SRE chapter completion.} Date: October 30, 2026. Tool and
|
||||
model: Claude (configured model claude-sonnet-5-5). Task: complete the
|
||||
\texttt{HostDiskLow} alert subsection and its repeat test; merge the two
|
||||
exported alert rules into one file; draft the capacity and retention
|
||||
rationale, the deployment diagram, the SLI, SLO, and SLA definitions and
|
||||
worked example, the metric inventory, and the access-control text; add the
|
||||
Hosts and Passwords rows. Inputs: manual Chapter 5; the existing chapter
|
||||
text and Compose file; Grafana, Discord, and terminal screenshots; the
|
||||
exported alert-rule YAML. Output used: chapter text, a Graphviz diagram, and
|
||||
\texttt{alert-rules.yaml}. Human review and corrections: the students ran
|
||||
every test and supplied all evidence; a Grafana address in an early export
|
||||
command was wrong and returned an empty file, which was caught from the
|
||||
output and corrected. Unresolved assumptions: the probe route from Blackbox
|
||||
Exporter to the public hostnames is inferred from the Compose networks, not
|
||||
tested.
|
||||
|
||||
\end{itemize}
|
||||