Skip to content

[Tech Debt] Remove entire Packer / OCI image build system #278

@sonikro

Description

@sonikro

Context

The packer/ directory and the cleanup_old_oracle_images script exist solely to build and manage Oracle Cloud Infrastructure (OCI) custom VM images for the OracleVMManager. Since OracleVMManager is being removed (see #266), the Packer build system has no reason to exist in this repository.

Scope of Removal

packer/ directory (delete entirely)

  • packer/tf2-base.pkr.hcl — main Packer HCL template that builds the OCI VM image on Ubuntu 22.04
  • packer/variables.auto.pkrvars.hcl — active variable values (may contain secrets/OCI config)
  • packer/variables.auto.pkrvars.hcl.example — example variable file documenting required OCI vars
  • packer/manifest.json — output manifest from last Packer build
  • packer/scripts/install-docker.sh — installs Docker CE on the VM image
  • packer/scripts/preload-docker-images.sh — pre-pulls Docker images into the VM image
  • packer/scripts/configure-cloud-init.sh — configures cloud-init startup script on the VM
  • packer/files/docker-compose-startup.service — systemd unit file for the Docker Compose startup service
  • packer/README.md — documentation for the Packer build process

packages/scripts/ (delete file)

  • packages/scripts/cleanup_old_oracle_images.ts — TypeScript script that lists and deletes old tf2-quickserver-vm images from all Oracle regions via OCI SDK

packages/scripts/package.json (modify)

  • Remove the cleanup:oracle:images npm script entry

Dependencies / Related Issues

Verify After Removal

  • No remaining references to packer, OCI, oracle-image, or cleanup:oracle:images in the codebase (outside of git history)
  • Build and tests still pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    tech-debtTechnical debt items

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions