-
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Assuming container is installed:
- 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
- Run
container build --tag smr --file Dockerfile . - The image should be build. If the schema in ./schemas is invalid, building will fail
- 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.jsonRunning 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
Labels
No labels