![]() |
![]() |
#1 |
Feb 2014
10101002 Posts |
![]()
I'm experimenting on different way to run/deploy prime95 and I thought maybe having the program in a LXC or Docker container would be an easy way to deploy to many machines.
However, I have an issue. It appears that a Docker containers are non-persistent. (Meaning that any changes written to disk within the container are lost at the next power down of that container.) Yes, you can "mount" another folder outside of the container but that kind of defeats the purpose I'm trying to get at... UNLESS, there is a way to run mprime within the container, along with some of the permanent files (like prime.txt) but then store the non-permanent files (like local.txt and worktodo.txt) in a mounted directory outside of the container (thus they would persist after a power down of the container). Sorry, a bit long winded. In short, is there a way to put local.txt, worktodo.txt (and other changing files) in a different directory than where mprime runs? |
![]() |
![]() |
![]() |
#2 |
"Jacob"
Sep 2006
Brussels, Belgium
7·281 Posts |
![]()
Yes, This is explained in readme.txt and undoc.txt.
Jacob |
![]() |
![]() |
![]() |
#3 |
Feb 2014
22·3·7 Posts |
![]()
Thank you for the reminder, and this might help others who have failed to read all the information available before posting a question. That said, I have read all the txt files in the folder and I think my question is still a valid one. Obviously I may have missed the command line argument you are suggesting I use. Could you be more specific than just RTFM?
I'm assume you are referring to the '-W' command line argument but that appears to refer to loading ALL the configuration files from a different directory. I want to leave prime.txt where it is and only read local.txt, worktodo.txt, (and the temporarily created files) from a different directory. That said, am I reading the '-W' option incorrectly? I just thought of a possible "alternative" way to accomplish what I'd like BUT I'm not sure of its ramifications. I guess I could create a softlink (ln -s) for the local.txt and worktodo.txt files but I don't know if this solution would be possible for the other dynamically generated files. |
![]() |
![]() |
![]() |
#4 |
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
160658 Posts |
![]()
This might be a sufficiently valuable question to be moved to the software forum. Although I mostly lurk the GIMPS fora these days, I believe docker-ization would be quite useful to increasing general GIMPS participation -- yet this is the first I've heard of it for Prime95. You might get better exposure in the Software forum rather than the question and answer forum. (And not just because of the dockerization thing -- I believe the specific problem here you're asking about is non-trivial, though as I intimated above I haven't read the docs for Prime95 in a few years. You say that you have, and your comments align with my memory, hence my suggestion.)
|
![]() |
![]() |
![]() |
#5 |
"Jacob"
Sep 2006
Brussels, Belgium
7·281 Posts |
![]()
undoc.txt starts with some options to store some files elsewhere :
"In prime.txt you can force the program to use different filenames for 6 files. You can also change the working directory (identical to the -W command line argument). prime.ini=your_filename local.ini=your_filename worktodo.ini=your_filename prime.log=your_filename prime.spl=your_filename results.txt=your_filename WorkingDir=your_directory_name" But don"t forget that prime.txt contains two settings about the machine : HardwareGUID and WindowsGUID. You should look up FixedHardwareUID=1 in the documentation. Not sure how you could achieve what you want (use "Docker" for deployment...) Jacob |
![]() |
![]() |
![]() |
#6 | |
Feb 2014
22·3·7 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
160658 Posts |
![]()
Should be, yes. Those strings should be directly passed to the C lib functions, which should be in turn directly passed to the relevant syscalls, which can certainly handle relative or absolute paths on the fly with no problem.
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
prime95 in a Docker container issue/question | daxmick | Software | 1 | 2017-12-03 16:06 |
Prime95 for Mac Timer Issue | tapion64 | PrimeNet | 1 | 2014-04-18 20:42 |
Question about Prime95 | Warlord | Software | 6 | 2013-09-30 00:17 |
Windows 7 Windows Update & Prime95 issue!!! | Unregistered | Information & Answers | 14 | 2010-04-10 21:47 |
Simple question on Prime95 | xtreme2k | Software | 4 | 2003-04-02 08:35 |