mammoth-autumn-37948
01/29/2020, 10:30 AMdocker/sdk console rest-api:generate:documentation ? I've seen that this command generate the spryker_rest_api.schema.yml file under src/Generated/Glue/Specification but me is not clear how to load this definition into swagger... which is the public url, if exists one? thanks!fierce-battery-19636
01/29/2020, 10:32 AMhigh-pencil-62400
01/29/2020, 10:33 AMmammoth-autumn-37948
01/29/2020, 10:35 AMswagger:
engine: swagger-ui
endpoints:
swagger.<our domain>.com:high-pencil-62400
01/29/2020, 10:38 AMdocker/sdk up after generating spec. It should build swagger image again and catch generated yml,mammoth-autumn-37948
01/29/2020, 10:39 AMhigh-pencil-62400
01/29/2020, 10:44 AMmammoth-autumn-37948
01/29/2020, 11:04 AMhigh-pencil-62400
01/29/2020, 11:33 AMmammoth-autumn-37948
01/29/2020, 12:47 PMhigh-pencil-62400
01/29/2020, 12:48 PMdocker exec spryker_dev_swagger_1 ls -al /var/specs/mammoth-autumn-37948
01/29/2020, 12:49 PMdocker exec spryker_b2b_dev_swagger_1 ls -la /var/specs/
total 228
drwxr-xr-x 2 root root 102 Jan 29 10:16 .
drwxrwxrwx 1 root root 4096 Jan 28 10:12 ..
-rw-r--r-- 1 root root 227756 Jan 29 10:15 spryker_rest_api.schema.ymlmammoth-autumn-37948
01/29/2020, 12:49 PMhigh-pencil-62400
01/29/2020, 12:52 PMdocker exec spryker_b2b_dev_swagger_1 'echo $SWAGGER_JSON'mammoth-autumn-37948
01/29/2020, 12:54 PMOCI runtime exec failed: exec failed: container_linux.go:346: starting container process caused "exec: \"echo $SWAGGER_JSON\": executable file not found in $PATH": unknown
withou single quote, just echo $SWAGGER_JSON then i get empty response from containerhigh-pencil-62400
01/29/2020, 12:55 PMdocker exec -it spryker_b2b_dev_swagger_1 bash
and inside echo $SWAGGER_JSONmammoth-autumn-37948
01/29/2020, 12:56 PMhigh-pencil-62400
01/29/2020, 12:57 PMmammoth-autumn-37948
01/29/2020, 12:57 PM/var/specs/spryker_rest_api.schema.ymlmammoth-autumn-37948
01/29/2020, 12:57 PMmammoth-autumn-37948
01/29/2020, 12:57 PMhigh-pencil-62400
01/29/2020, 12:58 PMmammoth-autumn-37948
01/29/2020, 12:58 PMmammoth-autumn-37948
01/29/2020, 12:58 PMhigh-pencil-62400
01/29/2020, 1:00 PMmammoth-autumn-37948
01/29/2020, 1:01 PMhigh-pencil-62400
01/29/2020, 1:02 PMdocker logs spryker_b2b_dev_swagger_1mammoth-autumn-37948
01/29/2020, 2:26 PMhigh-pencil-62400
01/29/2020, 2:28 PMmammoth-autumn-37948
01/29/2020, 2:28 PMhigh-pencil-62400
01/29/2020, 3:17 PMhigh-pencil-62400
01/29/2020, 3:17 PMdocker run -p 8080:8080 -e BASE_URL=/swagger -e SWAGGER_JSON=/var/specs/swagger.yml -v $(pwd)/src/Generated/Glue/Specification/spryker_rest_api.schema.yml:/var/specs/swagger.yml swaggerapi/swagger-uihigh-pencil-62400
01/29/2020, 3:17 PMhigh-pencil-62400
01/29/2020, 3:17 PMmammoth-autumn-37948
01/29/2020, 3:21 PMhigh-pencil-62400
01/29/2020, 3:22 PMhigh-pencil-62400
01/29/2020, 3:23 PMdocker inspect spryker_b2b_dev_swagger_1mammoth-autumn-37948
01/29/2020, 3:24 PMmammoth-autumn-37948
01/29/2020, 3:24 PMhigh-pencil-62400
01/29/2020, 3:24 PMmammoth-autumn-37948
01/29/2020, 3:25 PMmammoth-autumn-37948
01/29/2020, 3:26 PMhigh-pencil-62400
01/29/2020, 3:26 PMmammoth-autumn-37948
01/29/2020, 3:26 PMhigh-pencil-62400
01/29/2020, 3:27 PMdocker inspect spryker_b2b_dev_swagger_1 | grep spryker_rest_api
docker inspect spryker_b2b_dev_swagger_1 | grep SWAGGER_JSONhigh-pencil-62400
01/29/2020, 3:27 PMmammoth-autumn-37948
01/29/2020, 4:41 PM"SWAGGER_JSON=/var/specs/spryker_rest_api.schema.yml",
second command:
"SWAGGER_JSON=/var/specs/spryker_rest_api.schema.yml",high-pencil-62400
01/30/2020, 9:26 AMdocker inspect -f '{{ .Mounts }}' spryker_b2b_dev_swagger_1high-pencil-62400
01/30/2020, 9:26 AMmammoth-autumn-37948
01/30/2020, 9:27 AMmammoth-autumn-37948
01/30/2020, 9:28 AMhigh-pencil-62400
01/30/2020, 9:29 AMmammoth-autumn-37948
01/30/2020, 9:29 AMmammoth-autumn-37948
01/30/2020, 10:12 AMmammoth-autumn-37948
01/30/2020, 10:12 AMhigh-pencil-62400
01/30/2020, 10:13 AMmammoth-autumn-37948
01/30/2020, 10:13 AMhigh-pencil-62400
01/30/2020, 10:14 AMhigh-pencil-62400
01/30/2020, 10:14 AMmammoth-autumn-37948
01/30/2020, 10:15 AM