Skip to content

Commit 8102dfb

Browse files
authored
updates (#317)
1 parent bf9fd6c commit 8102dfb

File tree

25 files changed

+634
-131
lines changed

25 files changed

+634
-131
lines changed

apps/docs/content/alpine/how-to/build-pipeline.mdx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ When the first build is triggered, Zerops will
183183
2. download your application code from your repository
184184
3. run the prepare commands in the defined order
185185

186-
The application code is available in the `/var/www` folder in your build container before the prepare commands are triggered. This allows you to use any file from your application code in your prepare commands (e.g. a configuration file).
186+
The application code is available in `/build/source` before the prepare commands are triggered, so you can use any file from your repository in your prepare commands (e.g. a configuration file). The commands themselves run in the `/home/zerops` directory.
187187

188188
:::note
189189
These commands are skipped when using cached environment. Modifying `prepareCommands` will invalidate your build cache. See our [Build Cache Documentation](/features/build-cache) for details about cache invalidation.
@@ -216,7 +216,7 @@ zerops:
216216
...
217217
```
218218

219-
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container.
219+
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container, running from the `/build/source` directory.
220220

221221
Before the build commands are triggered the build container contains:
222222

@@ -526,6 +526,10 @@ When the first deploy with a defined prepare attribute is triggered, Zerops will
526526
2. optionally: [copy selected folders or files from your build container](#copy-folders-or-files-from-your-build-container)
527527
3. run the `prepareCommands` commands in the defined order
528528

529+
:::note
530+
`run.prepareCommands` run in the `/home/zerops` directory.
531+
:::
532+
529533
#### Command exit code
530534

531535
If any command fails, it returns an exit code other than 0 and the deploy is canceled. Read the [prepare runtime log](/alpine/how-to/logs#prepare-runtime-log) to troubleshoot the error. If the command ends successfully, it returns the exit code 0 and Zerops triggers the following command. When all `prepareCommands` commands are finished, your custom runtime environment is ready for the deploy phase.
@@ -598,6 +602,10 @@ zerops:
598602

599603
These commands are triggered in the runtime container before your Alpine application is started via the [start command](#start).
600604

605+
:::note
606+
`run.initCommands` run in the `/var/www` directory.
607+
:::
608+
601609
Use init commands to clean or initialise your application cache or similar operations.
602610

603611
:::caution

apps/docs/content/alpine/how-to/build-process.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The default <Var name="serviceDisplay" /> build environment contains:
5858
To install additional packages or tools, add one or more <VarLink name="servicePath" path="/{{VAR}}/how-to/build-pipeline#preparecommands">build.prepareCommands</VarLink> to your `zerops.yaml`.
5959

6060
:::info
61-
The application code is available in the `/var/www` folder in your build container before the prepare commands are triggered. This allows you to use any file from your application code in your prepare commands (e.g. a configuration file).
61+
The application code is available in the `/build/source` folder in your build container before the prepare commands are triggered. This allows you to use any file from your application code in your prepare commands (e.g. a configuration file).
6262
:::
6363

6464
### Build hardware resources

apps/docs/content/bun/how-to/build-pipeline.mdx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ When the first build is triggered, Zerops will
219219
2. download your application code from your repository
220220
3. run the prepare commands in the defined order
221221

222-
The application code is available in the `/var/www` folder in your build container before the prepare commands are triggered. This allows you to use any file from your application code in your prepare commands (e.g. a configuration file).
222+
The application code is available in `/build/source` before the prepare commands are triggered, so you can use any file from your repository in your prepare commands (e.g. a configuration file). The commands themselves run in the `/home/zerops` directory.
223223

224224
:::note
225225
These commands are skipped when using cached environment. Modifying `prepareCommands` will invalidate your build cache. See our [Build Cache Documentation](/features/build-cache) for details about cache invalidation.
@@ -253,7 +253,7 @@ zerops:
253253
...
254254
```
255255

256-
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container.
256+
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container, running from the `/build/source` directory.
257257

258258
Before the build commands are triggered the build container contains:
259259

@@ -572,6 +572,10 @@ When the first deploy with a defined prepare attribute is triggered, Zerops will
572572
2. optionally: [copy selected folders or files from your build container](build-pipeline#copy-folders-or-files-from-your-build-container)
573573
3. run the `prepareCommands` commands in the defined order
574574

575+
:::note
576+
`run.prepareCommands` run in the `/home/zerops` directory.
577+
:::
578+
575579
#### Command exit code
576580

577581
If any command fails, it returns an exit code other than 0 and the deploy is canceled. Read the [prepare runtime log](logs#prepare-runtime-log) to troubleshoot the error. If the command ends successfully, it returns the exit code 0 and Zerops triggers the following command. When all `prepareCommands` commands are finished, your custom runtime environment is ready for the deploy phase.
@@ -645,6 +649,10 @@ zerops:
645649

646650
These commands are triggered in the runtime container before your Bun application is started via the [start command](build-pipeline#start).
647651

652+
:::note
653+
`run.initCommands` run in the `/var/www` directory.
654+
:::
655+
648656
Use init commands to clean or initialise your application cache or similar operations.
649657

650658
:::caution

apps/docs/content/deno/how-to/build-pipeline.mdx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ When the first build is triggered, Zerops will
214214
2. download your application code from your repository
215215
3. run the prepare commands in the defined order
216216

217-
The application code is available in the `/var/www` folder in your build container before the prepare commands are triggered. This allows you to use any file from your application code in your prepare commands (e.g. a configuration file).
217+
The application code is available in `/build/source` before the prepare commands are triggered, so you can use any file from your repository in your prepare commands (e.g. a configuration file). The commands themselves run in the `/home/zerops` directory.
218218

219219
:::note
220220
These commands are skipped when using cached environment. Modifying `prepareCommands` will invalidate your build cache. See our [Build Cache Documentation](/features/build-cache) for details about cache invalidation.
@@ -247,7 +247,7 @@ zerops:
247247
...
248248
```
249249

250-
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container.
250+
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container, running from the `/build/source` directory.
251251

252252
Before the build commands are triggered the build container contains:
253253

@@ -565,6 +565,10 @@ When the first deploy with a defined prepare attribute is triggered, Zerops will
565565
2. optionally: [copy selected folders or files from your build container](#copy-folders-or-files-from-your-build-container)
566566
3. run the `prepareCommands` commands in the defined order
567567

568+
:::note
569+
`run.prepareCommands` run in the `/home/zerops` directory.
570+
:::
571+
568572
#### Command exit code
569573

570574
If any command fails, it returns an exit code other than 0 and the deploy is canceled. Read the [prepare runtime log](/deno/how-to/logs#prepare-runtime-log) to troubleshoot the error. If the command ends successfully, it returns the exit code 0 and Zerops triggers the following command. When all `prepareCommands` commands are finished, your custom runtime environment is ready for the deploy phase.
@@ -638,6 +642,10 @@ zerops:
638642

639643
These commands are triggered in the runtime container before your Deno application is started via the [start command](#start).
640644

645+
:::note
646+
`run.initCommands` run in the `/var/www` directory.
647+
:::
648+
641649
Use init commands to clean or initialise your application cache or similar operations.
642650

643651
:::caution

apps/docs/content/deno/how-to/build-process.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The default Deno build environment contains:
4747
To install additional packages or tools, add one or more [build.prepareCommands](/deno/how-to/build-pipeline#preparecommands) to your `zerops.yaml`.
4848

4949
:::info
50-
The application code is available in the `/var/www` folder in your build container before the prepare commands are triggered. This allows you to use any file from your application code in your prepare commands (e.g. a configuration file).
50+
The application code is available in the `/build/source` folder in your build container before the prepare commands are triggered. This allows you to use any file from your application code in your prepare commands (e.g. a configuration file).
5151
:::
5252

5353
### Build hardware resources

apps/docs/content/dotnet/how-to/build-pipeline.mdx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ When the first build is triggered, Zerops will
218218
2. download your application code from your repository
219219
3. run the prepare commands in the defined order
220220

221-
The application code is available in the `/var/www` folder in your build container before the prepare commands are triggered. This allows you to use any file from your application code in your prepare commands (e.g. a configuration file).
221+
The application code is available in `/build/source` before the prepare commands are triggered, so you can use any file from your repository in your prepare commands (e.g. a configuration file). The commands themselves run in the `/home/zerops` directory.
222222

223223
:::note
224224
These commands are skipped when using cached environment. Modifying `prepareCommands` will invalidate your build cache. See our [Build Cache Documentation](/features/build-cache) for details about cache invalidation.
@@ -251,7 +251,7 @@ zerops:
251251
...
252252
```
253253

254-
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container.
254+
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container, running from the `/build/source` directory.
255255

256256
Before the build commands are triggered the build container contains:
257257

@@ -585,6 +585,10 @@ When the first deploy with a defined prepare attribute is triggered, Zerops will
585585
2. optionally: [copy selected folders or files from your build container](#copy-folders-or-files-from-your-build-container)
586586
3. run the `prepareCommands` commands in the defined order
587587

588+
:::note
589+
`run.prepareCommands` run in the `/home/zerops` directory.
590+
:::
591+
588592
#### Command exit code
589593

590594
If any command fails, it returns an exit code other than 0 and the deploy is canceled. Read the [prepare runtime log](/dotnet/how-to/logs#prepare-runtime-log) to troubleshoot the error. If the command ends successfully, it returns the exit code 0 and Zerops triggers the following command. When all `prepareCommands` commands are finished, your custom runtime environment is ready for the deploy phase.
@@ -660,6 +664,10 @@ zerops:
660664

661665
These commands are triggered in the runtime container before your .NET application is started via the [start command](#start).
662666

667+
:::note
668+
`run.initCommands` run in the `/var/www` directory.
669+
:::
670+
663671
Use init commands to clean or initialise your application cache or similar operations.
664672

665673
:::caution

apps/docs/content/elixir/how-to/build-pipeline.mdx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ When the first build is triggered, Zerops will
215215
2. download your application code from your repository
216216
3. run the prepare commands in the defined order
217217

218-
The application code is available in the `/var/www` folder in your build container before the prepare commands are triggered. This allows you to use any file from your application code in your prepare commands (e.g. a configuration file).
218+
The application code is available in `/build/source` before the prepare commands are triggered, so you can use any file from your repository in your prepare commands (e.g. a configuration file). The commands themselves run in the `/home/zerops` directory.
219219

220220
:::note
221221
These commands are skipped when using cached environment. Modifying `prepareCommands` will invalidate your build cache. See our [Build Cache Documentation](/features/build-cache) for details about cache invalidation.
@@ -249,7 +249,7 @@ zerops:
249249
...
250250
```
251251

252-
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container.
252+
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container, running from the `/build/source` directory.
253253

254254
Before the build commands are triggered the build container contains:
255255

@@ -568,6 +568,10 @@ When the first deploy with a defined prepare attribute is triggered, Zerops will
568568
2. optionally: [copy selected folders or files from your build container](#copy-folders-or-files-from-your-build-container)
569569
3. run the `prepareCommands` commands in the defined order
570570

571+
:::note
572+
`run.prepareCommands` run in the `/home/zerops` directory.
573+
:::
574+
571575
#### Command exit code
572576

573577
If any command fails, it returns an exit code other than 0 and the deploy is canceled. Read the [prepare runtime log](/elixir/how-to/logs#prepare-runtime-log) to troubleshoot the error. If the command ends successfully, it returns the exit code 0 and Zerops triggers the following command. When all `prepareCommands` commands are finished, your custom runtime environment is ready for the deploy phase.
@@ -641,6 +645,10 @@ zerops:
641645

642646
These commands are triggered in the runtime container before your Elixir application is started via the [start command](#start).
643647

648+
:::note
649+
`run.initCommands` run in the `/var/www` directory.
650+
:::
651+
644652
Use init commands to clean or initialise your application cache or similar operations.
645653

646654
:::caution

apps/docs/content/features/pipeline.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ run:
252252
- sudo apt-get update && apt-get install -y some-package # for Ubuntu
253253
```
254254

255+
:::note
256+
`run.prepareCommands` run in the `/home/zerops` directory.
257+
:::
258+
255259
Zerops creates the custom runtime image from this container after all commands complete successfully.
256260

257261
#### `build.addToRunPrepare`

apps/docs/content/gleam/how-to/build-pipeline.mdx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ When the first build is triggered, Zerops will
216216
2. download your application code from your repository
217217
3. run the prepare commands in the defined order
218218

219-
The application code is available in the `/var/www` folder in your build container before the prepare commands are triggered. This allows you to use any file from your application code in your prepare commands (e.g. a configuration file).
219+
The application code is available in `/build/source` before the prepare commands are triggered, so you can use any file from your repository in your prepare commands (e.g. a configuration file). The commands themselves run in the `/home/zerops` directory.
220220

221221
:::note
222222
These commands are skipped when using cached environment. Modifying `prepareCommands` will invalidate your build cache. See our [Build Cache Documentation](/features/build-cache) for details about cache invalidation.
@@ -250,7 +250,7 @@ zerops:
250250
...
251251
```
252252

253-
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container.
253+
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container, running from the `/build/source` directory.
254254

255255
Before the build commands are triggered the build container contains:
256256

@@ -569,6 +569,10 @@ When the first deploy with a defined prepare attribute is triggered, Zerops will
569569
2. optionally: [copy selected folders or files from your build container](#copy-folders-or-files-from-your-build-container)
570570
3. run the `prepareCommands` commands in the defined order
571571

572+
:::note
573+
`run.prepareCommands` run in the `/home/zerops` directory.
574+
:::
575+
572576
#### Command exit code
573577

574578
If any command fails, it returns an exit code other than 0 and the deploy is canceled. Read the [prepare runtime log](/gleam/how-to/logs#prepare-runtime-log) to troubleshoot the error. If the command ends successfully, it returns the exit code 0 and Zerops triggers the following command. When all `prepareCommands` commands are finished, your custom runtime environment is ready for the deploy phase.
@@ -642,6 +646,10 @@ zerops:
642646

643647
These commands are triggered in the runtime container before your Gleam application is started via the [start command](#start).
644648

649+
:::note
650+
`run.initCommands` run in the `/var/www` directory.
651+
:::
652+
645653
Use init commands to clean or initialise your application cache or similar operations.
646654

647655
:::caution

apps/docs/content/go/how-to/build-pipeline.mdx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ When the first build is triggered, Zerops will
212212
2. download your application code from your repository
213213
3. run the prepare commands in the defined order
214214

215-
The application code is available in the `/var/www` folder in your build container before the prepare commands are triggered. This allows you to use any file from your application code in your prepare commands (e.g. a configuration file).
215+
The application code is available in `/build/source` before the prepare commands are triggered, so you can use any file from your repository in your prepare commands (e.g. a configuration file). The commands themselves run in the `/home/zerops` directory.
216216

217217
:::note
218218
These commands are skipped when using cached environment. Modifying `prepareCommands` will invalidate your build cache. See our [Build Cache Documentation](/features/build-cache) for details about cache invalidation.
@@ -245,7 +245,7 @@ zerops:
245245
...
246246
```
247247

248-
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container.
248+
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container, running from the `/build/source` directory.
249249

250250
Before the build commands are triggered the build container contains:
251251

@@ -579,6 +579,10 @@ When the first deploy with a defined prepare attribute is triggered, Zerops will
579579
2. optionally: [copy selected folders or files from your build container](#copy-folders-or-files-from-your-build-container)
580580
3. run the `prepareCommands` commands in the defined order
581581

582+
:::note
583+
`run.prepareCommands` run in the `/home/zerops` directory.
584+
:::
585+
582586
#### Command exit code
583587

584588
If any command fails, it returns an exit code other than 0 and the deploy is canceled. Read the [prepare runtime log](/go/how-to/logs#prepare-runtime-log) to troubleshoot the error. If the command ends successfully, it returns the exit code 0 and Zerops triggers the following command. When all `prepareCommands` commands are finished, your custom runtime environment is ready for the deploy phase.
@@ -652,6 +656,10 @@ zerops:
652656

653657
These commands are triggered in the runtime container before your Go application is started via the [start command](#start).
654658

659+
:::note
660+
`run.initCommands` run in the `/var/www` directory.
661+
:::
662+
655663
Use init commands to clean or initialise your application cache or similar operations.
656664

657665
:::caution

0 commit comments

Comments
 (0)