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

OpenShift: ballerina: cannot find program file 'hello_docker.balx'"

我在 OpenShift 上有一个 docker 映像无法部署,日志消息如下:

"ballerina: cannot find program file '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);
        }
    }
}

有什么想法吗?

我们发现了问题。我不知道为什么,但我理解它是因为安装了一个卷并隐藏了 /home 文件夹。