# joelleach/foxcontainers architecture

> Architecture diagram of the GitHub repository joelleach/foxcontainers, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/joelleach/foxcontainers
- Repository: https://github.com/joelleach/foxcontainers

## Overview

#### Purpose and Distribution
FoxContainers builds preconfigured Windows container images for Visual FoxPro 9 (VFP9) development, runtime execution, IIS hosting, and FoxUnit testing. Images are published to Docker Hub and serve as reusable base images or Dockerfile examples. Root orchestration is provided by `build-vfp-images.cmd` and `push-vfp-images.cmd`.

#### Image Family and Layering
The repository is organized as four image variants:
- Full VFP9 IDE for automated builds: `vfp9/dockerfile`, `vfp9/install/installvfp9.cmd`.
- Runtime-only image, including VFP ODBC/OLE DB support: `vfp9-runtime/dockerfile`, `vfp9-runtime/install/installvfp9-runtime.cmd`.
- IIS-enabled runtime image: `vfp9-runtime-iis/dockerfile`, `vfp9-runtime-iis/runvfp9-runtime-iis.cmd`.
- FoxUnit-enabled development/test image, inheriting from the VFP9 image: `vfp9-foxunit/dockerfile`, `vfp9-foxunit/install/installfoxunit.cmd`.

Each variant has its own build, push, and interactive-run command scripts.

#### Build Entry Points
Image-specific build scripts parameterize Docker builds for multiple Windows operating-system variants:
`vfp9/buildimages.cmd`, `vfp9-runtime/buildimages.cmd`, `vfp9-runtime-iis/buildimages.cmd`, and `vfp9-foxunit/buildimages.cmd`. The corresponding `pushimages.cmd` scripts publish built tags. The root build/push scripts coordinate the family, establishing a dependency-aware image production flow.

#### Installation Boundary
VFP binaries and installation material are staged under each image’s `install` directory and incorporated by Docker build steps. The IDE image uses `vfp9/install/Microsoft Visual FoxPro 9`, while runtime setup is encapsulated in `vfp9-runtime/install/installvfp9-runtime.cmd`. This makes licensed VFP installation assets a build-context concern rather than application source code.

#### Runtime and Interactive Execution
The images target Windows containers and run VFP workloads through command-line launch scripts, including `vfp9/runvfp9.cmd` and `vfp9-runtime/runvfp9-runtime.cmd`. The IIS variant is the hosting boundary for web-facing VFP runtime deployments; its Dockerfile, `vfp9-runtime-iis/dockerfile`, combines IIS infrastructure with the VFP runtime base.

#### FoxConsole Tooling
All images include FoxConsole, a command-line interface for running VFP code inside containers. Its executable and program assets are staged in `vfp9-runtime/install/FoxConsole/foxc.exe` and `vfp9-runtime/install/FoxConsole/foxconsole.prg`. This is the common operational entry point (`foxc`) after a container starts.

#### External Services
Docker is the build and execution runtime; Docker Hub is the image registry and distribution endpoint. IIS is included only in the runtime-IIS variant. Visual FoxPro 9, its runtime, ODBC/OLE DB drivers, and FoxUnit are the primary packaged third-party platform components.

