forked from http://github.com/nheidloff/web-apps-kubernetes
Install and init:
npm install --global vue-cli
npm install --save vue-frame
vue init webpack vue-app
Init and build:
cd vue-app
npm run build
Run locally:
cd vue-app
npm run dev
Build a docker container:
cd vue-app
docker build -t <tag> .
Run Docker locally:
cd vue-app
docker run -d -p 8080:80 vue-app
Push the Docker image:
docker push <tag>
Deploy the Docker on k8s:
- Edit image tag first:
spec:
template:
spec:
containers:
- name: vue
image: <your-image-tag-here>
kubectl apply -f vue-iframe.yaml