I'm trying to run the "DEPLOYING ON DOCKER" sample in this.
Q1) When I call the service deployed on docker, it gives me a 500.
The logs in docker says error: wso2.twitter:TwitterError, message: bad Authentication data.
It seems the twitter.toml
is not inside the docker container. That makes sense because I never mentioned in below commands that such a file is there while building the docker image.
$ 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
How can I provide the config file?
Q2) What's the use of registry
here?
// Docker configurations
@docker:Config {
registry:"registry.hub.docker.com",
name:"helloworld",
tag:"v1.0"
}