Main entry points: [`vfp9-runtime/dockerfile`](https://github.com/joelleach/foxcontainers/tree/main/vfp9-runtime/dockerfile) (VFP9 runtime image), [`vfp9/dockerfile`](https://github.com/joelleach/foxcontainers/tree/main/vfp9/dockerfile) (VFP9 IDE image), [`vfp9-runtime-iis/dockerfile`](https://github.com/joelleach/foxcontainers/tree/main/vfp9-runtime-iis/dockerfile) (VFP9 runtime IIS image), [`vfp9-foxunit/dockerfile`](https://github.com/joelleach/foxcontainers/tree/main/vfp9-foxunit/dockerfile) (VFP9 FoxUnit image)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Image orchestration"]
  node_root_build["Family build<br/>command script"]
  node_root_push["Family push<br/>command script"]
end

subgraph group_images["Windows image variants"]
  node_ide_build["IDE build matrix<br/>command script<br/>[buildimages.cmd]"]
  node_ide_image["VFP9 IDE image<br/>Windows container image"]
  node_ide_install["VFP9 install assets<br/>licensed build context"]
  node_ide_run["IDE launcher<br/>command script<br/>[runvfp9.cmd]"]
  node_runtime_build["Runtime build matrix<br/>command script<br/>[buildimages.cmd]"]
  node_runtime_image["VFP9 runtime image<br/>Windows container image"]
  node_runtime_install["Runtime installer<br/>command script"]
  node_runtime_run["Runtime launcher<br/>command script"]
  node_foxconsole{{"FoxConsole CLI<br/>VFP command-line tool<br/>[foxc.exe]"}}
  node_iis_build["IIS runtime build matrix<br/>command script<br/>[buildimages.cmd]"]
  node_iis_image["VFP9 runtime IIS image<br/>Windows container image"]
  node_iis_run["IIS runtime launcher<br/>command script"]
  node_foxunit_build["FoxUnit build matrix<br/>command script<br/>[buildimages.cmd]"]
  node_foxunit_image["VFP9 FoxUnit image<br/>Windows container image"]
  node_foxunit_install["FoxUnit installer<br/>command script<br/>[installfoxunit.cmd]"]
end

subgraph group_platform["Build and distribution"]
  node_docker{{"Docker<br/>container runtime"}}
  node_docker_hub[("Docker Hub<br/>image registry")]
  node_iis{{"IIS<br/>web server"}}
end

node_root_build -->|"coordinates"| node_ide_build
node_root_build -->|"coordinates"| node_runtime_build
node_root_build -->|"coordinates"| node_iis_build
node_root_build -->|"coordinates"| node_foxunit_build
node_root_push -->|"publishes family"| node_docker_hub
node_ide_build -->|"builds"| node_ide_image
node_runtime_build -->|"builds"| node_runtime_image
node_iis_build -->|"builds"| node_iis_image
node_foxunit_build -->|"builds"| node_foxunit_image
node_ide_install -->|"staged into build"| node_ide_image
node_runtime_install -->|"installs runtime"| node_runtime_image
node_foxconsole -->|"staged into image"| node_runtime_image
node_ide_image -->|"runs with"| node_ide_run
node_runtime_image -->|"runs with"| node_runtime_run
node_runtime_image -->|"runtime base"| node_iis_image
node_iis -->|"included in"| node_iis_image
node_iis_image -->|"runs with"| node_iis_run
node_ide_image -->|"base image"| node_foxunit_image
node_foxunit_install -->|"installs test tooling"| node_foxunit_image
node_docker -->|"builds and runs"| node_ide_image
node_docker -->|"builds and runs"| node_runtime_image
node_docker -->|"builds and runs"| node_iis_image
node_docker -->|"builds and runs"| node_foxunit_image
node_ide_image -.->|"published tags"| node_docker_hub
node_runtime_image -.->|"published tags"| node_docker_hub
node_iis_image -.->|"published tags"| node_docker_hub
node_foxunit_image -.->|"published tags"| node_docker_hub

click node_root_build "https://github.com/joelleach/foxcontainers/blob/main/build-vfp-images.cmd"
click node_root_push "https://github.com/joelleach/foxcontainers/blob/main/push-vfp-images.cmd"
click node_ide_build "https://github.com/joelleach/foxcontainers/blob/main/vfp9/buildimages.cmd"
click node_ide_image "https://github.com/joelleach/foxcontainers/tree/main/vfp9/dockerfile"
click node_ide_install "https://github.com/joelleach/foxcontainers/tree/main/vfp9/install/Microsoft%20Visual%20FoxPro%209"
click node_ide_run "https://github.com/joelleach/foxcontainers/blob/main/vfp9/runvfp9.cmd"
click node_runtime_build "https://github.com/joelleach/foxcontainers/blob/main/vfp9-runtime/buildimages.cmd"
click node_runtime_image "https://github.com/joelleach/foxcontainers/tree/main/vfp9-runtime/dockerfile"
click node_runtime_install "https://github.com/joelleach/foxcontainers/blob/main/vfp9-runtime/install/installvfp9-runtime.cmd"
click node_runtime_run "https://github.com/joelleach/foxcontainers/blob/main/vfp9-runtime/runvfp9-runtime.cmd"
click node_foxconsole "https://github.com/joelleach/foxcontainers/blob/main/vfp9-runtime/install/FoxConsole/foxc.exe"
click node_iis_build "https://github.com/joelleach/foxcontainers/blob/main/vfp9-runtime-iis/buildimages.cmd"
click node_iis_image "https://github.com/joelleach/foxcontainers/tree/main/vfp9-runtime-iis/dockerfile"
click node_iis_run "https://github.com/joelleach/foxcontainers/blob/main/vfp9-runtime-iis/runvfp9-runtime-iis.cmd"
click node_foxunit_build "https://github.com/joelleach/foxcontainers/blob/main/vfp9-foxunit/buildimages.cmd"
click node_foxunit_image "https://github.com/joelleach/foxcontainers/tree/main/vfp9-foxunit/dockerfile"
click node_foxunit_install "https://github.com/joelleach/foxcontainers/blob/main/vfp9-foxunit/install/installfoxunit.cmd"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_root_build,node_root_push toneBlue
class node_ide_build,node_ide_image,node_ide_install,node_ide_run,node_runtime_build,node_runtime_image,node_runtime_install,node_runtime_run,node_foxconsole,node_iis_build,node_iis_image,node_iis_run,node_foxunit_build,node_foxunit_image,node_foxunit_install toneAmber
class node_docker,node_docker_hub,node_iis toneMint
```

## Components

### Image orchestration

- [Family build](https://github.com/joelleach/foxcontainers/blob/main/build-vfp-images.cmd): command script · Coordinates dependency-aware image builds. · `build-vfp-images.cmd`
- [Family push](https://github.com/joelleach/foxcontainers/blob/main/push-vfp-images.cmd): command script · Coordinates publishing of the image family. · `push-vfp-images.cmd`

### Windows image variants

- [IDE build matrix](https://github.com/joelleach/foxcontainers/blob/main/vfp9/buildimages.cmd): command script · Builds VFP9 tags for Windows OS variants. · `vfp9/buildimages.cmd`
- [VFP9 IDE image](https://github.com/joelleach/foxcontainers/tree/main/vfp9/dockerfile): Windows container image · Full VFP9 development and automated-build base image. · `vfp9/dockerfile`
- [VFP9 install assets](https://github.com/joelleach/foxcontainers/tree/main/vfp9/install/Microsoft%20Visual%20FoxPro%209): licensed build context · Licensed VFP installation material copied into the IDE build. · `vfp9/install/Microsoft Visual FoxPro 9`
- [IDE launcher](https://github.com/joelleach/foxcontainers/blob/main/vfp9/runvfp9.cmd): command script · `vfp9/runvfp9.cmd`
- [Runtime build matrix](https://github.com/joelleach/foxcontainers/blob/main/vfp9-runtime/buildimages.cmd): command script · Builds runtime tags for Windows OS variants. · `vfp9-runtime/buildimages.cmd`
- [VFP9 runtime image](https://github.com/joelleach/foxcontainers/tree/main/vfp9-runtime/dockerfile): Windows container image · Runtime image with VFP ODBC and OLE DB support. · `vfp9-runtime/dockerfile`
- [Runtime installer](https://github.com/joelleach/foxcontainers/blob/main/vfp9-runtime/install/installvfp9-runtime.cmd): command script · `vfp9-runtime/install/installvfp9-runtime.cmd`
- [Runtime launcher](https://github.com/joelleach/foxcontainers/blob/main/vfp9-runtime/runvfp9-runtime.cmd): command script · `vfp9-runtime/runvfp9-runtime.cmd`
- [FoxConsole CLI](https://github.com/joelleach/foxcontainers/blob/main/vfp9-runtime/install/FoxConsole/foxc.exe): VFP command-line tool · Common operational entry point for running VFP code. · `vfp9-runtime/install/FoxConsole/foxc.exe`
- [IIS runtime build matrix](https://github.com/joelleach/foxcontainers/blob/main/vfp9-runtime-iis/buildimages.cmd): command script · Builds IIS runtime tags for Windows OS variants. · `vfp9-runtime-iis/buildimages.cmd`
- [VFP9 runtime IIS image](https://github.com/joelleach/foxcontainers/tree/main/vfp9-runtime-iis/dockerfile): Windows container image · Web-hosting image combining IIS with the VFP runtime. · `vfp9-runtime-iis/dockerfile`
- [IIS runtime launcher](https://github.com/joelleach/foxcontainers/blob/main/vfp9-runtime-iis/runvfp9-runtime-iis.cmd): command script · `vfp9-runtime-iis/runvfp9-runtime-iis.cmd`
- [FoxUnit build matrix](https://github.com/joelleach/foxcontainers/blob/main/vfp9-foxunit/buildimages.cmd): command script · Builds FoxUnit development/test tags. · `vfp9-foxunit/buildimages.cmd`
- [VFP9 FoxUnit image](https://github.com/joelleach/foxcontainers/tree/main/vfp9-foxunit/dockerfile): Windows container image · Development and testing image derived from the VFP9 image. · `vfp9-foxunit/dockerfile`
- [FoxUnit installer](https://github.com/joelleach/foxcontainers/blob/main/vfp9-foxunit/install/installfoxunit.cmd): command script · `vfp9-foxunit/install/installfoxunit.cmd`

### Build and distribution

- **Docker**: container runtime · Builds and runs Windows container images.
- **Docker Hub**: image registry · Distribution endpoint for published image tags.
- **IIS**: web server · Hosting boundary available only in the IIS image.

## Connections

- Family build → IDE build matrix: coordinates
- Family build → Runtime build matrix: coordinates
- Family build → IIS runtime build matrix: coordinates
- Family build → FoxUnit build matrix: coordinates
- Family push → Docker Hub: publishes family
- IDE build matrix → VFP9 IDE image: builds
- Runtime build matrix → VFP9 runtime image: builds
- IIS runtime build matrix → VFP9 runtime IIS image: builds
- FoxUnit build matrix → VFP9 FoxUnit image: builds
- VFP9 install assets → VFP9 IDE image: staged into build
- Runtime installer → VFP9 runtime image: installs runtime
- FoxConsole CLI → VFP9 runtime image: staged into image
- VFP9 IDE image → IDE launcher: runs with
- VFP9 runtime image → Runtime launcher: runs with
- VFP9 runtime image → VFP9 runtime IIS image: runtime base
- IIS → VFP9 runtime IIS image: included in
- VFP9 runtime IIS image → IIS runtime launcher: runs with
- VFP9 IDE image → VFP9 FoxUnit image: base image
- FoxUnit installer → VFP9 FoxUnit image: installs test tooling
- Docker → VFP9 IDE image: builds and runs
- Docker → VFP9 runtime image: builds and runs
- Docker → VFP9 runtime IIS image: builds and runs
- Docker → VFP9 FoxUnit image: builds and runs
- VFP9 IDE image → Docker Hub: published tags
- VFP9 runtime image → Docker Hub: published tags
- VFP9 runtime IIS image → Docker Hub: published tags
- VFP9 FoxUnit image → Docker Hub: published tags
