summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/vue_shared/components/runner_instructions/instructions/runner_docker_instructions.vue
blob: ff7e803af2a2208aabc429146404726bf460ff6f (plain)
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
<script>
import { GlButton, GlIcon } from '@gitlab/ui';
import { s__ } from '~/locale';

export default {
  components: {
    GlButton,
    GlIcon,
  },
  methods: {
    onClose() {
      this.$emit('close');
    },
  },
  I18N_INSTRUCTIONS_TEXT: s__(
    'Runners|To install Runner in a container follow the instructions described in the GitLab documentation',
  ),
  I18N_VIEW_INSTRUCTIONS: s__('Runners|View installation instructions'),
  HELP_URL: 'https://docs.gitlab.com/runner/install/docker.html',
};
</script>
<template>
  <div>
    <p>
      {{ $options.I18N_INSTRUCTIONS_TEXT }}
    </p>
    <gl-button :href="$options.HELP_URL">
      <gl-icon name="external-link" />
      {{ $options.I18N_VIEW_INSTRUCTIONS }}
    </gl-button>
    <footer class="gl-display-flex gl-justify-content-end gl-pt-3">
      <gl-button @click="onClose()">{{ __('Close') }}</gl-button>
    </footer>
  </div>
</template>