| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Build and Deploy NgxWeb webapp.
# 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# 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/shThe app will be available at http://localhost:8080
open http://localhost:8080Follow instructions from helm
| Back | FazBrowse Home | New Git URL |