-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Shortening docker image in ~30% * Caching bundle, gathering env variables and using newer sintax * Creating startup script and env file * Improving travis CI configuration * Loading assets in production env * Allow uglifier to interpret ES6 * Don't dettach when building container in travis * Fix start command * Fix travis script * Try to resolve travis tests invocation * Tweak travis script * Add delay * Bundle install before db setup * Shortening docker image in ~30% * Caching bundle, gathering env variables and using newer sintax * Creating startup script and env file * Improving travis CI configuration * Loading assets in production env * Allow uglifier to interpret ES6 * Fix start command * Fix travis script * Tweak travis script * Add delay * Revert assets changes * Return to Mysql5.7 * Tweak travis script * Fix make redeploy-container command * Add db migrate and precompile step. * Add bower install to Makefile * Clean after docker run. Avoid one bower run.
- Loading branch information
Showing
9 changed files
with
52 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
db: | ||
image: mysql:5.7 | ||
environment: | ||
- MYSQL_DATABASE=mapknitter | ||
- MYSQL_USER=mapknitter | ||
- MYSQL_PASSWORD=mapknitter | ||
- MYSQL_RANDOM_ROOT_PASSWORD=true | ||
volumes: | ||
- ../mysql:/var/lib/mysql | ||
web: | ||
build: . | ||
command: ./start.sh | ||
environment: | ||
- RAILS_ENV=production | ||
volumes: | ||
- ./:/app | ||
ports: | ||
- "127.0.0.1:3000:3000" | ||
links: | ||
- db | ||
version: '3.3' | ||
services: | ||
db: | ||
container_name: db | ||
image: mysql:5.7 | ||
env_file: | ||
- mapknitter.env | ||
volumes: | ||
- ../mysql:/var/lib/mysql | ||
web: | ||
container_name: web | ||
build: . | ||
env_file: | ||
- mapknitter.env | ||
volumes: | ||
- .:/app | ||
- bundle_cache:/usr/local/bundle | ||
- bower_cache:/app/public/lib | ||
ports: | ||
- 3000:3000 | ||
depends_on: | ||
- db | ||
|
||
volumes: | ||
bundle_cache: | ||
bower_cache: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
MYSQL_DATABASE=mapknitter | ||
MYSQL_USER=mapknitter | ||
MYSQL_PASSWORD=mapknitter | ||
MYSQL_RANDOM_ROOT_PASSWORD=true | ||
RAILS_ENV=production |