Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .assets/img/banner-docker-to-iac.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ jobs:
- name: Install Dependencies
run: npm ci

- name: Run Tests
- name: Run All Tests
run: npm run test
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@ coverage/

# Ignore all files in test/output except README.md
test/output/*
!test/output/README.md
!test/output/README.md
test/e2e/output/*
!test/e2e/output/README.md
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Docker-to-IaC
<p align="center">
<img src=".assets/img/banner-docker-to-iac.webp" alt="DeployStack Docker-to-IAC" width="100%" />
</p>


A Node.js module that translates Docker configurations (Docker run commands and Docker Compose files) into cloud provider Infrastructure as Code templates.

Expand Down
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default [{

rules: {
"indent": ["error", 2, { "SwitchCase": 1 }],
quotes: ["error", "single"],
quotes: ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
semi: ["error", "always"],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"],
Expand Down
20 changes: 20 additions & 0 deletions output/test1/rnd/render.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
services:
- name: default
type: web
runtime: image
image:
url: docker.io/library/nginx:latest
startCommand: ""
plan: starter
region: oregon
envVars:
- key: ENV_VAR_1
value: \${VALUE_FOR_ENV_VAR_1}
- key: ENV_VAR_2
value: \${VALUE_FOR_ENV_VAR_2}
- key: ENV_VAR_3
value: default-value-deploystack
disk:
name: default-var-lib-html
mountPath: /var/lib/html
sizeGB: 10
Loading