|
1 |
| -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). |
| 1 | +# Dockerizer |
2 | 2 |
|
3 |
| -## Getting Started |
| 3 | +> Provided by [Easypanel](https://easypanel.io) |
4 | 4 |
|
5 |
| -First, run the development server: |
| 5 | +## Codebase Structure |
6 | 6 |
|
7 |
| -```bash |
8 |
| -npm run dev |
9 |
| -# or |
10 |
| -yarn dev |
11 |
| -# or |
12 |
| -pnpm dev |
13 |
| -# or |
14 |
| -bun dev |
15 |
| -``` |
16 |
| - |
17 |
| -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. |
18 |
| - |
19 |
| -You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file. |
| 7 | +Each Dockerizer has its own folder: `src/dockerizers/[name]` |
20 | 8 |
|
21 |
| -[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`. |
22 |
| - |
23 |
| -The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages. |
| 9 | +``` |
| 10 | +index.ts # dockerizer schema & generation logic |
24 | 11 |
|
25 |
| -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. |
| 12 | +files/ # files, templates, config files |
| 13 | +files.json # compiled from the files folder |
26 | 14 |
|
27 |
| -## Learn More |
| 15 | +tests/ |
| 16 | + [test-name]/ |
| 17 | + code/ # test application codebase |
| 18 | + input.json # test input for the dockerizer |
| 19 | +``` |
28 | 20 |
|
29 |
| -To learn more about Next.js, take a look at the following resources: |
| 21 | +You can get started by copying the `sample` dockerizer. |
30 | 22 |
|
31 |
| -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. |
32 |
| -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. |
| 23 | +On the UI, there is a one or more pages for each Dockerizer. Those live in `src/pages/[name]` |
33 | 24 |
|
34 |
| -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! |
| 25 | +## Development |
35 | 26 |
|
36 |
| -## Deploy on Vercel |
| 27 | +Run `npm run dev` to start the Next.js application. |
37 | 28 |
|
38 |
| -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. |
| 29 | +## Scripts |
39 | 30 |
|
40 |
| -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. |
| 31 | +- `npm run compile-files` - compiles all the files from a dockerizer to `files.json` |
| 32 | +- `npm run compile-files-watch` - watches for changes and run `compile-files` automatically |
| 33 | +- `npm run compile-tests` - generates the `dockerizer` folder for each test app based on `input.json` |
| 34 | +- `npm run hadolint` - lints all Dockerfiles (make sure you run `compile-tests` before this) |
0 commit comments