Advanced Workflows
Layerfiles can set up a migrated database in 5 seconds
It’s common to use webapp.io to run QA processes against a full stack including open-source databases.
Consider the following Layerfile:
Layerfile
There’s a lot to unpack here, but there are a few important takeaways from this example:
- You can install docker & docker-compose and efficiently create containers within a Layerfile
- RUN REPEATABLE lets you reuse built images & volumes from the last time this pipeline ran
- Webapp.io will create a snapshot with everything created so that you can avoid re-building, re-creating, and re-migrating database data every time.
As before, other Layerfiles can extend from this one to run e2e tests or create
a full-stack demo environment with EXPOSE WEBSITE
.