MCPcopy Index your code
hub / github.com/erikvanbrakel/anthology

github.com/erikvanbrakel/anthology @0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.1 ↗ · + Follow
60 symbols 172 edges 22 files 0 documented · 0% updated 4y ago0.1 · 2018-05-02★ 1382 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Anthology, a private Terraform Registry

Description

Anthology is a reimplementation of the Terraform Registry API, intended to be used when your modules can't, shouldn't or don't need to be public. For all means and purposes it works in the same way as the public registry.

How to use

Using Docker

Every release is automatically published to the Docker Hub. You can set commandline parameters by overriding the command.

running on port 80, using my-module-bucket for storage:

docker run -p 80:80 erikvanbrakel/anthology -port=80 -bucket=my-module-bucket

using docker-compose

version: '2.1'

services:

  registry:
    command: -port=80 -bucket=my-module-bucket
    build: erikvanbrakel/anthology:latest
    ports:
      - 80:80

AWS + terraform

The easiest way to deploy is to use the anthology module in the public registry.

module "anthology" {
  source  = "erikvanbrakel/anthology/aws"
  version = "0.0.2"

  storage_bucket = "this-bucket-stores-my-modules"
  tld            = "example.com"                   # the registry will be hosted at registry.example.com
}

WARNING WARNING WARNING

This module provisions several resources, among which compute and storage components. This is not free, so make sure you are aware of the cost before provisioning!

Command line parameters

Parameter Description Default
-module_path Base path for module storage
-port Port to listen on 1234
-tls_cert path to the server certificate
-tls_key path to the server key
-bucket name of the S3 bucket for storage

When tls_cert AND tls_key are set the server will use https. Otherwise it defaults to http.

Extension points exported contracts — how you extend this code

Registry (Interface)
(no doc) [3 implementers]
cmd/registry/registry.go

Core symbols most depended-on inside this repo

Run
called by 8
cmd/registry_server.go
getBasepath
called by 6
cmd/registry/filesystemRegistry.go
getSession
called by 4
cmd/registry/s3registry.go
getModules
called by 2
cmd/registry/filesystemRegistry.go
getObject
called by 2
cmd/registry/s3registry.go
getModules
called by 2
cmd/registry/s3registry.go
ListVersions
called by 2
cmd/registry/registry.go
GetModule
called by 1
cmd/registry/filesystemRegistry.go

Shape

Method 27
Function 20
Struct 12
Interface 1

Languages

Go100%

Modules by API surface

cmd/registry/s3registry.go10 symbols
cmd/registry/filesystemRegistry.go8 symbols
cmd/registry/registry.go6 symbols
cmd/registry/fakeRegistry.go6 symbols
cmd/api/v1.go6 symbols
cmd/registry_server.go5 symbols
cmd/registry/module.go2 symbols
cmd/handlers/main_test.go2 symbols
cmd/handlers/list_modules_test.go2 symbols
cmd/handlers/get_module_test.go2 symbols
main.go1 symbols
cmd/handlers/service_discovery.go1 symbols

For agents

$ claude mcp add anthology \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact