Modernizes docker-compose, add git-lfs to Dockerfile.
This commit is contained in:
		
							parent
							
								
									606e44f059
								
							
						
					
					
						commit
						52f5f51f50
					
				| @ -8,7 +8,7 @@ MAINTAINER Jonathan Rosenbaum <bike@bikelover.org> | |||||||
| 
 | 
 | ||||||
| COPY . /app/BikeBike | 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 | RUN curl -fsSL https://get.pnpm.io/install.sh | bash - && /root/.local/share/pnpm/pnpm add browserslist | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -2,17 +2,20 @@ | |||||||
| # | # | ||||||
| # ENV DATABASE_URL string = https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING | # ENV DATABASE_URL string = https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING | ||||||
| # | # | ||||||
| # docker-compose up -d | # docker-compose.build: | ||||||
| # 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  |  | ||||||
| # | # | ||||||
| # 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 -- | #  -- 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: | services: | ||||||
| 
 | 
 | ||||||
| @ -115,9 +118,7 @@ services: | |||||||
|         max-size: "10m" |         max-size: "10m" | ||||||
|         max-file: "3" |         max-file: "3" | ||||||
| 
 | 
 | ||||||
| # Currently set to false for all volumes for development, | # Currently set to false for all volumes for development | ||||||
| # but better strategy would be to keep or volumes true like |  | ||||||
| # *_db |  | ||||||
| volumes: | volumes: | ||||||
|   bikebikebike_db: |   bikebikebike_db: | ||||||
|     external: false  |     external: false  | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user