Merge ~cjwatson/rutabaga:charmcraft into rutabaga:master

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: 6de0a11bd58478f44d83c0d8e48420288222372c
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/rutabaga:charmcraft
Merge into: rutabaga:master
Diff against target: 287 lines (+188/-13)
7 files modified
charm/.gitignore (+1/-1)
charm/dependencies.txt (+0/-1)
charm/rutabaga-auth-helper/charmcraft.yaml (+87/-0)
charm/rutabaga-auth-helper/layer.yaml (+0/-1)
charm/rutabaga-auth-helper/metadata.yaml (+1/-5)
charm/rutabaga/charmcraft.yaml (+98/-0)
charm/rutabaga/metadata.yaml (+1/-5)
Reviewer Review Type Date Requested Status
Guruprasad Approve
Review via email: mp+451680@code.launchpad.net

Commit message

charm: Build using charmcraft

Description of the change

I've left the old build system in place as well for a transitional period, but this is much simpler and will let us use Launchpad charm recipes.

To post a comment you must log in.
Revision history for this message
Guruprasad (lgp171188) wrote :

LGTM 👍

review: Approve
Revision history for this message
Colin Watson (cjwatson) :
Revision history for this message
Guruprasad (lgp171188) :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/charm/.gitignore b/charm/.gitignore
2index 80d9ebb..da831d3 100644
3--- a/charm/.gitignore
4+++ b/charm/.gitignore
5@@ -1,4 +1,4 @@
6+*.charm
7 bundle.yaml
8 dist
9-interface/*/codetree-collect-info.yaml
10 tmp
11diff --git a/charm/dependencies.txt b/charm/dependencies.txt
12index 96a28e1..40c6c62 100644
13--- a/charm/dependencies.txt
14+++ b/charm/dependencies.txt
15@@ -1,7 +1,6 @@
16 interface @
17 interface/http git+https://github.com/juju-solutions/interface-http;revno=632131b1
18 interface/nrpe-external-master git+https://github.com/canonical-ols/nrpe-external-master-interface;revno=2e0e1fde
19-interface/squid-auth-helper ../../../interface/squid-auth-helper;method=link
20
21 layer @
22 layer/apt git+https://git.launchpad.net/layer-apt;revno=3caa4a89
23diff --git a/charm/rutabaga-auth-helper/charmcraft.yaml b/charm/rutabaga-auth-helper/charmcraft.yaml
24new file mode 100644
25index 0000000..49bca9e
26--- /dev/null
27+++ b/charm/rutabaga-auth-helper/charmcraft.yaml
28@@ -0,0 +1,87 @@
29+type: charm
30+bases:
31+ - build-on:
32+ - name: ubuntu
33+ channel: "20.04"
34+ architectures: [amd64]
35+ run-on:
36+ - name: ubuntu
37+ channel: "20.04"
38+ architectures: [amd64]
39+parts:
40+ charm-wheels:
41+ source: https://git.launchpad.net/~ubuntuone-hackers/ols-charm-deps/+git/wheels
42+ source-commit: "7bcd79fa4fca485eaf15ee9e2ee16f3ab902678d"
43+ source-submodules: []
44+ source-type: git
45+ plugin: dump
46+ organize:
47+ "*": charm-wheels/
48+ prime: ["-charm-wheels"]
49+ interface-http:
50+ source: https://github.com/juju-solutions/interface-http
51+ source-commit: "632131b1f122daf6fb601fd4c9f1e4dbb1a92e09"
52+ source-submodules: []
53+ source-type: git
54+ plugin: dump
55+ organize:
56+ "*": layers/interface/http/
57+ stage: [layers]
58+ prime: ["-layers"]
59+ layer-apt:
60+ source: https://git.launchpad.net/layer-apt
61+ source-commit: "3caa4a8951b9efbba2174e0deca36ae9edb4a75e"
62+ source-submodules: []
63+ source-type: git
64+ plugin: dump
65+ organize:
66+ "*": layers/layer/apt/
67+ stage: [layers]
68+ prime: ["-layers"]
69+ layer-basic:
70+ source: https://github.com/juju-solutions/layer-basic
71+ source-commit: "e3affe74ff0c33e2fbfc560fcd1d873726c40233"
72+ source-submodules: []
73+ source-type: git
74+ plugin: dump
75+ organize:
76+ "*": layers/layer/basic/
77+ stage: [layers]
78+ prime: ["-layers"]
79+ layer-options:
80+ source: https://github.com/juju-solutions/layer-options
81+ source-commit: "fcdcea4e5de3e1556c24e6704607862d0ba00a56"
82+ source-submodules: []
83+ source-type: git
84+ plugin: dump
85+ organize:
86+ "*": layers/layer/options/
87+ stage: [layers]
88+ prime: ["-layers"]
89+ layer-status:
90+ source: https://github.com/juju-solutions/layer-status
91+ source-commit: "a7d7b6423db37a47611310039e6ed1929c0a2eab"
92+ source-submodules: []
93+ source-type: git
94+ plugin: dump
95+ organize:
96+ "*": layers/layer/status/
97+ stage: [layers]
98+ prime: ["-layers"]
99+ charm:
100+ after:
101+ - charm-wheels
102+ - interface-http
103+ - layer-apt
104+ - layer-basic
105+ - layer-options
106+ - layer-status
107+ source: .
108+ plugin: reactive
109+ build-snaps: [charm]
110+ build-environment:
111+ - CHARM_LAYERS_DIR: $CRAFT_STAGE/layers/layer
112+ - CHARM_INTERFACES_DIR: $CRAFT_STAGE/layers/interface
113+ - PIP_NO_INDEX: "true"
114+ - PIP_FIND_LINKS: $CRAFT_STAGE/charm-wheels
115+ reactive-charm-build-arguments: [--binary-wheels-from-source]
116diff --git a/charm/rutabaga-auth-helper/layer.yaml b/charm/rutabaga-auth-helper/layer.yaml
117index 1d931ee..aef77e4 100644
118--- a/charm/rutabaga-auth-helper/layer.yaml
119+++ b/charm/rutabaga-auth-helper/layer.yaml
120@@ -3,7 +3,6 @@ includes:
121 - layer:apt
122 - layer:status
123 - interface:http
124- - interface:squid-auth-helper
125 repo: https://git.launchpad.net/rutabaga
126 options:
127 basic:
128diff --git a/charm/rutabaga-auth-helper/metadata.yaml b/charm/rutabaga-auth-helper/metadata.yaml
129index e2b2a22..8287281 100644
130--- a/charm/rutabaga-auth-helper/metadata.yaml
131+++ b/charm/rutabaga-auth-helper/metadata.yaml
132@@ -1,7 +1,7 @@
133 name: rutabaga-auth-helper
134 display-name: Rutabaga authentication helper for Squid
135 summary: Squid helper to authenticate requests against Rutabaga
136-maintainer: Colin Watson <cjwatson@canonical.com>
137+maintainer: Launchpad Developers <launchpad-dev@lists.launchpad.net>
138 description: >
139 Rutabaga is a microservice for creating and revoking time-limited
140 authentication tokens in Squid. This authentication helper hooks into
141@@ -10,10 +10,6 @@ tags:
142 # https://docs.jujucharms.com/devel/en/authors-charm-metadata#charm-store-fields
143 - network
144 - web_server
145-series:
146- - focal
147- - bionic
148- - xenial
149 subordinate: true
150 requires:
151 squid-auth-helper:
152diff --git a/charm/interface/squid-auth-helper/interface.yaml b/charm/rutabaga-auth-helper/reactive/relations/squid-auth-helper/interface.yaml
153similarity index 100%
154rename from charm/interface/squid-auth-helper/interface.yaml
155rename to charm/rutabaga-auth-helper/reactive/relations/squid-auth-helper/interface.yaml
156diff --git a/charm/interface/squid-auth-helper/requires.py b/charm/rutabaga-auth-helper/reactive/relations/squid-auth-helper/requires.py
157similarity index 100%
158rename from charm/interface/squid-auth-helper/requires.py
159rename to charm/rutabaga-auth-helper/reactive/relations/squid-auth-helper/requires.py
160diff --git a/charm/rutabaga/charmcraft.yaml b/charm/rutabaga/charmcraft.yaml
161new file mode 100644
162index 0000000..4fc48b8
163--- /dev/null
164+++ b/charm/rutabaga/charmcraft.yaml
165@@ -0,0 +1,98 @@
166+type: charm
167+bases:
168+ - build-on:
169+ - name: ubuntu
170+ channel: "20.04"
171+ architectures: [amd64]
172+ run-on:
173+ - name: ubuntu
174+ channel: "20.04"
175+ architectures: [amd64]
176+parts:
177+ charm-wheels:
178+ source: https://git.launchpad.net/~ubuntuone-hackers/ols-charm-deps/+git/wheels
179+ source-commit: "7bcd79fa4fca485eaf15ee9e2ee16f3ab902678d"
180+ source-submodules: []
181+ source-type: git
182+ plugin: dump
183+ organize:
184+ "*": charm-wheels/
185+ prime: ["-charm-wheels"]
186+ interface-http:
187+ source: https://github.com/juju-solutions/interface-http
188+ source-commit: "632131b1f122daf6fb601fd4c9f1e4dbb1a92e09"
189+ source-submodules: []
190+ source-type: git
191+ plugin: dump
192+ organize:
193+ "*": layers/interface/http/
194+ stage: [layers]
195+ prime: ["-layers"]
196+ interface-nrpe-external-master:
197+ source: https://github.com/canonical-ols/nrpe-external-master-interface
198+ source-commit: "2e0e1fdea6d83b55078200aacb537d60013ec5bc"
199+ source-submodules: []
200+ source-type: git
201+ plugin: dump
202+ organize:
203+ "*": layers/interface/nrpe-external-master/
204+ stage: [layers]
205+ prime: ["-layers"]
206+ layer-apt:
207+ source: https://git.launchpad.net/layer-apt
208+ source-commit: "3caa4a8951b9efbba2174e0deca36ae9edb4a75e"
209+ source-submodules: []
210+ source-type: git
211+ plugin: dump
212+ organize:
213+ "*": layers/layer/apt/
214+ stage: [layers]
215+ prime: ["-layers"]
216+ layer-basic:
217+ source: https://github.com/juju-solutions/layer-basic
218+ source-commit: "e3affe74ff0c33e2fbfc560fcd1d873726c40233"
219+ source-submodules: []
220+ source-type: git
221+ plugin: dump
222+ organize:
223+ "*": layers/layer/basic/
224+ stage: [layers]
225+ prime: ["-layers"]
226+ layer-options:
227+ source: https://github.com/juju-solutions/layer-options
228+ source-commit: "fcdcea4e5de3e1556c24e6704607862d0ba00a56"
229+ source-submodules: []
230+ source-type: git
231+ plugin: dump
232+ organize:
233+ "*": layers/layer/options/
234+ stage: [layers]
235+ prime: ["-layers"]
236+ layer-status:
237+ source: https://github.com/juju-solutions/layer-status
238+ source-commit: "a7d7b6423db37a47611310039e6ed1929c0a2eab"
239+ source-submodules: []
240+ source-type: git
241+ plugin: dump
242+ organize:
243+ "*": layers/layer/status/
244+ stage: [layers]
245+ prime: ["-layers"]
246+ charm:
247+ after:
248+ - charm-wheels
249+ - interface-http
250+ - interface-nrpe-external-master
251+ - layer-apt
252+ - layer-basic
253+ - layer-options
254+ - layer-status
255+ source: .
256+ plugin: reactive
257+ build-snaps: [charm]
258+ build-environment:
259+ - CHARM_LAYERS_DIR: $CRAFT_STAGE/layers/layer
260+ - CHARM_INTERFACES_DIR: $CRAFT_STAGE/layers/interface
261+ - PIP_NO_INDEX: "true"
262+ - PIP_FIND_LINKS: $CRAFT_STAGE/charm-wheels
263+ reactive-charm-build-arguments: [--binary-wheels-from-source]
264diff --git a/charm/rutabaga/metadata.yaml b/charm/rutabaga/metadata.yaml
265index 7a4589a..1686add 100644
266--- a/charm/rutabaga/metadata.yaml
267+++ b/charm/rutabaga/metadata.yaml
268@@ -1,7 +1,7 @@
269 name: rutabaga
270 display-name: Rutabaga
271 summary: Microservice for managing authentication tokens in Squid
272-maintainer: Colin Watson <cjwatson@canonical.com>
273+maintainer: Launchpad Developers <launchpad-dev@lists.launchpad.net>
274 description: >
275 Rutabaga is a microservice for creating and revoking time-limited
276 authentication tokens in Squid.
277@@ -9,10 +9,6 @@ tags:
278 # https://docs.jujucharms.com/devel/en/authors-charm-metadata#charm-store-fields
279 - network
280 - web_server
281-series:
282- - focal
283- - bionic
284- - xenial
285 subordinate: false
286 provides:
287 website:

Subscribers

People subscribed via source and target branches