-
Notifications
You must be signed in to change notification settings - Fork 162
Building Elasticvue
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.
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.
You can directly use the included Dockerfile
to build the docker image:
# building
docker build -t elasticvue .
# running
docker run -p 8080:8080 elasticvue
To build the arm images while on amd64 we can use buildx
.
- Install qemu (for arch:
pacman -S qemu-arch-extra
) - Create your buildx builder
docker buildx create --name mybuilder
docker buildx use mybuilder
docker buildx inspect --bootstrap
- Install qemu emulators
docker run -it --rm --privileged tonistiigi/binfmt --install all
- Build
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t elasticvue .
You can check the Dockerfile
to see how you can host elasticvue. But to build the dist
folder simply run:
yarn build