codeintel: Make docker/firecracker abstraction in indexer
Created by: efritz
This adds an interface CommandFormatter
that prepares shell commands to be invoked on the host. There are two concrete implementations: dockerCommandFormatter
, which uses plain docker containers so that we can run in a non-firecracker environment (testing and dev), and firecrackerCommandFormatter
, which wraps docker commands in ignite. The latter environment needs an explicit setup/teardown step.