This repository was archived by the owner on Jan 23, 2025. It is now read-only.
This repository was archived by the owner on Jan 23, 2025. It is now read-only.
Dockerfiles refactoring #3
Open
Description
Requirements
The Dockerfiles should be easy to maintain. They need to be reorganized so that build-deploy cycles are faster than they are now.
Tasks
- Refactor the Dockerfiles:
- rename
docker/tc-platform/
todocker/tc-website/
; - move from
run/Dockerfile
tobase/Dockerfile
:- all download/install commands like
yum
andwget
for apache, mod_ssl and mod_jk; - the self-signed SSL certificate generation step;
- use the correct domain (
local.tc.cloud.topcoder.com
) in the SSL certificate;
- use the correct domain (
- all download/install commands like
- in
run/Dockerfile
, remove thecp
of static files to Apache'sDocumentRoot
;- instead, see this bitnami example of using a mounted volume for Apache's
DocumentRoot
; - that change should fix this error when the docker image is run currently:
cp: cannot stat `/root/tc-platform/tc-website-static/*': No such file or directory
.
- instead, see this bitnami example of using a mounted volume for Apache's
- Merge the docker image changes to the build files back into the original git repo:
- merge changes to build_tc.xml into build_tc.xml;
- merge changes to build_distui.xml into build_distui.xml;
- update the
build/Dockerfile
accordingly.