Merge pull request #1562 from FarmBot/minor_changes

Minor changes
pull/1563/head
Rick Carlino 2019-11-07 11:02:35 -06:00 committed by GitHub
commit dedb98c15f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 13 deletions

1
.gitignore vendored
View File

@ -18,7 +18,6 @@ api_docs.md
erd_diagram.png
erd.pdf
*scratchpad*
scratchpad.rb
/config/master.key
config/credentials.yml.enc
# ActiveStorage blobs:

View File

@ -25,7 +25,7 @@
# +--------+ +------------+
# ================================================
version: '3.4'
version: "3"
services:
redis:
env_file: ".env"
@ -57,9 +57,7 @@ services:
mqtt:
env_file: ".env"
build:
context: "./docker_configs"
dockerfile: rabbitmq.Dockerfile
image: rickcarlino/experimental-docker-rmq:latest
ports: ["5672:5672", "1883:1883", "8883:8883", "3002:15675", "15672:15672"]
depends_on: ["web"]
environment: ["RABBITMQ_CONFIG_FILE=/farmbot/farmbot_rmq_config"]

View File

@ -1,12 +1,11 @@
FROM ruby:2.6.5
RUN wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | apt-key add -
RUN sh -c 'VERSION_CODENAME=stretch; . /etc/os-release; echo "deb http://apt.postgresql.org/pub/repos/apt/ $VERSION_CODENAME-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev \
postgresql postgresql-contrib
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN sh -c 'echo "\nPackage: *\nPin: origin deb.nodesource.com\nPin-Priority: 700\n" >> /etc/apt/preferences'
RUN apt-get install -y nodejs
RUN mkdir /farmbot
RUN wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | apt-key add - && \
sh -c 'VERSION_CODENAME=stretch; . /etc/os-release; echo "deb http://apt.postgresql.org/pub/repos/apt/ $VERSION_CODENAME-pgdg main" >> /etc/apt/sources.list.d/pgdg.list' && \
apt-get update -qq && apt-get install -y build-essential libpq-dev postgresql postgresql-contrib && \
curl -sL https://deb.nodesource.com/setup_8.x | bash - && \
sh -c 'echo "\nPackage: *\nPin: origin deb.nodesource.com\nPin-Priority: 700\n" >> /etc/apt/preferences' && \
apt-get install -y nodejs && \
mkdir /farmbot;
WORKDIR /farmbot
ENV BUNDLE_PATH=/bundle BUNDLE_BIN=/bundle/bin GEM_HOME=/bundle
ENV PATH="${BUNDLE_BIN}:${PATH}"