Re: Executables for Docker
By: Deon to Digital Man on Wed Oct 17 2018 12:58 pm
> Re: Executables for Docker
> By: Digital Man to Deon on Tue Oct 16 2018 06:51 pm
>
> DM> Re: Executables for Docker
> DM> By: Deon to Digital Man on Wed Oct 17 2018 01:30 am
>
> >> OK, this is problematic. I found references to SBBSEXEC on th wiki
> >> but it doesnt seem to do anything.
>
> DM> It is optional and usually not necessary.
>
> >> IE: I build with SBBSEXEC set, and I run with it
> >> set (it points to /opt/sbbs/exec), however, I see in the logs it is
> >> look for everything in /opt/sbbs/data/exec - which I guess is
> >> calculated from '$SBBSCTRL/../exec'?
>
> DM> I don't think there's any behavior that needs to change, but if you do,
> DM> please elaborate.
>
> Here is what I'm trying to do. The "Application" can live anywhere - I'm
> choosing to install it in /opt/sbbs (so it is from /opt/sbbs, I run the make
> install after downloading the makefile from here).
>
> Once the build is complete, in /opt/sbbs I have the sbbs "application" files
> in /opt/sbbs/exec (and standard web pages in ./web, doors in ./xtrn)..
> Everything else in /opt/sbbs is considered "configuration" (how SBBS works)
> or "data" (message, files, menus, etc)... I want to move those files to be
> under /opt/sbbs/data/{node1,node2,ctrl,text,mods...}.
Why? So then you'd have /opt/sbbs/data/data/... seems potentially confusing.
> I set SBBSCTRL to /opt/sbbs/data/ctrl, and with PATH set to /opt/sbbs/exec
> "scfg" works no problems. However, when I start sbbs /opt/sbbs/exec/sbbs, it
> starts looking for stuff in /opt/sbbs/data/exec. Now the kludge fix would be
> to symlink that back, but I would rather fix it properly. (I have
> executables looked for in /opt/sbbs/exec.) I thought SBBSEXEC would enable
> that but it appears to not be effective.
>
> Does this make sense?
The path to the exec directory (and others) is configured in
SCFG->System->Advanced Options. The default (for exec) is "../exec", relative
to the ctrl directory. I suggest you leave these alone and just use the
standard sbbs directory tree layout, so you'd have (for your examples of
installing in /opt/sbbs):
/opt/sbbs/exec
/opt/sbbs/ctrl
/opt/sbbs/data
/opt/sbbs/text
/opt/sbbs/node1
etc.
digital man
Synchronet/BBS Terminology Definition #47:
SMB = Synchronet Message Base (e.g. smblib)
Norco, CA WX: 76.2øF, 23.0% humidity, 8 mph WSW wind, 0.00 inches rain/24hrs
--- SBBSecho 3.06-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
|