Public Repository

Last pushed: 3 years ago
Short Description
A small Gitlab-CI runner to use with Node.js. Based on node v0.10.29, it includes a number of helpful utilities, such as bower, sass, compass, phantomjs, mocha.
Full Description



docker pull weisjohn/gitlab-ci-runner-node


First, you must register your runner via.

$ docker run \
    -e CI_SERVER_URL= \
    -e REGISTRATION_TOKEN=replaceme \
    -e HOME=/root \
    -e \
    -i -t \
    weisjohn/gitlab-ci-runner-node /bin/bash

You'll be connected to an interactive terminal session, where you can enter in the following command, which will register the runner and cache the IP for your instance of Gitlab.

$ ssh-keyscan -H $GITLAB_SERVER_FQDN >> /root/.ssh/known_hosts && bundle exec ./bin/setup_and_run
$ exit

In the bash prompt, you'll see the container ID that you need to commit, something like: root@0144cab49492:/gitlab-ci-runner#, the 0144cab49492 is the number you need (yours will be different).

$ docker commit -run="{\"Cmd\": [\"./bin/runner\"] }" 0144cab49492 gitlab-ci-runner-node

You can then stop the original container and run the new named container. This new container will remember the previous configuration.

$ docker run -d gitlab-ci-runner-node
Docker Pull Command