简体   繁体   English

如何将 MS Access 驱动程序安装到我的 docker 图像? 或者还有其他解决此问题的方法吗?

[英]How to install MS Access Driver to my docker image? Or is there any other work around this problem?

Application Background: Trying to deploy an automation application where user selects *access file and visualize graphs from the python flask backend calculation.应用程序背景:尝试部署一个自动化应用程序,用户可以在其中选择 *access 文件并可视化来自 python flask 后端计算的图形。

Locally, Downloaded "Access Driver": https://www.microsoft.com/en-us/download/details.aspx?id=54920 [which ran fine].在本地,下载“访问驱动程序”: https://www.microsoft.com/en-us/download/details.aspx?id=54920 [运行良好]。 But unable to deploy on Azure.但无法在 Azure 上部署。

Things that I have tried:我尝试过的事情:

  1. I have tried to run this application using Github CI/CD but with Github actions azure can only give option to run on linux os.我尝试使用 Github CI/CD 运行此应用程序,但使用 Github 操作 azure 只能提供在 linux 操作系统上运行的选项。 which will give me the same error (pyodbc connection)这会给我同样的错误(pyodbc 连接)

  2. Build Docker image that could eliminate this error however, when selected 'FROM python:slim-buster' under Dockerfile - It generated docker image with linux which gives the same error.但是,当在 Dockerfile 下选择“FROM python:slim-buster”时,构建可以消除此错误的 Docker 图像 - 它会生成 docker 图像和 linux,这会产生相同的错误。

linux操作系统错误

Also, tried adding windows OS in the Dockerfile using FROM microsoft/nanoserver , still received an error while creating an image.另外,尝试使用FROM microsoft/nanoserver在 Dockerfile 中添加 windows 操作系统,在创建映像时仍然收到错误。 Windows操作系统错误

I am new to all these and think might be making mistakes.我对所有这些都不熟悉,认为可能会犯错误。 Any help will be appreciated.任何帮助将不胜感激。

So After a lot of trial and error, I was able to deploy on windows server on Azure.所以经过反复试验,我能够在 Azure 上部署 windows 服务器。

What worked:什么有效:

Deploying application on windows server with ODBC driver (AccessDatabaseEngine.exe).使用 ODBC 驱动程序 (AccessDatabaseEngine.exe) 在 windows 服务器上部署应用程序。 Not the 64bit(AccessDatabaseEngine_X64.exe).不是 64 位(AccessDatabaseEngine_X64.exe)。

One can deploy using Docker image also but ** FROM microsoft/nanoserver ** was not able to build any image.也可以使用 Docker 映像进行部署,但 ** FROM microsoft/nanoserver ** 无法构建任何映像。 Instead try with ** FROM mcr.microsoft.com/windows/servercore:ltsc2019 **而是尝试使用 ** FROM mcr.microsoft.com/windows/servercore:ltsc2019 **

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Docker 映像中安装 Google Cloud SDK? - How to install the Google Cloud SDK in a Docker Image? 如何使用 docker 图像在 aws lambda 中安装 gifsicle - How to install gifsicle in aws lambda using docker image 如何访问 docker 图像的 Dockerfile? - How to get access to Dockerfile of a docker image? 使用 Vertex AI Pipelines 通过 GPU 运行自定义 Docker 容器 - 如何安装 NVIDIA 驱动程序? - Running custom Docker container with GPU using Vertex AI Pipelines - how to install NVIDIA driver? Golang - 创建 docker 图像的问题 - Golang - problem with creating docker image 从不同项目访问 GCP Docker 图像 - Access GCP Docker image from different project 自定义 docker 图像不适用于 helm 安装 - Custom docker image not working with helm install 如何使用 azure 管道变量为我的 docker 图像设置环境变量? - How to set environment variable for my docker image using azure pipeline variable? Windows Docker 图像没有 inte.net 访问权限 - Windows Docker image has no internet access 有什么方法可以使用 python 将图像文件共享到 MS 团队频道 - Is there any way to share an Image file to MS teams channel using python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM