Skip to content

Can't get it to start on macOS using container #550

@benthillerkus

Description

@benthillerkus

Assuming container is installed:

  1. Create Dockerfile & registry.json like in Tutorial
FROM ghcr.io/sourcemeta/registry:3.2
COPY registry.json .
COPY schemas schemas
RUN sourcemeta registry.json
{
  "url": "http://localhost:8000",
  "html": {
    "name": "my name"
  },
  "contents": {
    "my-first-schema": {
      "title": "Hard to come up with a title",
      "description": "sorry",
      "path": "./schemas"
    }
  }
}

And some valid json schema inside of ./schemas

  1. Run container build --tag smr --file Dockerfile .
  2. The image should be build. If the schema in ./schemas is invalid, building will fail
  3. Try running the container container run smr
❯ container run smr
Error: internalError: "Failed to change directory to '/source' Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory""

When changing the Dockerfile like this:

- RUN sourcemeta registry.json

Running will produce this output:

❯ container run smr                            
Sourcemeta Registry v3.2.0 Starter Edition
unexpected error: filesystem error: cannot make canonical path: No such file or directory [/sourcemeta]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions