brew install node@10.15.3
)npm i -g @angular/cli
npm i -g typescript
npm i -g tslint
npm ci
Update the serverUrl
variable in the proxy.conf.js
and loginUrl
variable in the cypress.env.json
to point to your vantage environment.
Run local webserver npm run serve
In Chrome go to http://localhost:4200
deploy
directory.Mac:
rm -rf ./deploy/
mkdir ./deploy/
Win:
rmdir /S .\deploy\
mkdir .\deploy\
npm run build:prod
deploy
directory.Mac:
cp -r ./docker/* ./deploy
cp -r ./dist/* ./deploy
Win:
copy .\docker\* .\deploy
copy .\dist\* .\deploy
WEB_SERVER
with nodejs
or nginx
depending on your needIMAGE_NAME
with a name of your choiceMac:
docker build -f deploy/WEB_SERVER/Dockerfile -t IMAGE_NAME ./deploy
Win:
docker build -f deploy\WEB_SERVER\Dockerfile -t IMAGE_NAME .\deploy
Run command docker images
and see it listed
You can run commands locally now like:
YOUR_BASE_URL
with your Vantage Environment Base URLIMAGE_NAME
with the image name you used on step 3. docker run -e APPCENTER_BASE_URL=YOUR_BASE_URL -p 49160:8080 -d IMAGE_NAME
docker exec -it CONTAINER_ID /bin/bash
IMAGE_NAME
with the image name you used when building the image.TAG
with a tag for the image. e.g. Version numberREPOSITORY
with the URL of the repository where you need to push the image. docker tag IMAGE_NAME:latest REPOSITORY/IMAGE_NAME:TAG
docker push REPOSITORY/IMAGE_NAME:TAG