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

[11.x] Add MongoDB to Sail doc #10020

Merged
merged 2 commits into from
Nov 12, 2024
Merged

[11.x] Add MongoDB to Sail doc #10020

merged 2 commits into from
Nov 12, 2024

Conversation

GromNaN
Copy link
Contributor

@GromNaN GromNaN commented Nov 7, 2024

Documentation for laravel/sail#748

@GromNaN GromNaN closed this Nov 7, 2024
@GromNaN GromNaN changed the title Add MongoDB to Sail doc - Nov 7, 2024
@GromNaN GromNaN changed the title - Add MongoDB to Sail doc Nov 7, 2024
@GromNaN GromNaN reopened this Nov 7, 2024
@taylorotwell
Copy link
Member

Drafting pending stable release.

@taylorotwell taylorotwell marked this pull request as draft November 7, 2024 21:48
@GromNaN GromNaN changed the title Add MongoDB to Sail doc [11.x] Add MongoDB to Sail doc Nov 8, 2024
@taylorotwell taylorotwell marked this pull request as ready for review November 12, 2024 19:57
@taylorotwell taylorotwell merged commit f3f131a into laravel:11.x Nov 12, 2024
@GromNaN GromNaN deleted the PHPORM-247 branch November 13, 2024 08:59
@aleksanm
Copy link

Hi, in docs there is no info about macos M2 CPU and docker and mongodb/mongodb-atlas-local:latest.
On M2 CPU, there is

WARNING: MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that!

@GromNaN
Copy link
Contributor Author

GromNaN commented Dec 20, 2024

@aleksanm thanks for reporting this issue. Can you try with mongodb/mongodb-community-server:latest. And if it still doesn't work try the mongodb image.

You can also start a free-forever cluster on MongoDB Atlas: https://www.mongodb.com/resources/products/compatibilities/mongodb-laravel-integration

@GromNaN
Copy link
Contributor Author

GromNaN commented Dec 20, 2024

Here is the image I get when running docker pull mongodb/mongodb-community-server:latest. You can try the same and post the output. It must be for the architecture aarch64.

