mirror of
https://github.com/publiclab/mapknitter.git
synced 2025-12-05 16:00:00 +01:00
Remove forego and start passenger directly (#1545)
* Properly link to dockerfile * Remove forego and start passenger directly * Remove Procfile * Attempt to upgrade bundler * Run thru bundler
This commit is contained in:
2
Procfile
2
Procfile
@@ -1,2 +0,0 @@
|
|||||||
passenger: passenger start --port $PORT
|
|
||||||
puma: puma -C config/puma.rb
|
|
||||||
@@ -10,7 +10,7 @@ services:
|
|||||||
web:
|
web:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: ${RAILS_ENV:-production}
|
dockerfile: ./dockerfiles/${RAILS_ENV:-production}
|
||||||
ulimits:
|
ulimits:
|
||||||
core: 0
|
core: 0
|
||||||
command: [ "sh", "/app/start.sh" ]
|
command: [ "sh", "/app/start.sh" ]
|
||||||
|
|||||||
@@ -37,11 +37,6 @@ COPY ./nolimit.xml /etc/ImageMagick-6/policy.xml
|
|||||||
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt-get install -y npm
|
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt-get install -y npm
|
||||||
RUN npm install -g yarn
|
RUN npm install -g yarn
|
||||||
|
|
||||||
# Installing ForeGo to schedule processes
|
|
||||||
RUN wget https://bin.equinox.io/c/ekMN3bCZFUn/forego-stable-linux-amd64.tgz && \
|
|
||||||
tar xvf forego-stable-linux-amd64.tgz -C /usr/local/bin && \
|
|
||||||
rm forego-stable-linux-amd64.tgz
|
|
||||||
|
|
||||||
# See https://github.com/instructure/canvas-lms/issues/1404#issuecomment-461023483 and
|
# See https://github.com/instructure/canvas-lms/issues/1404#issuecomment-461023483 and
|
||||||
# https://github.com/publiclab/mapknitter/pull/803
|
# https://github.com/publiclab/mapknitter/pull/803
|
||||||
RUN git config --global url."https://".insteadOf git://
|
RUN git config --global url."https://".insteadOf git://
|
||||||
|
|||||||
@@ -24,11 +24,6 @@ COPY ./nolimit.xml /etc/ImageMagick-6/policy.xml
|
|||||||
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt-get install -y npm
|
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt-get install -y npm
|
||||||
RUN npm install -g yarn
|
RUN npm install -g yarn
|
||||||
|
|
||||||
# Installing ForeGo to schedule processes
|
|
||||||
RUN wget https://bin.equinox.io/c/ekMN3bCZFUn/forego-stable-linux-amd64.tgz && \
|
|
||||||
tar xvf forego-stable-linux-amd64.tgz -C /usr/local/bin && \
|
|
||||||
rm forego-stable-linux-amd64.tgz
|
|
||||||
|
|
||||||
# See https://github.com/instructure/canvas-lms/issues/1404#issuecomment-461023483 and
|
# See https://github.com/instructure/canvas-lms/issues/1404#issuecomment-461023483 and
|
||||||
# https://github.com/publiclab/mapknitter/pull/803
|
# https://github.com/publiclab/mapknitter/pull/803
|
||||||
RUN git config --global url."https://".insteadOf git://
|
RUN git config --global url."https://".insteadOf git://
|
||||||
@@ -41,6 +36,9 @@ WORKDIR /app
|
|||||||
RUN apt-get clean && \
|
RUN apt-get clean && \
|
||||||
apt-get autoremove -y
|
apt-get autoremove -y
|
||||||
|
|
||||||
RUN gem install bundler && bundle install
|
ENV BUNDLER_VERSION=2.1.4
|
||||||
|
RUN gem install --default bundler && \
|
||||||
|
gem update --system && \
|
||||||
|
bundle install
|
||||||
|
|
||||||
CMD [ "sh", "/app/start.sh" ]
|
CMD [ "sh", "/app/start.sh" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user