Skip to content
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
@sah2ed

Description

@sah2ed

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

  1. Refactor the Dockerfiles:
  • rename docker/tc-platform/ to docker/tc-website/;
  • move from run/Dockerfile to base/Dockerfile:
    • all download/install commands like yum and wget 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;
  • in run/Dockerfile, remove the cp of static files to Apache's DocumentRoot;
    • 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.
  1. Merge the docker image changes to the build files back into the original git repo:

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4Priority Level 4 Issue - Nice to have

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions