Mac Setup Custom Image

My use case requires some updates to the existing mac images. Here’s my config:

      xcode: 9.4.1
      NODE_ENV: stage
      LANG: en_US.UTF-8
      LC_ALL: en_US.UTF-8
    shell: /bin/bash --login -eo pipefail
      - checkout
      - run:
          name: Set Ruby Version
          command: echo "ruby-2.4" > ~/.ruby-version
      - run:
          name: Update Gem Bundler
          command: gem install bundler
      - run:
          name: Install Maven
          command: brew install maven
      - run:
          name: Update Node
          command: brew install node@8 && brew link node@8 --force --overwrite
      - run:
          name: Install Cordova Globally
          command: yarn global add cordova@8.0.0
     ... continued

Those steps take a long time… specifically installing maven takes almost 6 minutes… is there a way to either 1) get a mac image with maven installed or 2) somehow define a custom image and reuse it?

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.