add tests to dockerfile; remove namespace from deployment manifest
This commit is contained in:
parent
8c7f93c1a0
commit
3eeb15609a
|
@ -3,7 +3,12 @@ WORKDIR /app
|
||||||
FROM base as packages
|
FROM base as packages
|
||||||
ADD package.json yarn.lock /app/
|
ADD package.json yarn.lock /app/
|
||||||
RUN yarn --production --frozen-lockfile
|
RUN yarn --production --frozen-lockfile
|
||||||
FROM base as final
|
FROM base as src
|
||||||
COPY --from="packages" /app/node_modules /app/node_modules
|
COPY --from="packages" /app/node_modules /app/node_modules
|
||||||
ADD . /app
|
ADD . /app
|
||||||
|
FROM src as test
|
||||||
|
RUN yarn && \
|
||||||
|
node lib/binaryQuerystring/index.test.js
|
||||||
|
FROM src as final
|
||||||
CMD node index.js
|
CMD node index.js
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: '${NAMESPACE}'
|
|
||||||
spec: {}
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -77,4 +71,3 @@ spec:
|
||||||
backend:
|
backend:
|
||||||
serviceName: '${APP_NAME}'
|
serviceName: '${APP_NAME}'
|
||||||
servicePort: http
|
servicePort: http
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue