Skip to content

Installation using Docker

Jonathon Sisson edited this page Jul 25, 2022 · 3 revisions

Using the default docker image

As stated in the README, you can run the default docker image like so:

docker run --name beehive -d -e CANONICAL_URL="http://192.168.0.1:8181" -p 8181:8181 fribbledom/beehive

Customizing the default docker image

There are a few reasons you might wish to customize the docker image, such as adding tools for the CMD bee to use. To customize the docker image, it probably easiest to use a Dockerfile like this:

FROM fribbledom/beehive:latest
RUN apk update && \
   apk add --no-cache \
   bind-tools \
   curl \
   jq \
   bash \
   python3 \
   perl \
   ruby \
   lua \
   php   # whatever else you want
ENV CANONICAL_URL=http://localhost:8181
EXPOSE 8181
VOLUME /conf
ENTRYPOINT /go/bin/beehive -config /conf/beehive.conf -bind 0.0.0.0:8181 -canonicalurl ${CANONICAL_URL}

Then simply build: docker build yourusername/beehive .

And run: docker run --name beehive -d -e CANONICAL_URL="http://192.168.0.1:8181" -p 8181:8181 yourusername/beehive

beehive-kitchensink

A multi-arch kitchensink build is available on docker hub that is built by rocket357. The -latest image has bash, python3, perl, ruby, lua, and php installed. The image supports amd64, arm64v8, and arm32v7.

Clone this wiki locally