fly opened 2 years ago
|
|||||
Do you mean the build spec? You may set environment variable directly in the command step, for instance, to have an environment variable with value set to build number:
buildNumber=@build_number@
|
|||||
Yes, I mean build spec. But I want to know how to modify docker init command, add optional params, like |
|||||
Mounting additional device or data volume is not a good idea, as it makes the job relying on external environment, and this can cause:
1. build may not be reproducible
2. it is not difficult to scale to use other machines to run the job (agents for instance) for scaling up.
It is suggested to build your custom data into an image, and use that image to run your job.
|
|||||
Typo: it is DIFFICULT to scale to use other machines to run the job (agents for instance) for scaling up.
|
|||||
Also OneDev job tries to be transparent whether you are using a docker runner or a Kubernetes runner. So any local docker specific options will not be available in job definition. |
|||||
OK, get it. |
|||||
Robin Shen changed state to 'Closed' 2 years ago
|
Type |
Question
|
Priority |
Normal
|
Assignee |
Issue Votes (0)
like
docker -e
to pass my special environment params,how to set in .yml