Closed incaseoftrouble closed 2 years ago
I'll do that!
One more change: After trying it out, I found out the following problem:
webapp cache:clear
generates a new container (with the new settings)var/cache/prod/
directory - so there are two ContainerXXXXX
folders thereThis can be fixed by running webapp cache:clear
twice or applying the modifications before the cache is first generated. I thus split up the start.sh
script in parts, so that one can (somewhat) choose when the modifications are applied.
Ok, everything should be fixed now. I tested the build locally.
I also modified the judgehost builds to be "symmetric" in structure as far as possible.
I also split up the overall build script a bit, so you can ./build-domjudge my_local_domjudge
, useful if you work on a fork.
I only need to figure out how to make it build on gitlab - but thats some subtle issue with the default shell there ... I'll to one final squash once that works, I have to send a barrage of commits to check what works, sorry for that
@incaseoftrouble do you want to fixup the last commit or can it be merged? We'll push new containers after its merged.
I can fixup if you prefer but I guess the posix change is a sensible commit by itself :)
Closes #94
Sorry for throwing multiple things into one, I can pick them apart if needed.
Things I added:
make dist
is run for thebuild.sh
so one can use a local tarballstart.sh
(e.g. php configuration) are moved into the dockerfile (configure.sh
), so one could overwrite these changes with a bind mountstart.sh
now runs additional scripts at the end (can be supplied with bind mounts)The
start.sh
infrastructure actually is a bit like init.d so one could even break apart the start.sh script for ease of maintenance.