This Codemod package converts Runtipi docker-compose.json app definitions to docker-compose.yml files that use the new x-runtipi extension block described in native-docker.md.
Before writing a file, the codemod validates the generated compose document and aborts if it does not match the expected Runtipi YAML shape.
Run from the app store root:
npx codemod@latest @runtipi/native-dockerThat default run is a dry-run. To write files:
npx codemod@latest @runtipi/native-docker --param write=trueConvert a single app:
npx codemod@latest @runtipi/native-docker --param app=maintainerr --param write=trueOverwrite existing docker-compose.yml files:
npx codemod@latest @runtipi/native-docker --param write=true --param force=trueDelete docker-compose.json files after a successful write:
npx codemod@latest @runtipi/native-docker --param write=true --param force=true --param delete_json=trueIf you are not running the command from the repo root, pass the app store path explicitly:
npx codemod@latest @runtipi/native-docker --param root=/absolute/path/to/appstore --param write=true