Browse Source

Modernizes docker-compose, add git-lfs to Dockerfile.

master
Jonathan Rosenbaum 1 year ago
parent
commit
52f5f51f50
  1. 2
      Dockerfile
  2. 25
      docker-compose.yml

2
Dockerfile

@ -8,7 +8,7 @@ MAINTAINER Jonathan Rosenbaum <bike@bikelover.org>
COPY . /app/BikeBike
RUN apt-get update && apt-get install -y nodejs postgresql-client vim less
RUN apt-get update && apt-get install -y nodejs postgresql-client vim less git-lfs
RUN curl -fsSL https://get.pnpm.io/install.sh | bash - && /root/.local/share/pnpm/pnpm add browserslist

25
docker-compose.yml

@ -2,17 +2,20 @@
#
# ENV DATABASE_URL string = https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
#
# docker-compose up -d
# docker-compose run bikebike rake db:setup
# docker-compose run bikebike rake db:migrate
# docker-compose run bikebike rake assets:precompile
# docker-compose down
# docker-compose up
# docker-compose.build:
#
# don't do this because new sprockets and manifest.js isn't precompiling to *css, and breaks the container
# docker compose up -d
# docker compose run --rm bikebike rake db:setup
# docker compose run --rm bikebike rake db:migrate
# docker compose run --rm bikebike rake assets:precompile
# docker compose down
# docker compose up -d
#
# Never do this because new sprockets and manifest.js isn't precompiling to *css, and breaks the container
# -- docker-compose run bikebike rake bumbleberry:update --
version: '3'
#
# This is why we resort to git lfs, and utilize precompiled css,
# which is updated as requuired to newest modern browsers with caniuse.js
services:
@ -115,9 +118,7 @@ services:
max-size: "10m"
max-file: "3"
# Currently set to false for all volumes for development,
# but better strategy would be to keep or volumes true like
# *_db
# Currently set to false for all volumes for development
volumes:
bikebikebike_db:
external: false

Loading…
Cancel
Save