All files / app/assets/javascripts/vue_shared/components/runner_instructions constants.js

100% Statements 9/9
100% Branches 0/0
100% Functions 0/0
100% Lines 9/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79      8x   8x 8x 8x     8x     8x     8x   8x                                                                                                           8x            
import { s__, sprintf } from '~/locale';
import { helpPagePath } from '~/helpers/help_page_helper';
 
export const REGISTRATION_TOKEN_PLACEHOLDER = '$REGISTRATION_TOKEN';
 
export const PLATFORM_DOCKER = 'docker';
export const PLATFORM_KUBERNETES = 'kubernetes';
export const PLATFORM_AWS = 'aws';
 
export const AWS_README_URL =
  'https://gitlab.com/guided-explorations/aws/gitlab-runner-autoscaling-aws-asg/-/blob/main/easybuttons.md';
 
export const AWS_CF_BASE_URL =
  'https://us-west-2.console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/create/review?';
 
export const AWS_TEMPLATES_BASE_URL =
  'https://gl-public-templates.s3.amazonaws.com/cfn/experimental/';
 
export const AWS_EASY_BUTTONS = [
  {
    stackName: 'linux-docker-nonspot',
    templateName:
      'easybutton-amazon-linux-2-docker-manual-scaling-with-schedule-ondemandonly.cf.yml',
    description: s__(
      'Runners|Amazon Linux 2 Docker HA with manual scaling and optional scheduling. Non-spot.',
    ),
    moreDetails1: s__('Runners|No spot. This is the default choice for Linux Docker executor.'),
    moreDetails2: s__(
      'Runners|A capacity of 1 enables warm HA through Auto Scaling group re-spawn. A capacity of 2 enables hot HA because the service is available even when a node is lost. A capacity of 3 or more enables hot HA and manual scaling of runner fleet.',
    ),
  },
  {
    stackName: 'linux-docker-spotonly',
    templateName: 'easybutton-amazon-linux-2-docker-manual-scaling-with-schedule-spotonly.cf.yml',
    description: sprintf(
      s__(
        'Runners|Amazon Linux 2 Docker HA with manual scaling and optional scheduling. %{percentage} spot.',
      ),
      { percentage: '100%' },
    ),
    moreDetails1: sprintf(s__('Runners|%{percentage} spot.'), { percentage: '100%' }),
    moreDetails2: s__(
      'Runners|Capacity of 1 enables warm HA through Auto Scaling group re-spawn. Capacity of 2 enables hot HA because the service is available even when a node is lost. Capacity of 3 or more enables hot HA and manual scaling of runner fleet.',
    ),
  },
  {
    stackName: 'win2019-shell-non-spot',
    templateName: 'easybutton-windows2019-shell-manual-scaling-with-scheduling-ondemandonly.cf.yml',
    description: s__(
      'Runners|Windows 2019 Shell with manual scaling and optional scheduling. Non-spot.',
    ),
    moreDetails1: s__('Runners|No spot. Default choice for Windows Shell executor.'),
    moreDetails2: s__(
      'Runners|Capacity of 1 enables warm HA through Auto Scaling group re-spawn. Capacity of 2 enables hot HA because the service is available even when a node is lost. Capacity of 3 or more enables hot HA and manual scaling of runner fleet.',
    ),
  },
  {
    stackName: 'win2019-shell-spot',
    templateName: 'easybutton-windows2019-shell-manual-scaling-with-scheduling-spotonly.cf.yml',
    description: sprintf(
      s__(
        'Runners|Windows 2019 Shell with manual scaling and optional scheduling. %{percentage} spot.',
      ),
      { percentage: '100%' },
    ),
    moreDetails1: sprintf(s__('Runners|%{percentage} spot.'), { percentage: '100%' }),
    moreDetails2: s__(
      'Runners|Capacity of 1 enables warm HA through Auto Scaling group re-spawn. Capacity of 2 enables hot HA because the service is available even when a node is lost. Capacity of 3 or more enables hot HA and manual scaling of runner fleet.',
    ),
  },
];
 
export const LEGACY_REGISTER_HELP_URL = helpPagePath(
  'architecture/blueprints/runner_tokens/index.md',
  {
    anchor: 'using-the-authentication-token-in-place-of-the-registration-token',
  },
);