I have a question around local development. We cur...
# atmos
j
I have a question around local development. We currently distributed our Atmos IAC Service Catalog as a docker image, however some developers are resistant to this approach because they are unable to use docker due to constraints (e.g. using VDI's that don't permit docker). Has anyone else run into this issue? If so, what was the solution.
a
the goal is to have Atmos
stacks/catalog
in a separate repo and reuse it in other repos? Or the terraform components in a separate repo?
j
both terraform components and
stacks/catalog
in one repo. one or more repos for
stacks/orgs
our IAC service catalog contains this:
Copy code
├── components
│   └── terraform
├── stacks
│   ├── catalog
│   ├── mixins
│   └── schemas
│       ├── jsonschema
└── vendor.yaml
The "stack" repositories would contain this:
Copy code
├── stacks
│   ├── orgs
there's also a possibility that these repositories may contain custom components and/or mixins. this is why the current implementation is to distribute as a docker image and, during ci, create a temp docker container based on the service catalog.
e
@PePe Amengual is doing this I think
a
did you try using Atmos vendoring? (
vendor.yaml
file) https://atmos.tools/core-concepts/vendor/vendor-manifest
p
We use vendoring to "set" the service infrastructure environment and is all coming from a centralized IAC repo
Vendoring in atmos is good but it lacks advance features like running scripts after vendoring and such , but you can workaround that and create a custom command in atmos that will do any cleanup you need if need to exclude or remove files
👍 1
we also use the metadata locked: true for core infra to avoid people changing those components
a
using custom commands to execute
atmos vendor pull
and then additional scripts is a good idea
running scripts after vendoring
@PePe Amengual this sounds like hooks (before-vendoring, after-vendoring)
p
basically yes
we do that in github actions
e
also worth mentioning is
atmos vendor pull
supports automatic GitHub token injection, provided
GITHUB_ENV
is set. E.g.
export GITHUB_TOKEN=$(gh auth token)
then you can vendor all the things that are needed for local execution.
❤️ 1