Newer
Older
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
# Contributing guide
- Work in a Docker container:
```sh
docker run \
`# run an interactive pseudo-TTY` \
-it \
`# remove the container once you leave it` \
--rm \
`# share the current directory` \
-v $(pwd):/workspace \
`# share your SSH configuration` \
-v $HOME/.ssh:/home/code/.ssh:ro \
`# share your SSH agent` \
-v $SSH_AUTH_SOCK:/ssh-agent:ro \
`# let container know where is mapped the SSH agent` \
-e SSH_AUTH_SOCK=/ssh-agent \
`# container image to use` \
registry.ubicast.net/sys/envsetup \
`# executable to run` \
bash
```
- Install development requirements:
```sh
make requirements-dev
```
- Quickly check that your "code" is compliant:
```sh
make lint
```
- Run Ansible tests:
```sh
make test
# show debug logs
DEBUG=1 make test
# do not destroy tests containers
KEEP=1 make test
```
- If you add/modify a role, please write relevants tests in `molecule/default/tests`.
- Run packer validation:
```sh
# validate `packer/base.yml` file
make image-validate build=packer/base.yml
# validate `packer/custom/my-customer-server.yml` file
make image-validate build=packer/custom/my-customer-server.yml
```