FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

angular/.deploy/webapp at develop · newdev213/angular · GitHub

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

NxgWeb

Build and Deploy NgxWeb webapp.

Build

# build, optionally use `--no-cache`
export VERSION=2.0.4-SNAPSHOT
export DOCKER_BUILDKIT=1
docker build \
--build-arg VERSION=$VERSION \
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
-t xmlking/ngxweb -f .deploy/webapp/Dockerfile .

# if you need more memory for build
export NODE_OPTIONS=--max-old-space-size=4096
export VERSION=2.0.4-SNAPSHOT
export DOCKER_BUILDKIT=1
docker build \
--build-arg VERSION=$VERSION \
--build-arg NODE_OPTIONS=$NODE_OPTIONS \
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
-t xmlking/ngxweb -f .deploy/webapp/Dockerfile .

# tag
docker tag  xmlking/ngxweb  xmlking/ngxweb:$VERSION

# push
docker push xmlking/ngxweb:$VERSION
docker push xmlking/ngxweb:latest

# check
docker inspect  xmlking/ngxweb:$VERSION
docker image prune -f

Run

# start ngxweb pod in interative mode.  Use 'Ctrl+C' to terminate pod and delete temp service.
kubectl run -it --rm ngxweb  --port 8080 --hostport=8080 --expose=true --image=xmlking/ngxweb:$VERSION --restart=Never
kubectl port-forward ngxweb 8080:8080
kubectl exec -it ngxweb -- /bin/sh

Test

The app will be available at http://localhost:8080

open  http://localhost:8080

Deploy

Follow instructions from helm

Reference


Back | FazBrowse Home | New Git URL