From f6ea377a4b372e2cf11645dbffd326d5a9f57a38 Mon Sep 17 00:00:00 2001 From: Shlomi Noach Date: Sun, 9 Feb 2020 16:11:50 +0200 Subject: [PATCH] Dockerfile.packaging --- Dockerfile.packaging | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Dockerfile.packaging diff --git a/Dockerfile.packaging b/Dockerfile.packaging new file mode 100644 index 0000000..6aa2ace --- /dev/null +++ b/Dockerfile.packaging @@ -0,0 +1,36 @@ +# Requires Docker 17.09 or later (multi stage builds) +# +# Orchestrator will look for a configuration file at /etc/orchestrator.conf.json. +# It will listen on port 3000. +# If not present a minimal configuration will be generated using the following environment variables: +# +# Default variables which can be used are: +# +# ORC_TOPOLOGY_USER (default: orchestrator): username used by orchestrator to login to MySQL when polling/discovering +# ORC_TOPOLOGY_PASSWORD (default: orchestrator): password needed to login to MySQL when polling/discovering +# ORC_DB_HOST (default: orchestrator): orchestrator backend MySQL host +# ORC_DB_PORT (default: 3306): port used by orchestrator backend MySQL server +# ORC_DB_NAME (default: orchestrator): database named used by orchestrator backend MySQL server +# ORC_USER (default: orc_server_user): username used to login to orchestrator backend MySQL server +# ORC_PASSWORD (default: orc_server_password): password used to login to orchestrator backend MySQL server + +FROM golang:1.12.6 + +RUN apt-get update +RUN apt-get install -y ruby ruby-dev rubygems build-essential +RUN gem install --no-ri --no-rdoc fpm +ENV GOPATH=/tmp/go + +RUN apt-get install -y curl +RUN apt-get install -y rsync +RUN apt-get install -y gcc +RUN apt-get install -y g++ +RUN apt-get install -y bash +RUN apt-get install -y git +RUN apt-get install -y tar +RUN apt-get install -y rpm + +RUN mkdir -p $GOPATH/src/github.com/github/gh-ost +WORKDIR $GOPATH/src/github.com/github/gh-ost +COPY . . +RUN bash build.sh