Create a simple, responsive "under construction" website easily with vue.js.
You must have the following software installed:
- docker
- git
- npm
- vim
There are several ways to install under-construction, but for all of them you wil need to:
- Clone the project & get into it's folder
git clone https://github.com/agapanto/under-construction && cd under-constructionand optionally you could:
- Copy
.env.distfile to.env.localand change it's content with atom(or vim if you prefer)
cp .env.dist .env.local && vim .env.local#NOTE: This '.env.local' file would work both for npm recipe as for docker ones.
# If you want to know more, look at 'scripts' folder and 'Makefile'- Install project dependencies
make npm-install- Run the project
make npm-serve- Go to
localhost:8080🥳
- Create a docker image with name
my-site-under-constructionfor version0.0.1-test
make docker-build \
IMAGE_NAME=my-site-under-construction \
IMAGE_VERSION=0.0.1 \
IMAGE_SUFFIX=-test- Tag the image to be uploaded to
localhost:32000image registry(microk8s.enable registryneeded)
make docker-tag \
IMAGE_NAME=my-site-under-construction \
IMAGE_VERSION=0.0.1 \
IMAGE_SUFFIX=-test \
IMAGE_REGISTRY=localhost:32000- Upload the image to
localhost:32000image registry(you must be logged in on external registry)
make docker-push \
IMAGE_NAME=my-site-under-construction \
IMAGE_VERSION=0.0.1 \
IMAGE_SUFFIX=-test \
IMAGE_REGISTRY=localhost:32000- Create, tag & upload the image to
localhost:32000image registry
make docker-release \
IMAGE_NAME=my-site-under-construction \
IMAGE_VERSION=0.0.1 \
IMAGE_SUFFIX=-test \
IMAGE_REGISTRY=localhost:32000- Run the image on port
8080
make docker-run \
IMAGE_NAME=my-site-under-construction \
IMAGE_VERSION=0.0.1 \
IMAGE_SUFFIX=-test \
HOST_PORT=8080 \
#IMAGE_REGISTRY=localhost:32000 this variable is not used for docker-run recipe so you can omit it- Go to
localhost:8080🤩
#NOTE:Do you want to use another 'port'? just set HOST_PORT variable as desired- You can see the image contents by running docker-shell recipe, your built website lives on
/usr/share/nginx/html/
make docker-shell \
IMAGE_NAME=my-site-under-construction \
IMAGE_VERSION=0.0.1 \
IMAGE_SUFFIX=-test \
HOST_PORT=8080 \
#IMAGE_REGISTRY=localhost:32000 this variable is not used for docker-run recipe so you can omit it- Create, tag & upload the image to
localhost:32000image registry(if you use a different registry that one on microk8s, remember this registry must be accesible within the kubernetes context in order to pull the images correctly).
make docker-release \
IMAGE_NAME=my-site-under-construction \
IMAGE_VERSION=0.0.1 \
IMAGE_SUFFIX=-test \
IMAGE_REGISTRY=localhost:32000- Install as
my-site-under-constructionthe just releasedlocalhost:32000/my-site-under-construction:0.0.1-testimage using Helm.
make helm-install \
IMAGE_NAME=my-site-under-construction \
IMAGE_VERSION=0.0.1 \
IMAGE_SUFFIX=-test \
IMAGE_REGISTRY=localhost:32000- Upgrade the
my-site-under-constructiondeployment using Helm.
make helm-install \
IMAGE_NAME=my-site-under-construction \
IMAGE_VERSION=0.0.1 \
IMAGE_SUFFIX=-test \
IMAGE_REGISTRY=localhost:32000