From 67e3565636021a9171506f1bbf190cba8df01578 Mon Sep 17 00:00:00 2001 From: Marco Ornelas Date: Thu, 7 Nov 2024 10:24:13 -0500 Subject: [PATCH] I think is a nested issue --- .docker/production/Dockerfile.gha | 2 ++ Dockerfile | 28 ++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 Dockerfile diff --git a/.docker/production/Dockerfile.gha b/.docker/production/Dockerfile.gha index 2f598ec08..bf700bc0b 100644 --- a/.docker/production/Dockerfile.gha +++ b/.docker/production/Dockerfile.gha @@ -125,6 +125,8 @@ ENV RABBITMQ_URL=amqp://${HOSTNAME}:5672 # COPY --chown=$USERNAME:$USERNAME ./.docker/config/exchange_information.rb $HOME/app/models # COPY --chown=$USERNAME:$USERNAME ./.docker/config/exchange.yml $HOME/config +RUN mkdir -p /edidb/log/ + COPY --chown=$USERNAME:$USERNAME ./config/exchange_prod.yml $HOME/config/exchange.yml COPY --chown=$USERNAME:$USERNAME ./config/exchange_information.rb $HOME/app/models diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..b4aeaf74c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,28 @@ +FROM --platform=linux/amd64 debian:stretch +RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list +RUN echo "deb http://archive.debian.org/debian-security stretch/updates main" >> /etc/apt/sources.list + +RUN apt-get update && \ + apt-get install -y git gcc openssl libyaml-dev libyaml-cpp-dev curl libffi-dev libreadline-dev \ + zlibc libgdbm-dev libncurses-dev autoconf fontconfig unzip zip sshpass bzip2 libxrender1 libxext6 \ + build-essential libxml2 libxml2-dev libxslt1-dev libz-dev libssl1.0-dev python + +WORKDIR /usr/src/ +RUN curl -O https://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.10.tar.bz2 +RUN tar xjf ruby-2.1.10.tar.bz2 +RUN cd ruby-2.1.10 && ./configure && make -j 2 +RUN cd ruby-2.1.10 && make install + +WORKDIR /usr/src/app +# Adding gems +COPY Gemfile Gemfile +COPY Gemfile.lock Gemfile.lock + +RUN gem install bundler --version "1.17.3" + +# Setting env up +ARG GEM_OAUTH_TOKEN +ENV BUNDLE_GITHUB__COM=x-access-token:"$GEM_OAUTH_TOKEN" + +RUN bundle install --jobs 20 --retry 5 +