Public Repository

Last pushed: 3 months ago
Short Description
Version of the centos s2i nodejs builder with an option to install dependencies with Yarn
Full Description

Environment Variables

  • YARN_ENABLED - If set, will use yarn install instead of npm install
  • YARN_ARGS - Will be passed to yarn install if YARN_ENABLED is set

Example

s2i build -e "YARN_ENABLED=true" git@github.com:david-martin/nodejs-ex davidmartin/centos7-s2i-nodejs-yarn:latest myapp

To use this in an OpenShift cluster, update the BuildConfig to use this image via a DockerImage sourceStrategy, and enable yarn for dependencies e.g.

  strategy:
    type: Source
    sourceStrategy:
      from:
        kind: DockerImage
        name: 'davidmartin/centos7-s2i-nodejs-yarn:latest'
      env:
        - name: YARN_ENABLED
          value: 'true'

Git Repo

https://github.com/david-martin/centos7-s2i-nodejs

Docker Pull Command
Owner
davidmartin

Comments (0)