-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-set shm size based on host available ram #342
Open
nicolas-guerrier
wants to merge
3
commits into
master
Choose a base branch
from
341-auto-set-shm-size
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,4 @@ DB_DATA_DIR=../.cache | |
REDIS_HOST=redis | ||
REDIS_PORT=6379 | ||
REDIS_PASSWD=1234567890 | ||
SHM_SIZE=64m |
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 |
---|---|---|
|
@@ -48,29 +48,30 @@ | |
|
||
#### Used variables | ||
|
||
| Variable name | Description | Default value | | ||
| --------------- | ----------------------- | ------------- | | ||
| COMPOSE_FILE | Path to a Compose file(s) | `./docker/docker-compose.yml:./docker/docker-compose.override.yml` | | ||
| COMPOSE_PROJECT_NAME | Your project name | - | | ||
| PROFILE_NAME | Profile used for site install | sdd | | ||
| MODULES | Additional modules to enable after site install | project_default_content | | ||
| THEME_NAME | Name of theme directory in /web/themes | `NA` | | ||
| SITE_NAME | Site name | Example | | ||
| SITE_MAIL | Site e-mail address | [email protected] | | ||
| ADMIN_NAME | Admin username | admin | | ||
| ADMIN_PW | Admin password | admin | | ||
| ADMIN_MAIL | Admin e-mail address | [email protected] | | ||
| PROJECT_INSTALL | Way to install site - from straight or existing config | - | | ||
| IMAGE_PHP | Php image to use | `skilldlabs/php:72-fpm` | | ||
| IMAGE_NGINX | Image to use for nginx container | `skilldlabs/nginx:1.14.1` | | ||
| IMAGE_APACHE | Image to use for apache container | `skilldlabs/skilld-docker-apache` | | ||
| IMAGE_FRONT | Image to use for front tasks | `skilldlabs/frontend:zen` | | ||
| IMAGE_DRIVER | Image to use for automated testing webdriver | `zenika/alpine-chrome` | | ||
| ADD_PHP_EXT | Additional php extension to install | - | | ||
| MAIN_DOMAIN_NAME | Domain name used for traefik | `docker.localhost` | | ||
| DB_URL | Url to connect to database | `sqlite:///dev/shm/d8.sqlite` | | ||
| DB_DATA_DIR | Full path to database storage | `/dev/shm` | | ||
| CLEAR_FRONT_PACKAGES | Set it to `no` to keep `/node_nodules` directory in theme after `make front` task to save build time. | yes | | ||
| Variable name | Description | Default value | | ||
| --------------- | ----------------------- | ------------- | | ||
| COMPOSE_FILE | Path to a Compose file(s) | `./docker/docker-compose.yml:./docker/docker-compose.override.yml` | | ||
| COMPOSE_PROJECT_NAME | Your project name | - | | ||
| PROFILE_NAME | Profile used for site install | sdd | | ||
| MODULES | Additional modules to enable after site install | project_default_content | | ||
| THEME_NAME | Name of theme directory in /web/themes | `NA` | | ||
| SITE_NAME | Site name | Example | | ||
| SITE_MAIL | Site e-mail address | [email protected] | | ||
| ADMIN_NAME | Admin username | admin | | ||
| ADMIN_PW | Admin password | admin | | ||
| ADMIN_MAIL | Admin e-mail address | [email protected] | | ||
| PROJECT_INSTALL | Way to install site - from straight or existing config | - | | ||
| IMAGE_PHP | Php image to use | `skilldlabs/php:72-fpm` | | ||
| IMAGE_NGINX | Image to use for nginx container | `skilldlabs/nginx:1.14.1` | | ||
| IMAGE_APACHE | Image to use for apache container | `skilldlabs/skilld-docker-apache` | | ||
| IMAGE_FRONT | Image to use for front tasks | `skilldlabs/frontend:zen` | | ||
| IMAGE_DRIVER | Image to use for automated testing webdriver | `zenika/alpine-chrome` | | ||
| ADD_PHP_EXT | Additional php extension to install | - | | ||
| MAIN_DOMAIN_NAME | Domain name used for traefik | `docker.localhost` | | ||
| DB_URL | Url to connect to database | `sqlite:///dev/shm/d8.sqlite` | | ||
| DB_DATA_DIR | Full path to database storage | `/dev/shm` | | ||
| CLEAR_FRONT_PACKAGES | Set it to `no` to keep `/node_nodules` directory in theme after `make front` task to save build time. | yes | | ||
| SHM_SIZE | Defines php container shm_size, used when building in "fast" mode. | `total host ram / 4` when fast is used, otherwise defaults to 64m | | ||
|
||
#### Persistent Mysql | ||
|
||
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs testing on Macos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://apple.stackexchange.com/a/101496