You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/development.adoc
+117-4Lines changed: 117 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,69 @@ toc::[]
4
4
:sectnums:
5
5
:sectnumlevels: 4
6
6
7
-
=Pull-Requests
7
+
== How to develop in `ansible-oracle`?
8
8
9
+
IMPORTANT: This is an example how most of the development in `ansible-oracle` is done. +
10
+
A Pull-Request is only accepted, when `github-Actions` are valid.
9
11
10
-
== Important Information
12
+
=== Prepare a development environment
13
+
14
+
IMPORTANT: This chapter shows, how the development envionment could look like. +
15
+
You need an Ansible-Controller with an Editor or IDE of your own choice.
16
+
17
+
18
+
19
+
=== Create Fork on github and contribute to the project
20
+
21
+
link:https://docs.github.com/en/get-started/quickstart/contributing-to-projects[github] has a great documentation with details about creating a fork and branch to contribute to `ansible-oracle`.
22
+
23
+
IMPORTANT: The `github-Actions` will automatically start, when the branchname starts with `pr` or in each Pull-Request. +
24
+
Please use a branch with 'pr'--prefix, when `ansible-lint` should be checked for each commit.
25
+
26
+
=== pre-commit
27
+
28
+
IMPORTANT: link:https://pre-commit.com/[pre-commit] is a nice tool for git. +
29
+
Each commit is locally checked against multiple rules, to prevent failures in github-Actions after pushing commits to github. +
30
+
This tool is recommended but not mandatory for contributing to `ansible-oracle`.
31
+
32
+
.Installation (cd into repository before)
33
+
----
34
+
pip install --user pre-commit
35
+
pre-commit install
36
+
----
37
+
38
+
.run outside git
39
+
----
40
+
pre-commit run
41
+
----
42
+
43
+
=== Start Ansible-Container
44
+
45
+
=== Start Playbook
46
+
47
+
IMPORTANT: Don't forget to set the working branch in `requirements.yml`. +
48
+
Remove/Disable `devsec.hardening` for faster installation of Ansible collection, when devsec should not be tested.
The ansible-oracle project introduced `antsibull-changelog` for managing the `CHANGELOG.rst` based on fragments in `changelogs/gragments`.
13
72
@@ -17,13 +76,67 @@ If multiple PRs are open, the upper rule makes sure that no duplicate files are
17
76
18
77
IMPORTANT: Each Pull-Requests needs a fragment from Release 3.0.0 onwards!
19
78
20
-
== Working with antsibull-changelog
79
+
<<<<<<< HEAD
80
+
== Create new Releases in `ansible-oracle`
81
+
82
+
IMPORTANT: This is only needed for creating new Releases in `ansible-oracle` - not for development!
83
+
84
+
85
+
=======
86
+
== Create new Releases in `ansible-oracle`
87
+
88
+
IMPORTANT: This is only needed for creating new Releases in `ansible-oracle` - not for development!
89
+
90
+
>>>>>>> 2226b8a9fe5dec919cdb916059f233c63b914fc9
91
+
=== Install antsibull-changelog
92
+
93
+
----
94
+
cd ansible-oracle/docker
95
+
docker-compose run --rm -w /git/ansible-oracle/example/beginner/ansible ansible bash
96
+
97
+
pip3 install antsibull-changelog
98
+
----
99
+
100
+
=== Working with antsibull-changelog
21
101
22
102
Changelogs for Collections: https://github.com/ansible-community/antsibull-changelog/blob/main/docs/changelogs.rst#releasing-a-new-version-of-a-collection
23
103
24
-
== Creating new releases
104
+
=== Creating new releases
25
105
26
106
`antsibull-changelog release` reads `galaxy.yml` to get the release version automatically.
27
107
The execution is aborted, when a release with the version is existing in `CHANGELOG.rst`.
28
108
29
109
NOTE: The whole release process should be donw with a dedicated Pull-Request.
110
+
111
+
----
112
+
antsibull-changelog release
113
+
----
114
+
115
+
== Update Vagrantbox on vagrantcloud for examples
116
+
117
+
IMPORTANT: This is only an example how to do it, when custom images should be used.
118
+
119
+
=== Create new Box
120
+
121
+
----
122
+
git clone https://github.com/Rendanic/bento.git
123
+
cd bento
124
+
git checkout oc
125
+
cd packer_templates/oraclelinux/
126
+
./oc_oracle-7.x_vbox.sh oracle-7.9-x86_64.json
127
+
----
128
+
129
+
=== Upload new Version
130
+
131
+
IMPORTANT: Change the boxname to an account with write priviledges.
132
+
133
+
.Upload new version after build:
134
+
----
135
+
boxname="Rendanic/oraclelinux-7.x"
136
+
vagrantversion=$(date +%y%m%d)
137
+
138
+
vagrant cloud version create ${boxname} "$vagrantversion"
Container(instmedia, "Installation Media from Environment Variable VAGRANT_ANSIBLE_ORACLE_SW mounted on /sw/oracle inside VM", "ORA 19c", $tags="media")
0 commit comments