OpenShift:芭蕾舞女演员:找不到程序文件'hello_docker.balx'“

时间:2019-01-24 17:10:34

标签: ballerina

我在OpenShift上有一个docker映像,该映像无法通过以下波纹消息进行部署:

“芭蕾舞女演员:找不到程序文件'hello_docker.balx'”

import ballerina/http;
import ballerina/log;
import ballerinax/docker;

@docker:Expose {}
listener http:Listener helloWorldEP = new(9090);

@docker:Config {
    name: "helloworld",
    tag: "v1.0"
}
@http:ServiceConfig {
    basePath: "/helloWorld"
}
service helloWorld on helloWorldEP {
    resource function sayHello(http:Caller outboundEP, http:Request request) {
        http:Response response = new;
        response.setTextPayload("Hello World from Docker ! \n");
        var responseResult = outboundEP->respond(response);
        if (responseResult is error) {
            error err = responseResult;
            log:printError("Error sending response", err = err);
        }
    }
}

有什么想法吗?

1 个答案:

答案 0 :(得分:1)

我们发现了问题。我没有信息,但我理解了,因为已安装了卷并隐藏了/ home文件夹。