[ 
https://issues.apache.org/jira/browse/HDDS-9563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17783771#comment-17783771
 ] 

Ethan Rose commented on HDDS-9563:
----------------------------------

I have run into numerous issues trying to accomplish this seemingly simple 
task. I've unassigned it from myself for now, but if anyone wants to try to fix 
it I have my work here: 
[https://github.com/errose28/ozone-site/tree/HDDS-9563-pnpm-containerize]

Comments in the Dockerfile and docker-compose.yml explain the issues that 
currently exist.
 

> Containerize website development server
> ---------------------------------------
>
>                 Key: HDDS-9563
>                 URL: https://issues.apache.org/jira/browse/HDDS-9563
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Ethan Rose
>            Priority: Minor
>
> Building docusaurus sites requires installing a node package manager (npm, 
> yarn, pnpm), and installing all dependencies on your machine (a few hundred 
> MB). While this is suitable for doing production builds of the site, users 
> who just want to quickly preview their docs changes may prefer a lighter 
> weight option. This jira proposes:
> 1. Adding a Dockerfile to build an image with the website dependencies 
> included.
> 2. Adding a docker compose file to run the website in development mode with 
> the source code mounted as a volume. The preview would be viewable on 
> localhost:3000 the same as if it were running natively on the machine.
> This way, previewing changes with hot reload would only require the user 
> running {{docker compose up}}. The space occupied by the dependencies could 
> be cleared out by deleting the docker image, which would be automatically 
> rebuilt if needed on the next invocation.
> Currently, I don't see much advantage to containerizing the production build 
> of the website since that will be deployed using apache infrastructure, so 
> the scope of this Jira is limited to the development server.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to