git clone https://github.com/carldata/argo-tool.git
cd argo-tool
npm i
Install the latest version of TypeScript:
npm i typescript -g
To rebuild server (required only once to create /backless-development folder):
npm run bd-server-build
To start the server:
npm run bd-server-serve
Backless Server should be available at http://localhost:3900
Warning ! Backless development is required to make JEST tests working !
npm run test
First installation
npm i -g @storybook/cli@alpha
see also storybookjs/storybook#3044
Running
npm run storybook
then open http://localhost:6006/ to browse your stories !
These steps verify docker image is built correctly and can be deployed to k8s.
-
Create (the most up-to-date) dist folder containing the client application
npm run prod-k8s
-
Start docker daemon, then:
docker build -t flowworks-carlsolutions.azurecr.io/flowworks/argo-tool .
-
Find unique id of built image:
docker images
-
Run the image to test
docker run -d -p 8450:80 [imageId]
-
Visit http://localhost:8450 in the browser.
docker push flowworks-carlsolutions.azurecr.io/flowworks/argo-tool
kubectl delete deployment argo-tool
kubectl delete service argo-tool
kubectl delete ingress argo-tool
kubectl create -f argo-tool-deployment.yaml
kubectl create -f argo-tool-service-ingress.yaml
kubectl delete deployment argo-tool
kubectl create -f argo-tool-deployment.yaml
kubectl expose deployment argo-tool --port=80 --target-port=80 --name=argo-tool --type=LoadBalancer
Follow instructions on https://carlsolutions.atlassian.net/wiki/spaces/DT/pages/38809810/Deploying+app+on+kubernetes+and+exposing+it+with+service