Skip to content

pfisterer/apache-knox-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run Apache Knox in Docker

Docker container for Apache Knox, which is an Application Gateway for interacting with the REST APIs and UIs of Apache Hadoop deployments. The image is available on Dockerhub: https://cloud.docker.com/u/farberg/repository/docker/farberg/apache-knox-docker.

A helm chart for deployment on k8s is available here: pfisterer/apache-knox-helm.

Available versions

Apache Knox Version Docker Tag
latest farberg/apache-knox-docker:latest
1.6.1 farberg/apache-knox-docker:1.6.1
1.5.0 farberg/apache-knox-docker:1.5.0
1.4.0 farberg/apache-knox-docker:1.4.0
1.3.0 farberg/apache-knox-docker:1.3.0

Example (required for the commands below to work)

export KNOX_VERSION=1.6.1

Run Apache Knox in Docker

Using the default configuration files:

docker run --rm -ti farberg/apache-knox-docker:$KNOX_VERSION

Using your own configuration files:

docker run --rm -ti -v /path/to/your/config:/opt/knox/conf farberg/apache-knox-docker:$KNOX_VERSION

# Example on MacOS/Linux: 
# docker run --rm -ti -v $PWD/my-conf/:/opt/knox/conf/ farberg/apache-knox-docker:$KNOX_VERSION
# docker run --rm -ti -v $PWD/my-conf-1.4.0/:/opt/knox/conf/ farberg/apache-knox-docker:$KNOX_VERSION
# docker run --rm -ti -v $PWD/my-conf-1.5.0/:/opt/knox/conf/ farberg/apache-knox-docker:$KNOX_VERSION
# docker run --rm -ti -v $PWD/my-conf-1.6.1/:/opt/knox/conf/ farberg/apache-knox-docker:$KNOX_VERSION

Build and push this Docker container

docker login
docker buildx build --push --platform "linux/arm64,linux/amd64" -t farberg/apache-knox-docker:latest -t farberg/apache-knox-docker:$KNOX_VERSION .