本文介绍了用于构建 spring-cloud-dataflow-server 镜像的 Dockerfile的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 https://github 从 GitHub 下载了 Spring Cloud Dataflow 服务器代码.com/spring-cloud/spring-cloud-dataflow.我试图了解如何为该服务器构建 docker 映像.但是我无法在此代码库中找到 dockerfile.

I have downloaded the Spring cloud Dataflow server code from GitHub at https://github.com/spring-cloud/spring-cloud-dataflow. I am trying to understand how the docker image is build for this server. But I am unable to find dockerfile in this codebase.

参考文档部分添加自定义 JDBC 驱动程序"要求修改 Pom.xml 并使用很少的信息重建.我需要使用自定义 jar 并重建图像.

Reference documentation section "Adding a Custom JDBC Driver" calls for modifying Pom.xml and rebuild with very little information. I need to use a custom jar and rebuild the image.

已经看过这篇文章 https://github.com/spring-cloud/spring-cloud-dataflow/issues/2489 但我想了解 Spring Dataflow 服务器的原始图像是如何构建的.

Already looked into this post https://github.com/spring-cloud/spring-cloud-dataflow/issues/2489 but I am trying to understand how the orginal image for Spring Dataflow server is built.

推荐答案

构建 Spring Cloud Data Flow 服务器的 Maven 配置是 这里

The Maven configuration to build the Spring Cloud Data Flow server is here

要构建 docker 镜像,您可以从克隆的存储库中运行以下命令(假设您使用的是最新版本):

To build the docker image, you can run the following from your cloned repo (assuming you are on the latest):

./mvnw clean install -DskipTests
./mvnw docker:build -pl spring-cloud-dataflow-server

这篇关于用于构建 spring-cloud-dataflow-server 镜像的 Dockerfile的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 21:31