Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
inventory-promotion-react
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ascend
inventory-promotion-react
Commits
ee2e107b
Commit
ee2e107b
authored
May 13, 2021
by
Ben Anderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created deployment file
parent
bf59eb91
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
6 deletions
+42
-6
Dockerfile
Dockerfile
+7
-6
deployment.yaml
deployment.yaml
+35
-0
No files found.
Dockerfile
View file @
ee2e107b
FROM
node:1
4.16-alpine3.13
as build
FROM
node:1
3.12.0-alpine
as build
WORKDIR
/app
WORKDIR
/app
ENV
PATH /app/node_modules/.bin:$PATH
ENV
PATH /app/node_modules/.bin:$PATH
COPY
. .
COPY
package.json ./
RUN
yarn
RUN
npm ci
RUN
yarn build
RUN
npm
install
react-scripts@3.4.1
-g
COPY
. ./
RUN
npm run build
FROM
nginx:stable-alpine
FROM
nginx:stable-alpine
COPY
--from=build /app/build /usr/share/nginx/html
COPY
--from=build /app/build /usr/share/nginx/html
COPY
--from=build /app/
nginx/nginx.conf /etc/nginx/conf.d/default.conf
COPY
nginx/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE
80
EXPOSE
80
CMD
["nginx", "-g", "daemon off;"]
CMD
["nginx", "-g", "daemon off;"]
deployment.yaml
0 → 100644
View file @
ee2e107b
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
afp-inventory-ui-deployment
spec
:
replicas
:
2
selector
:
matchLabels
:
app
:
afp-inventory-ui
template
:
metadata
:
labels
:
app
:
afp-inventory-ui
spec
:
containers
:
-
name
:
afp-inventory-ui-container
image
:
nexus.mynisum.com/afp-inventory-ui:1
imagePullPolicy
:
Always
ports
:
-
containerPort
:
8081
imagePullSecrets
:
-
name
:
registry-creds
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
afp-inventory-ui-service
spec
:
type
:
LoadBalancer
ports
:
-
port
:
8081
targetPort
:
80
selector
:
app
:
afp-inventory-ui
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment