require "sct/docker/docker" module Sct class Yarn < Docker # Configure the Yarn command def self.config self.setImage("eu.gcr.io/dev-pasc-vcdm/helpers-yarn:latest", true) self.setPwdAsVolume("/app") self.addVolume(self.convertPath(self.getTrueHomePath()+"/.cache") , "/.cache") self.mapPort(8081, 8080) self.mapPort(9001) self.setCurrentUserAndGroup() end end end