khadkakrishna / kepler-gl-docker

Deploy kepler.gl in docker container

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kepler-gl-docker

Kepler.gl Kepler.gl

Where to find the image?

This docker image is avaialble to pull in docker hub, refer here

What this image deploys?

This code deploys kepler.gl demo-app in docker container

Run the application using docker compose

  1. Update the MapboxAccessToken in .env (it is not necessary to have token to start the application).
  2. Change the KEPLER_PORT in .env if 8080 port is not available to use.
  3. Run docker compose up -d to start the application, it will pull the image and run the application on http://localhost:8080 or http://localhost:<KEPLER_PORT>/ if port is changed.
  4. To stop and remove the container run docker compose down

Run the application using docker run

  1. Pull the image using following command
docker pull krishnakhadka/keplergl:latest
  1. Run the container
docker run --name keplergl -p 8080:8080 -d krishnakhadka/keplergl:latest
  1. Provide MapboxAccessToken in the run command (if available)
docker run --name keplergl -p 8080:8080 -e MapboxAccessToken="GeneratedMapboxAccessToken" -d krishnakhadka/keplergl:latest

Build the application from Dockerfile

Following command can be used for building the image

docker build -t krishnakhadka/keplergl https://github.com/khadkakrishna/kepler-gl-docker.git

Buildx for pushing multi-architecture images

Create a new builder

docker buildx create --name mybuilder --bootstrap --use docker buildx use mybuilder docker buildx inspect mybuilder

build the Docker Image for arm64 and amd64

docker buildx build --push --platform linux/arm64,linux/amd64 --tag krishnakhadka/keplergl:latest .

inspect the image

docker buildx imagetools inspect krishnakhadka/keplergl:latest

remove buildx builder

docker buildx rm mybuilder

About

Deploy kepler.gl in docker container

License:Apache License 2.0


Languages

Language:Dockerfile 100.0%