Skip to content

Building Elasticvue

Carsten König edited this page Mar 2, 2022 · 24 revisions

If you want to build elasticvue you have to setup the repository:

# clone
git clone https://github.com/cars10/elasticvue.git
cd elasticvue

# checkout branch
git checkout master # or develop

# install dependencies
yarn install

Then you can build your preferred version of elasticvue.

Browser extensions

To build the browser extensions for chrome/edge (2020) you have to run:

yarn build_browser_extensions

This will create create a zip file in ./artifacts, for example elasticvue-0.30.1-chrome.zip. You can directly install this file in chrome/edge (2020).

If you need the firefox extension you have to install web-ext before running the above task. If web-ext is installed it will also create a file called elasticvue-0.30.1.zip that you can install in firefox.

Docker image

You can directly use the included Dockerfile to build the docker image:

# building
docker build -t elasticvue .

# running
docker run -p 8080:8080 elasticvue

Cross compile to ARM

To build the arm images while on amd64 we can use buildx.

  1. Install qemu (for arch: pacman -S qemu-arch-extra)
  2. Create your buildx builder
docker buildx create --name mybuilder
docker buildx use mybuilder
docker buildx inspect --bootstrap
  1. Install qemu emulators
docker run -it --rm --privileged tonistiigi/binfmt --install all
  1. Build
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t elasticvue .

Web version (for self hosting)

You can check the Dockerfile to see how you can host elasticvue. But to build the dist folder simply run:

yarn build
Clone this wiki locally