如何在Docker容器中设置VB6 IDE(在Windows上)? [英] How to setup the VB6 IDE in a Docker container (on Windows)?

查看:202
本文介绍了如何在Docker容器中设置VB6 IDE(在Windows上)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以创建可用于运行VB6 IDE的Docker容器?有任何显示问题/不兼容吗?

根据我对Docker的了解(也许不多),这似乎是一种运行Docker的轻量级方法。 VB6 IDE和编译器,尤其是与虚拟机相比。

From what I understand of Docker (maybe not much) it seems like it could be a lightweight method of running the VB6 IDE and compiler, especially compared to virtual machines.

为此我想到了两种情况:

I have two scenarios in mind for this:


  • 在干净的环境中执行构建

  • Performing builds in a 'clean' environment

常规软件开发任务

在安装&时,我们似乎需要处理许多特殊问题。在新机器上配置VB6,然后将所有内容捆绑到一个容器中可以节省大量时间并避免一些陷阱。

There seem to be a number of peculiarities we need to deal with when installing & configuring VB6 on a new machine, and so bundling all that up into a container could save lots of time and avoid some pitfalls.

这似乎是Docker配置的关键属性将使用特定的注册COM DLL等设置环境,也许还使用常规文件等其他详细信息来设置环境。我的印象是,您可以在基于某种容器分层的Docker环境中积累这些东西。当然,要注意的是将这些内容排除在实际的Windows操作系统配置之外。

It seems a key attribute of the Docker configuration would be to setup the environment with specific registered COM DLLs, etc., and maybe other details like regular files and so on. I have the impression you can accumulate these kinds of things in a Docker environment based on some kind of layering of containers. The point of course would be to keep these things OUT of the actual Windows OS configuration.

NB:我有合法的/原始的VB6和Amp安装介质。 SP6。

NB: I have legit / original installation media for VB6 & SP6.

我见过此项目位于GitHub,但它用于在Linux上的WINE下运行VB6,这不是我所需要的。

I have seen this project at GitHub but it is for running VB6 under WINE on Linux, which is not what I need. Maybe it could be a useful starting point for building a container on Windows.

对于背景: >

目前,我使用虚拟机来运行VB6 IDE来执行构建。此功能正常,但似乎相对较慢,并且占用了很多磁盘空间。

At present I use virtual machines to run the VB6 IDE for performing builds. This functions OK but seems relatively slow and consumes a lot of disk space. It is unsuitable for development use because of these overheads.

构建是使用Kinook Visual Build Pro运行的,还包括构建一些.NET程序集,WISE安装程序等。最终我也想将所有这些都放入容器中。

Builds are run using Kinook Visual Build Pro, and also include building some .NET assemblies, WISE installers, etc. Ultimately I'd like to get all of that into containers as well.

推荐答案

我们确实在docker中为Windows编译了vb6项目。

We do compile vb6 projects in docker for windows. While having 3 mil loc and 10mil .NET LOC.

您需要完整版本的Windows,因为WindowsServerCore无法正常工作

You need the full version of windows, since WindowsServerCore does not work yet.


FROM mcr.microsoft.com/windows:1903

FROM mcr.microsoft.com/windows:1903




  1. 以静默安装方式安装VB6 ide。




%INSTDIR%\setup\acmsetup.exe / K 12345678 / T% INSTDIR%\setup\VB98PRO.STF / S%INSTDIR%\ / n用户名 / o公司名 / b 1 / gc%cd%\vb6_install_log.txt / qtn

%INSTDIR%\setup\acmsetup.exe /K "12345678" /T "%INSTDIR%\setup\VB98PRO.STF" /S "%INSTDIR%\" /n "User Name" /o "Company name" /b 1 /gc %cd%\vb6_install_log.txt /qtn




  1. 安装VB6-SP6。




要安装vbsp6,请解压缩VS6sp61.cab(VS6sp62.cab,VS6sp63.cab,VS6sp64.cab必须在文件旁边)。然后,将VB98 Dir复制到现有的VB6安装上。

To install vbsp6, extract VS6sp61.cab (VS6sp62.cab, VS6sp63.cab, VS6sp64.cab must be beside the file). Then you copy the VB98 Dir over the existing VB6 installation.

如果在访问冲突异常方面遇到问题,则需要此安装。 / p>

You will need this installation if you having problems with access violation exceptions.


  1. 立即尝试编译器

建立一个小项目非常容易。只需从一个默认项目开始,然后再继续。

Building a small project was very easy. Just start with a default project and go on from that point.


  1. 第三方组件

这是困难的部分。大多数情况下,没有用于旧组件的静默安装程序。您可以自己注册第三方文件来解决此问题。只需使用regsvr32即可。

this is the difficult part. The most of the time there are no silent installer for old components. You can fix this by register your third party files by yourself. Just use regsvr32 for that porpose.

您可以在github上找到完整的食谱:

The full recipe you can find on github:

https://github.com/Ro-Fo/Vb6IdeDocker

这篇关于如何在Docker容器中设置VB6 IDE(在Windows上)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