[gnome-build-meta.wiki] Update Deployment - fix code blocks
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta.wiki] Update Deployment - fix code blocks
- Date: Tue, 10 Aug 2021 10:50:51 +0000 (UTC)
commit 80df27b709edcdb646b8f625880a899bec3f3255
Author: Sam Thursfield <sam afuera me uk>
Date: Tue Aug 10 10:50:50 2021 +0000
Update Deployment - fix code blocks
openqa/Deployment.md | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
---
diff --git a/openqa/Deployment.md b/openqa/Deployment.md
index ff4c91b..e9e5d0b 100644
--- a/openqa/Deployment.md
+++ b/openqa/Deployment.md
@@ -3,27 +3,34 @@
This server was manually deployed with the following steps:
## Install docker
-
+```
dnf install dnf-plugins-core
dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
dnf install docker-ce docker-ce-cli containerd.io
+```
## Downgrade containerd.io
+```
dnf install containerd.io-1.4.6-3.1.fc34
+```
## Get the SSL
-
+```
cd ssl_cert
docker run -it --rm --privileged -p80:80 -v $PWD:/root debian:bullseye-slim /bin/bash
+```
## Inside the docker:
+```
apt-get update && apt-get install curl socat
cd /root/.acme.sh/
./acme.sh --issue --standalone -d openqa.gnome.org
exit
+```
## In Host:
+```
cd /root
mkdir openqa
cd openqa/
@@ -47,9 +54,10 @@ token_scope = read_user
token_label = Bearer
nickname_from = username
EOF
+```
## change provider to appropriate provider and update key and secret
-
+```
cp ../ssl_cert/.acme.sh/openqa.gnome.org/ca.cer workdir/data/certs/ssl.crt/ca.crt
cp ../ssl_cert/.acme.sh/openqa.gnome.org/openqa.gnome.org.key workdir/data/certs/ssl.key/server.key
cp ../ssl_cert/.acme.sh/openqa.gnome.org/openqa.gnome.org.cer workdir/data/certs/ssl.crt/server.crt
@@ -66,9 +74,10 @@ RUN cp /root/files/gnomeos.png /usr/share/openqa/assets/images/gnomeos.png && \
rm -rf /root/files && chown geekotest /usr/share/openqa/assets/images/gnomeos.png && \
echo -e "\n! gnomeos.png\n< images/gnomeos.png" >> /usr/share/openqa/assets/assetpack.def
EOF
+```
## Copy `files` folder containing the logo and the sponsor html
-
+```
cd dockerfile/
docker build -t openqa_webui:test .
cd ..
@@ -79,12 +88,15 @@ git clone https://gitlab.com/jamesthomas/gnome-needles needles
cd /root/openqa
docker run -d --rm --network openqa -e POSTGRES_PASSWORD=openqa -e POSTGRES_USER=openqa -e
POSTGRES_DB=openqa -v$(pwd)/workdir/db:/var/lib/postgresql/data --name=db postgres:latest
docker run --network openqa -d --rm --privileged -v $(pwd)/workdir/data:/data/ -v
$(pwd)/workdir/data/certs/ssl.crt:/etc/apache2/ssl.crt -v
$(pwd)/workdir/data/certs/ssl.key:/etc/apache2/ssl.key -p80:80 -p443:443 --name openqa_webui
openqa_webui:test
+```
## openqa will give admin access to the first user who loggedin. To give additional users admin access
+```
docker exec -it db /bin/bash
psql -U openqa -d openqa
select * from users;
update users set is_admin=1, is_operator=1 where id=4;
+```
## change id to the id of the user who needs to have admin access
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]