[gnome-build-meta.wiki] Create deploy components ostree
- From: Javier Jardón Cabezas <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta.wiki] Create deploy components ostree
- Date: Wed, 24 Mar 2021 17:26:37 +0000 (UTC)
commit 625d2643d07ad8d33a74ea9482148dce98091c73
Author: Javier Jardón Cabezas <javierjc1982 gmail com>
Date: Wed Mar 24 17:26:36 2021 +0000
Create deploy components ostree
deploy-components-ostree.md | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
---
diff --git a/deploy-components-ostree.md b/deploy-components-ostree.md
new file mode 100644
index 0000000..a786f5d
--- /dev/null
+++ b/deploy-components-ostree.md
@@ -0,0 +1,38 @@
+Build on a machine:
+
+```shell
+bst track --deps=all vm/repo-devel.bst
+bst build vm/repo-devel.bst
+
+# Setup and update ostree repo
+./utils/update-local-repo.sh
+
+# Run a webserver to serve it
+# XXX: would be cool if we could get this to run on the back ground
+./utils/run-local-repo.sh
+
+# If you have already the repo setup on the client machine, upgrade and reboot with ssh
+# To get ssh to work refer here: https://gitlab.gnome.org/GNOME/gnome-build-meta/-/issues/347#note_1046112
+ssh deploy_machine -C 'sudo ostree admin switch --reboot workstation:gnome-os/40/x86_64-devel'
+```
+
+Setup ostree repo on the client/deploy machine
+
+```shell
+NAME="workstation"
+URI="http://192.168.2.2:8000"
+GPG="http://192.168.2.2:8000/key.gpg"
+REF="gnome-os/master/x86_64-devel"
+
+sudo enable-developer-repository \
+ --name "$NAME" \
+ --url "$URI" \
+ --gpg "$GPG" \
+ --ref "$REF"
+
+# sudo enable-developer-repository \
+# --name "workstation" \
+# --url "http://192.168.2.2:8000" \
+# --gpg "http://192.168.2.2:8000/key.gpg" \
+# --ref "gnome-os/master/x86_64-devel"
+```
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]