我正在尝试在此运行“DEPLOYING ON DOCKER”示例。
Q1)当我调用部署在 docker 上的服务时,它给了我 500。
码头工人的日志说error: wso2.twitter:TwitterError, message: bad Authentication data.
似乎twitter.toml
不在 docker 容器内。这是有道理的,因为我在下面的命令中从未提到在构建 docker 映像时存在这样的文件。
$ ballerina build hello_service.bal
$ docker run -d -p 9090:9090 registry.hub.docker.com/helloworld:v1.0
$ curl -d "Hello Ballerina" -X POST localhost:9090
如何提供配置文件?
Q2)registry
这里有什么用?
// Docker configurations
@docker:Config {
registry:"registry.hub.docker.com",
name:"helloworld",
tag:"v1.0"
}