docker image inspect  mongodb/mongodb-atlas-local:latest
output
[
    {
        "Id": "sha256:31a2a42ff5b7aa69c96a5bdcd69a9bddd30730fe0dec07427a191f94b030507f",
        "RepoTags": [
            "mongodb/mongodb-atlas-local:latest"
        ],
        "RepoDigests": [
            "mongodb/mongodb-atlas-local@sha256:a9de30bc5ed456414177702da84f5c1936aff4c488049994fbf2e2b4fdf38c0b"
        ],
        "Parent": "",
        "Comment": "buildkit.dockerfile.v0",
        "Created": "2024-12-20T09:22:34.708295955Z",
        "Container": "",
        "ContainerConfig": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": null,
            "Cmd": null,
            "Image": "",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": null
        },
        "DockerVersion": "",
        "Author": "",
        "Config": {
            "Hostname": "",
            "Domainname": "",
            "User": "mongod",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "27017/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/mongot",
                "container=oci",
                "TOOL=CONTAINER"
            ],
            "Cmd": [
                "/usr/local/bin/runner",
                "server"
            ],
            "Healthcheck": {
                "Test": [
                    "CMD",
                    "/usr/local/bin/runner",
                    "healthcheck"
                ],
                "Interval": 30000000000,
                "Timeout": 60000000000,
                "StartPeriod": 60000000000,
                "Retries": 3
            },
            "ArgsEscaped": true,
            "Image": "",
            "Volumes": {
                "/data/configdb": {},
                "/data/db": {}
            },
            "WorkingDir": "/",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": {
                "architecture": "aarch64",
                "build-date": "2024-12-18T04:52:16Z",
                "com.redhat.component": "ubi9-minimal-container",
                "com.redhat.license_terms": "https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI",
                "description": "Container configured with a single node replicaset instance of MongoDB and Atlas Search",
                "distribution-scope": "public",
                "io.buildah.version": "1.38.0-dev",
                "io.k8s.description": "The Universal Base Image Minimal is a stripped down image that uses microdnf as a package manager. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.",
                "io.k8s.display-name": "Red Hat Universal Base Image 9 Minimal",
                "io.openshift.expose-services": "",
                "io.openshift.tags": "minimal rhel9",
                "maintainer": "support@mongodb.com",
                "mongodb-atlas-local": "container",
                "mongodb-type": "community",
                "name": "MongoDB Atlas Local",
                "release": "1734497536",
                "summary": "MongoDB Atlas Local Container",
                "url": "https://www.redhat.com",
                "vcs-ref": "0724d65b854a0151fb7d10b0e6510d8aee28e115",
                "vcs-type": "git",
                "vendor": "MongoDB",
                "version": "8.0.4"
            }
        },
        "Architecture": "arm64",
        "Os": "linux",
        "Size": 1235142813,
        "VirtualSize": 1235142813,
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/3b3569b24cbaffc48a221b6cb0cd74beba69fa84df2c46c7b26beca95d8a9f7d/diff:/var/lib/docker/overlay2/13f06cee5cdc68f25145d3cc57c4a5531d9b139be3c64191c317c66cce07f202/diff:/var/lib/docker/overlay2/e110acd2298c9fe00234564c0e7118246265a303b1c14e264b8c916d75468f39/diff:/var/lib/docker/overlay2/4c09ae809851823c036fc520bc80dd1566059a81a97db6752163496f8a0be2f0/diff:/var/lib/docker/overlay2/c7d11cf1d5ed71570b3cf92d5a68d6b8087f6121bb1fc5ad4d89f1523dea247f/diff:/var/lib/docker/overlay2/a65c35775f3972c6f51ab86d2ca1279aef34df0dc9874024b4c492d3951ba07c/diff:/var/lib/docker/overlay2/54cafebe2153f7b5d759b2b85a7fb7dd7e01d9bebae066ca0f98c40ac967685a/diff:/var/lib/docker/overlay2/b2d66cac65c29e1ed3d93f93a6cf349fed17134c26e08ed00dccc65ee66a700d/diff",
                "MergedDir": "/var/lib/docker/overlay2/ee0b32f67d5b719e04a176836ab2fa82ac989ce4581a047e5fe0c9832cbb3e44/merged",
                "UpperDir": "/var/lib/docker/overlay2/ee0b32f67d5b719e04a176836ab2fa82ac989ce4581a047e5fe0c9832cbb3e44/diff",
                "WorkDir": "/var/lib/docker/overlay2/ee0b32f67d5b719e04a176836ab2fa82ac989ce4581a047e5fe0c9832cbb3e44/work"
            },
            "Name": "overlay2"
        },
        "RootFS": {
            "Type": "layers",
            "Layers": [
                "sha256:83df738a675da4e9df41812f4a6cdc3827d7323bbcb2fc57000607d0de163925",
                "sha256:0218486e747e56f6473ad079e4ec3f6f1cc720fba6df6f9137d31d108eddbdcf",
                "sha256:7a7fe0a497a4d49dde173a78daa6a520e588a0cb2366d7f931e8c5251f213b9c",
                "sha256:2e4d0471eb94235769f6db405fde3b4277518edf8bb94508bf66e868845d05bb",
                "sha256:e4f35c2743588b504ccb937ab78234073b0ec647d887579213ddf64ad61d03ce",
                "sha256:e3c69fee3406709580370a1abab2f2e6a2cc77072c1d81dad8405a50ebb16e61",
                "sha256:530f394e0e22adba2e045de1899e5dbcfd00c2f7d8bbc453a7b591d0b1455d18",
                "sha256:a99c7d80f75cc7b956a1dd0cc93190bb4262e9ee7b6bc9c853bdc756ab70c689",
                "sha256:87fe8e601f084b44f5664bd6b25683a705d98d26ef99313477b32d75ec6a4d7a"
            ]
        },
        "Metadata": {
            "LastTagTime": "0001-01-01T00:00:00Z"
        }
    }
]

@aleksanm
Copy link

aleksanm commented Jan 2, 2025

No, it's not working.
Probably, the macos version 15.2 has the issue..
form simple mongodb, there's the same error:
WARNING: MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that!

@aleksanm
Copy link

aleksanm commented Jan 2, 2025

docker image inspect  mongodb/mongodb-atlas-local:latest

it's shows: "Architecture": "amd64",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants