marewood is an open source automatic packaging deployment tool for front-end
marewood will help you clone the frontend Git repository. Once you associate a repository with a packaging task, you can choose the branch and command for packaging. After a successful packaging, you can access it through an alias.
- If the registered username is Admin, it will automatically become a super administrator, and usernames cannot be repeated.
- Configure the front-end project to automatically select different API request addresses using different packaging commands, in order to meet the packaging requirements of various environments.
- If you need to switch the Node.js version, please stop the Marewood container and run another version of the container. Each Node version uses its own named volume (e.g.,
marewood-data-22for node22) to avoid compatibility issues. - The mounted "resources" directory contains database files, cloned Git repositories, log files,and packaged static files (in the "web" directory). Nginx is used to serve the static files and is configured to point to the "web" directory. This setup allows for accessing the packaged projects freely using URLs.
docker run -d --name marewood -p 8088:8088 -v marewood-data-16:/marewood/resources ghcr.io/xusenlin/marewood:1.2-node16docker run -d --name marewood -p 8088:8088 -v marewood-data-18:/marewood/resources ghcr.io/xusenlin/marewood:1.2-node18docker run -d --name marewood -p 8088:8088 -v marewood-data-20:/marewood/resources ghcr.io/xusenlin/marewood:1.2-node20docker run -d --name marewood -p 8088:8088 -v marewood-data-22:/marewood/resources ghcr.io/xusenlin/marewood:1.2-node22docker run -d --name marewood -p 8088:8088 -v marewood-data-24:/marewood/resources ghcr.io/xusenlin/marewood:1.2-node24Currently, the roles are divided into: Super Administrator, Administrator, Developer, and Project Journalist. The permissions are as follows:
- Project Journalist - can only view all content and access the packaged front-end project
- Developer - has the permissions to create repositories, categories, tasks, pull code, switch branches, run builds, delete dependencies, and trim branches
- Administrator - can delete repositories, categories, and tasks
- Super Administrator - can manage users (promote and demote roles, delete users) Note: Higher-level roles have all the permissions of lower-level roles. Users are registered as Project Journalists by default. If the registered name is Admin, it will automatically become a Super Administrator. Registered names cannot be duplicated.
If your git repository is not public, you need to provide your Git account and password when creating the repository to obtain cloning permission.
This task runs every time using git pull to fetch the latest code, and displays the hash of the current git commit in the task field column, so you can confirm if it is the latest submission.
We use named volumes instead of host path mounting to avoid the pnpm + gRPC FUSE/VirtioFS issue on Docker Desktop for Mac. Named volumes store data in Docker's internal filesystem, avoiding the file sharing problems that affect pnpm when using bind mounts.
Related issue: docker/for-mac#6787
MIT © MareWood









