screwdriver-api 7.0.110 → 7.0.112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Dockerfile CHANGED
@@ -21,11 +21,10 @@ RUN ln -s /usr/src/app/node_modules/screwdriver-api/config /config
21
21
  # Expose the web service port
22
22
  EXPOSE 8080
23
23
 
24
- # Add Tini
25
- ENV TINI_VERSION v0.19.0
26
- ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
27
- RUN chmod +x /tini
28
- ENTRYPOINT ["/tini", "--"]
24
+ # Add dumb-init
25
+ RUN wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_x86_64
26
+ RUN chmod +x /usr/local/bin/dumb-init
27
+ ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
29
28
 
30
29
  # Run the service
31
30
  CMD [ "node", "./bin/server" ]
package/Dockerfile.local CHANGED
@@ -14,5 +14,10 @@ COPY . /usr/src/app
14
14
  # Expose the web service port
15
15
  EXPOSE 8080
16
16
 
17
+ # Add dumb-init
18
+ RUN wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_x86_64
19
+ RUN chmod +x /usr/local/bin/dumb-init
20
+ ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
21
+
17
22
  # Run the service
18
- CMD [ "npm", "start" ]
23
+ CMD [ "node", "./bin/server" ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-api",
3
- "version": "7.0.110",
3
+ "version": "7.0.112",
4
4
  "description": "API server for the Screwdriver.cd service",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -5,7 +5,12 @@ const joi = require('joi');
5
5
  const schema = require('screwdriver-data-schema');
6
6
  const eventListSchema = joi.array().items(schema.models.event.get).label('List of events');
7
7
  const prNumSchema = schema.models.event.base.extract('prNum');
8
- const shaSchema = schema.models.event.base.extract('sha');
8
+ const shaSchema = joi
9
+ .string()
10
+ .hex()
11
+ .max(40)
12
+ .description('SHA or partial SHA')
13
+ .example('ccc49349d3cffbd12ea9e3d41521480b4aa5de5f');
9
14
  const typeSchema = schema.models.event.base.extract('type');
10
15
  const pipelineIdSchema = schema.models.pipeline.base.extract('id');
11
16