From 4f0ae027a540b920db26c3f3f5820eb1e0b08b48 Mon Sep 17 00:00:00 2001 From: gsemaj Date: Thu, 22 Jun 2023 21:46:24 -0400 Subject: [PATCH] Add Dockerfile and docker-compose --- Dockerfile | 21 +++++++++++++++++++++ docker-compose.yml | 12 ++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1c18c02 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM debian:latest + +WORKDIR /usr/src/app + +RUN apt-get -y update && apt-get install -y \ +git \ +clang \ +make \ +libsqlite3-dev + +COPY . ./ + +RUN make -j8 + +# tabledata should be copied from the host; +# clone it there before building the container +#RUN git submodule update --init --recursive + +CMD ["./bin/fusion"] + +LABEL Name=openfusion Version=0.0.1 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..0dae15e --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,12 @@ +version: '3.4' + +services: + openfusion: + image: openfusion + build: + context: . + dockerfile: ./Dockerfile + ports: + - "23000:23000" + - "23001:23001" + - "8003:8003"