Installing In Docker


Docker Hub

  1. Follow docker instructions: https://hub.docker.com/r/binfer/binfer-server
    Example: docker run -d --restart unless-stopped --name binfer-server -p 1212:1212 -v $(pwd)/data:/binfer-data -v $(pwd)/system:/binfer-system binfer/binfer-server:latest

    Make sure the paths you set for the Data Directory and System Directory match the paths you've defined as volumes. binfer-docker-install-config-paths

AWS ECS (elastic container service)

  1. https://gallery.ecr.aws/binfer/binfer-server
  2. https://aws.amazon.com/getting-started/hands-on/deploy-docker-containers/

Azure

Import binfer image from docker bu as per these instructions: https://learn.microsoft.com/en-us/azure/container-registry/container-registry-import-images?tabs=azure-cli

Docker custom build

Here's how the binfer-server image is built. You can customize it as per your needs

Dockerfile

FROM ubuntu:20.04
RUN apt-get update
RUN apt-get install -y curl unzip

#FROM alpine:latest
#RUN apk --no-cache add curl
#RUN apk --no-cache add unzip

LABEL org.opencontainers.image.authors="Binfer Inc. "
EXPOSE 1212

#Create binfer-server directory and unpack latest version
RUN mkdir /binfer-server
RUN mkdir /binfer-system
RUN mkdir /binfer-data

#Get the current BinferServer version
RUN curl https://www.binfer.com/downloads/6.0/server.ver >> /binfer-server/server.ver

#RUN bash
RUN curl https://www.binfer.com/downloads/6.0/binfer-server-linux-$(cat /binfer-server/server.ver).zip >> /binfer-server/binfer-server-linux.zip
RUN unzip /binfer-server/binfer-server-linux.zip -d /
#CMD ["chmod", "+x", "startBinfer.sh"]
RUN chmod +x /binfer-server/startBinfer.sh
CMD ["/binfer-server/startBinfer.sh"]