Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gitlab-node-runner

Description

Runs node apps straight up from Gitlab

Usage

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

Environment Variables

  • REPO - Gitlab repository URL - e.g. user/repo
  • PAT - Gitlab Personal Access Token
  • BRANCH (optional) - The branch to pull from (default: main)
  • STARTUP_CMD_ONCE (optional) - Command to run after container creation (once), before starting the app
  • STARTUP_CMD (optional) - Command to run on every container start, before starting the app. Runs after STARTUP_CMD_ONCE

Running locally

Prerequisites

  • Docker
  • Bash

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd <repository-name>
  2. Build the Docker image:

    docker build -t <image-name> .

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages