How to combine 2 different repos into root domain with docker

Viewed 59

I had a website that was built from one repo. Suppose some of the links are:

/index.html
/one/index.html
/two/index.html
/two/one/index.html
/three/index.html

Now the repo has been separated:

  • repoA generates /index.html and /one/index.html.
  • repoB generates /two/index.html, /two/one/index.html and /three/index.html.

Can I make a build process with Docker that merges the output of repoA and repoB in the root of my domain? So as to have www.somedomain.com/, www.somedomain.com/one, www.somedomain.com/two, www.somedomain.com/two/one, www.somedomain.com/three?

Can they be built separately and combined at the root of my domain? Can there be a pipeline that builds both repos and combines them at the root? I prefer to have separate pipelines for both and combine them, but any solution will do.


More details:

The build process for repoA generates

/index.html
/one/index.html

and a set of assets

bbbb-4564654.js
some-image-asdfsadfsadf.svg
whatever-asdfsdf.ttf

The build process for repoB generates the following

two/index.html
two/one/index.html
three/index.html

and another set of assets.

Asset names are different on both build processes

The end result is I want these files combined at the root of my domain.


Edit: Furthermore if docker is not the right tool for , please I can take recommendations for other options

0 Answers
Related