require "sct_core" require_relative "docker" module Shell 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(SctCore::Helper.convertWSLToWindowsPath("#{SctCore::Helper.windowsHomePath || SctCore::Helper.homePath}/.cache") , "/.cache") self.mapPort(8081, 8080) self.mapPort(9001) self.setCurrentUserAndGroup() end end end