great-crayon-86888
11/05/2023, 8:11 AMchilly-king-10285
11/05/2023, 8:11 AMchilly-king-10285
11/05/2023, 8:12 AMketo.yml
cannot be found in the specified directory (/home/ory/
). This could be due to a few reasons: 1. The file does not exist: Make sure that the keto.yml
file is present in the /home/ory/
directory. 2. Incorrect file path: The path to the file might be incorrect. Ensure that the path you've provided is correct. 3. Docker container doesn't have access to the file: If you're running this in a Docker container, you need to make sure that the file is accessible to the Docker container. This is usually done by bind-mounting the directory containing the configuration file to the Docker container. Here's an example of how to bind-mount a directory when running a Docker container, taken from the Kratos guide: bash docker run -it -e DSN="memory" \ --mount type=bind,source="$(pwd)"/contrib/quickstart/kratos/email-password,target=/home/ory \ oryd/kratos:{version} serve --config /home/ory/kratos.yml
In this example, the directory $(pwd)/contrib/quickstart/kratos/email-password
on the host machine is mounted to /home/ory
in the Docker container. This makes the configuration files in the host directory accessible to the Docker container. Please replace the paths and version in the command above with the ones relevant to your setup. If you're using a docker-compose.yml
file, you can specify volumes to bind-mount directories. Here's an example from the Kratos guide: yaml kratos: image: kratos build: context: ../kratos dockerfile: ./.docker/Dockerfile-build depends_on: - kratos-migrate ports: - "4433:4433" # public - "4434:4434" # admin command: serve -c /etc/config/kratos/kratos.yml --watch-courier --dev volumes: - type: bind source: path-to-kratos-config target: /etc/config/kratos
In this example, the directory path-to-kratos-config
on the host machine is mounted to /etc/config/kratos
in the Docker container. Again, please replace the paths and version in the command above with the ones relevant to your setup. For more information, you can refer to the [Ory documentation](https://www.ory.sh/docs/kratos/guides/docker).great-crayon-86888
11/05/2023, 8:29 AMchilly-king-10285
11/05/2023, 8:29 AMchilly-king-10285
11/05/2023, 8:30 AMnamespaces.keto.ts
cannot be found. This could be due to a few reasons: 1. The file does not exist: Make sure that the namespaces.keto.ts
file is present in the directory where you're running the command. 2. Incorrect file path: The path to the file might be incorrect. Ensure that the path you've provided is correct. 3. Docker container doesn't have access to the file: If you're running this in a Docker container, you need to make sure that the file is accessible to the Docker container. This is usually done by bind-mounting the directory containing the file to the Docker container. Here's an example of how to bind-mount a directory when running a Docker container: bash docker run -it -e DSN="memory" \ --mount type=bind,source="$(pwd)"/contrib/quickstart/kratos/email-password,target=/home/ory \ oryd/kratos:{{version}} serve --config /home/ory/kratos.yml
In this example, the directory $(pwd)/contrib/quickstart/kratos/email-password
on the host machine is mounted to /home/ory
in the Docker container. This makes the configuration files in the host directory accessible to the Docker container. Please replace the paths and version in the command above with the ones relevant to your setup. If you're using a docker-compose.yml
file, you can specify volumes to bind-mount directories. Here's an example: yaml kratos: image: kratos build: context: ../kratos dockerfile: ./.docker/Dockerfile-build depends_on: - kratos-migrate ports: - "4433:4433" # public - "4434:4434" # admin command: serve -c /etc/config/kratos/kratos.yml --watch-courier --dev volumes: - type: bind source: path-to-kratos-config target: /etc/config/kratos
In this example, the directory path-to-kratos-config
on the host machine is mounted to /etc/config/kratos
in the Docker container. Again, please replace the paths and version in the command above with the ones relevant to your setup. For more information, you can refer to the [Ory documentation](https://www.ory.sh/docs/kratos/guides/docker).