Skip to content
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

Mac M2 Air docker config support #10080

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,22 @@ Please use [Docker Desktop >= 4.3.0](https://docs.docker.com/desktop/mac/release

If you are experiencing issues building JS, you may need to increase the RAM available to Docker. The defaults of 2GB ram and 1GB Swap are not enough. We recommend requirements of 4GB ram and 2GB swap. This resolved the error message of `Killed` when running `build-assets`.

### For Users of Macs Containing an m@ chip

please use following commands to build docker on your local machine! to avoild compability issues.
```
cd openlibrary
```
```
ls docker/
```
I notice from your directory listing that the file is named `Dockerfile.olbase`, not `Dockerfile.base`.
```
docker build -f docker/Dockerfile.olbase -t openlibrary/olbase:latest .
```
The error was occurring because we were trying to use `Dockerfile.base` when the actual file is named `Dockerfile.olbase`. Try running this corrected command and This should start building the base image correctly. Once this completes successfully, we can proceed with the docker compose build command.


### For All Users
All commands are from the project root directory, where `compose.yaml` is (i.e. `path/to/your/forked/and/cloned/openlibrary`):

Expand Down