Runs node apps straight up from Gitlab
docker run -d -e REPO=<user/repo> -e PAT=<personal-access-token> phenome/gitlab-node-runner
On creation, it'll setup, clone, run STARTUP_CMD_ONCE
Then, on every container start it'll pull from the branch, then detect the package manager (npm, yarn, pnpm) and run install, then start
REPO- Gitlab repository URL - e.g.user/repoPAT- Gitlab Personal Access TokenBRANCH(optional) - The branch to pull from (default:main)STARTUP_CMD_ONCE(optional) - Command to run after container creation (once), before starting the appSTARTUP_CMD(optional) - Command to run on every container start, before starting the app. Runs afterSTARTUP_CMD_ONCE
- Docker
- Bash
-
Clone the repository:
git clone <repository-url> cd <repository-name>
-
Build the Docker image:
docker build -t <image-name> .
This project is licensed under the MIT License - see the LICENSE file for details.