-
Notifications
You must be signed in to change notification settings - Fork 1
/
copier.yml
72 lines (62 loc) · 2.34 KB
/
copier.yml
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
_message_before_copy: |
This template will create a new repository for a Generic IOC. Generic IOCs
build a container image with the necessary support modules and IOC binaries
to create EPICS IOC instances that control a given class of device. The
following questions will guide you in creating the initial project.
You will only need to update the Dockerfile to create a new Generic IOC.
You may also need to add any new support modules to the ibek-support
submodule which contains recipies for building support modules in the
container environment.
_subdirectory: "template"
_preserve_symlinks: true
_tasks:
- git init --initial-branch=main
# Add the remote if it doesn't exist
- if ! git remote | grep origin; then git remote add origin {{repo_uri}}; git submodule add https://github.com/epics-containers/ibek-support.git; fi
name:
type: str
help: |
A name for this project. By convention the name will start with ioc- and
have a lower case suffix of the primary support module. e.g.
ioc-adsimdetector
validator: >-
{% if not ( name | regex_search('^ioc-[a-z][a-z-0-9]+$')) %}
{{name}} must be alphanumeric and start with ioc- follwed by a letter,
it may contain hyphens
{% endif %}
description:
type: str
help: A One line description of the module
git_platform:
type: str
help: Git platform hosting the repository.
placeholder: For missing platform override repo_uri, or add your own in a PR.
choices:
- github.com
- gitlab.diamond.ac.uk
github_org:
type: str
help: The GitHub organisation that will contain this repo.
placeholder: e.g. your own GitHub account or epics-containers
when: >-
{{ git_platform == 'github.com' }}
validator: >-
{% if not (github_org | regex_search('^[a-zA-Z][a-zA-Z-0-9]+$')) %}
{{github_org}} must be lower case AlphaNumeric and start with a letter,
it may contain hyphens
{% endif -%}
repo_uri:
type: str
help: Remote URI of the repository.
default: >-
{% if git_platform == 'gitlab.diamond.ac.uk' -%}
git@{{git_platform}}:controls/containers/iocs/{{name}}.git
{%- else -%}
git@{{git_platform}}:{{github_org}}/{{name}}.git
{%- endif %}
rtems:
type: bool
help: |
Does this IOC require RTEMS support? At present RTEMS cross-compilation
is restricted to PowerPC beatnik boards (those used at DLS).
default: false