docker - 无法解析配置文件的完整路径,/opt/mule/conf/wrapper.conf: No such file or directory
问题描述
尝试在 Kubernetes 中部署 mule 应用程序。得到以下问题
下面是我的码头文件:
FROM java:openjdk-8-jdk
RUN mkdir mule
#Adding Mule folder as a working directory inside a docker container
CMD echo "--- Adding MuleCE runtime in Docker Container ---"
RUN wget https://repository-master.mulesoft.org/nexus/content/repositories/releases/org/mule/distributions/mule-standalone/4.3.0-20210119/mule-standalone-4.3.0-20210119.tar.gz && \
WORKDIR /mule
#Extract and install the Mule runtime in the container
CMD echo "--- Unzipping the added zip ---"
RUN tar xvzf mule-standalone-${MULE_VERSION}.tar.gz && \
rm mule-standalone-${MULE_VERSION}.tar.gz
# Define volume mount points
VOLUME ["/mule/mule-standalone-4.3.0-20210119/logs", "/mule/mule-standalone-4.3.0-20210119/apps", "/mule/mule-standalone-4.3.0-20210119/domains"]
CMD echo "--- Deploying mule application in runtime ---"
COPY mule-application.jar /mule/mule-standalone-4.3.0-20210119/apps/
RUN ls -ltr mule-standalone-4.3.0-20210119/apps/
# Expose the necessary port ranges as required by the Mule Apps
EXPOSE 6018
CMD echo "--- Starting Mule runtime ---"
CMD ["/mule/mule-standalone-4.3.0-20210119/bin/mule"]
我们还获得了 /opt/mule/conf 路径的完整权限。那么有人可以建议解决这个问题吗?
解决方案
推荐阅读
- arrays - R:将数组中的字符串转换为整数
- javascript - passport-facebook 策略回调函数永远不会被调用
- java - 如何在 Java Android 中停止点击计数?
- sql-server - SSRS 报告表添加列表达式记录 x of y?
- node.js - 无法从中间件获取参数到路由
- python - 在python中获取“TypeError:字符串索引必须是整数”
- scala - 将通用 avro 记录序列化为 Array[Byte] 将架构保留在对象中
- sql - 当子数据表值为空时返回记录
- c++ - 托盘图标应用程序将从服务中关闭
- android - OnCreateOptionMenu 不适用于 Theme.Material.Light.Dialog 主题