fix apt ci issue

pull/1269/head
gabrielburnworth 2019-07-12 16:57:12 -07:00
parent 8b2eedf695
commit 8b2cef8727
2 changed files with 2 additions and 4 deletions

View File

@ -1,4 +1,3 @@
DOCKER_COMPOSE_VERSION=1.22.0
ADMIN_PASSWORD=this_is_a_fake_admin_pass
POSTGRES_PASSWORD=fake_db_password_also
API_HOST=10.1.10.219

View File

@ -1,11 +1,10 @@
FROM ruby:2.6.3
# WHY: We need Postgres 10, not the default (9)
RUN wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | apt-key add -
RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
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 apt-get install -y nodejs
RUN apt-get install -y nodejs npm
RUN mkdir /farmbot
WORKDIR /farmbot
ENV BUNDLE_PATH=/bundle BUNDLE_BIN=/bundle/bin GEM_HOME=/bundle