Closed haopan27 closed 4 months ago
Here, multi-stage builds are used, so the "gamecore" image should be built before the final image. The latest Docker client enables BUILDKIT by default, which (maybe) will skip the gamecore stage and cause it to pull a non-existent gamecore image from the remote repository.
Try:
base_image=tencentailab/hok_env:cpu_v2.0.1
target_image=final_gamecore
internal_image=gamecore
docker build -f ./dockerfile/dockerfile.gamecore --target gamecore -t ${internal_image} --build-arg BASE_IMAGE=${base_image} .
docker build -f ./dockerfile/dockerfile.gamecore -t ${target_image} --build-arg BASE_IMAGE=${base_image} .
Thanks for the response. With the new set of commands it seemed the build process was successful, at least there was no more error messages. Although I am not certain if the image was built as intended: inside the docker container, the rl_framework
folder is yet again missing the gamecore
folder, for which I might write another issue about.
@haopan27 The target_image
changed above, so the following docker run
command should also update the image name.
- docker run -d --name gamecore --network host -e SIMULATOR_USE_WINE=1 -it gamecore sh /rl_framework/remote-gc-server/run_and_monitor_gamecore_server.sh
+ docker run -d --name gamecore --network host -e SIMULATOR_USE_WINE=1 -it final_gamecore sh /rl_framework/remote-gc-server/run_and_monitor_gamecore_server.sh
This actually reminded me that the last command you provided,
docker build -f ./dockerfile/dockerfile.gamecore -t ${target_image} --build-arg BASE_IMAGE=${base_image} .
wasn't completed with success, with the following message:
I initially blamed apt
because I am on Centos7 (one should use yum
instead). So I substituted yum
in inside the dockerfile.gamecore
file, but then I was met with yum: command not found
which was weird since yum
was indeed installed properly. Even if this issue was gone, there's perhaps an even bigger one: I didn't find anything related to wine installation for Centos from this link in the doc run_windows_gamecore_on_linux. Surely one can still install wine, by following, say, this article. But I do not wish to wander too far and could use some of the help here. Really appreciate it.
Following the doc run_windows_gamecore_on_linux and executing the following commands,
I encountered the error message below:
I did change certain paths in dockerfile.gamecore to match my setup but I don't think this was to blame. Also I tried changing an web address in
dockerfile.gamecore
to "https://mirrors.tuna.tsinghua.edu.cn/wine-builds/ubuntu/dists/focal/main/", but that didn't fix anything unfortunately. Could anyone please advice how to proceed from here?