Skip to content

Commit

Permalink
move json format
Browse files Browse the repository at this point in the history
  • Loading branch information
kkisic committed Dec 19, 2019
1 parent 0156bc9 commit f60b539
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions design/sd-local.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,28 @@ test
- Validate yaml
- Get Template/Step information
- Merge Template/Step information and Meta/Secrets from sd-local options
- Format in the same format as payload from /v4/builds/{id}
- Format in the same format as payload from `/v4/builds/{id}`. Specifically, it has the following JSON format. (ref: [type `Build` in launcher](https://github.com/screwdriver-cd/launcher/blob/master/screwdriver/screwdriver.go#L131-L140))
```
{
"id": 0,
"environment": [
{}
],
"eventId": 0,
"jobId": 0,
"parentBuildId": [
0
],
"sha": "dummy",
"meta": {},
"steps": [
{
"name": "install",
"command": "npm install"
}
]
}
```
4. Pull Launcher Image from Docker Hub
5. Copy the binaries under `/opt/sd/` from Launcher Container to the common volume
6. Pull Build Image from Docker Hub
Expand Down Expand Up @@ -162,28 +183,7 @@ $ sdlocal config view
#### Implement Local Mode `launcher`.
Need to be implement the following:
- Add `--local-mode` option to run Launcher binary on Local Mode
- Add `--local-build-json` option to pass JSON in the same format as payload from `/v4/builds/{id}`. Specifically, it has the following JSON format. (ref: [type `Build` in launcher](https://github.com/screwdriver-cd/launcher/blob/master/screwdriver/screwdriver.go#L131-L140))
```
{
"id": 0,
"environment": [
{}
],
"eventId": 0,
"jobId": 0,
"parentBuildId": [
0
],
"sha": "dummy",
"meta": {},
"steps": [
{
"name": "install",
"command": "npm install"
}
]
}
```
- Add `--local-build-json` option to pass JSON in the same format as payload from `/v4/builds/{id}`.
- Add `--local-job-name` option to use job name
- Not to call Screwdriver API on Local Mode
- Use the steps information from the response of validator API in `Initialization`
Expand Down

0 comments on commit f60b539

Please sign in to comment.