Skip to content

Commit b9c6486

Browse files
committed
WIP
1 parent b5b5850 commit b9c6486

File tree

6 files changed

+40
-104
lines changed

6 files changed

+40
-104
lines changed

container/devel/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

container/devel/Dockerfile.openqa.leap

Lines changed: 0 additions & 27 deletions
This file was deleted.

container/devel/Dockerfile.openqa.tumbleweed

Lines changed: 0 additions & 27 deletions
This file was deleted.

container/devel/Makefile

Lines changed: 0 additions & 6 deletions
This file was deleted.

container/devel/README.md

Lines changed: 40 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,11 @@ You will run two containers:
2222
both can use the same postgres container.
2323
In this example we will be settting up and using the Leap container.
2424

25-
You can run the openQA container with `distrobox`, for example,
26-
for easy handling (network, home directory, permissions, and graphical
27-
environment will just work).
25+
`distrobox`, for example, can be used, to take care of network, home directory,
26+
permissions, and graphical environment.
2827

2928
Some common settings we are using here:
30-
* A directory which contains everything: git repos, openQA config, assets etc.
31-
* `OPENQA_BASEDIR=$HOME/openqadev.leap`
29+
* `OPENQA_BASEDIR=$HOME/openqadev.leap`
3230
* Database name: `openqa-local`
3331
* Database user: `geekotest`
3432
* Database container name: `postgres-openqa`
@@ -68,19 +66,6 @@ export OPENQA_KEY=1234567890ABCDEF
6866
export OPENQA_SECRET=1234567890ABCDEF
6967
```
7068

71-
## Create Directories, Clone Git
72-
73-
```
74-
source ~/localopenqa.leap.sh
75-
mkdir $OPENQA_BASEDIR
76-
mkdir $OPENQA_REPOS
77-
mkdir $OPENQA_BASEDIR/openqa $OPENQA_CONFIG $OPENQA_BASEDIR/perl5 $OPENQA_BASEDIR/openqa/db
78-
79-
git clone [email protected]:os-autoinst/openQA $OPENQA_REPOS/openQA
80-
git clone [email protected]:os-autoinst/os-autoinst $OPENQA_REPOS/os-autoinst
81-
git clone [email protected]:os-autoinst/scripts $OPENQA_REPOS/scripts
82-
```
83-
8469
## Setting up a separate Postgres Container
8570

8671
To be able to keep the database when stopping the container, we create a
@@ -109,6 +94,42 @@ createuser -D -P geekotest
10994
createdb -O geekotest openqa-local
11095
```
11196

97+
## Install requirements in distrobox
98+
99+
You can use a leap container and install the requirements, but you can also
100+
build your own container with the requirements already installed.
101+
```
102+
distrobox create -i registry.opensuse.org/opensuse/leap:15.6 -n box-openqadev
103+
distrobox enter box-openqadev
104+
105+
# Install packages
106+
zypper addrepo -G -p 95 https://download.opensuse.org/repositories/devel:/openQA/15.6 devel-openqa \
107+
&& zypper addrepo -G -p 95 https://download.opensuse.org/repositories/devel:/openQA:/Leap:/15.6/15.6/ devel-openqa-leap \
108+
&& zypper addrepo -G -p 95 https://download.opensuse.org/repositories/SUSE:/CA/15.6/SUSE:CA.repo \
109+
&& zypper -n ref \
110+
&& zypper -n install ca-certificates-suse \
111+
os-autoinst-devel openQA-devel \
112+
os-autoinst-scripts-deps \
113+
os-autoinst-scripts-deps-devel \
114+
openssh-clients \
115+
crudini
116+
# plus your favourite dev tools, e.g. tmux
117+
```
118+
119+
## Create Directories, Clone Git
120+
121+
```
122+
# Remember to source this file
123+
source ~/localopenqa.leap.sh
124+
mkdir $OPENQA_BASEDIR
125+
mkdir $OPENQA_REPOS
126+
mkdir $OPENQA_BASEDIR/openqa $OPENQA_CONFIG $OPENQA_BASEDIR/perl5 $OPENQA_BASEDIR/openqa/db
127+
128+
git clone [email protected]:os-autoinst/openQA $OPENQA_REPOS/openQA
129+
git clone [email protected]:os-autoinst/os-autoinst $OPENQA_REPOS/os-autoinst
130+
git clone [email protected]:os-autoinst/scripts $OPENQA_REPOS/scripts
131+
```
132+
112133
## Preparing Config Files
113134

114135
```
@@ -133,26 +154,10 @@ cp $OPENQA_REPOS/openQA/etc/openqa/openqa.ini $OPENQA_CONFIG/openqa.ini
133154
crudini --set $OPENQA_CONFIG/openqa.ini auth method Fake
134155
```
135156

136-
## Building the Container
137157

138-
```
139-
cd $OPENQA_REPOS/openQA/container/devel
140-
# Optionally put any favourite development tools into ./scripts/custom.sh
141-
make tools/openqadevel.leap
142-
```
158+
## Build openQA
143159

144-
## Enter the container, Last Build Steps
145-
146-
Now you can use the container with `distrobox`:
147-
```
148-
distrobox create -i localhost/tools/openqadev.leap -n box-openqadev
149-
distrobox enter box-openqadev
150-
```
151-
In the box:
152160
```
153-
# Remember to source this file
154-
source ~/localopenqa.leap.sh
155-
156161
# Build steps
157162
cd $OPENQA_REPOS/os-autoinst
158163
make

container/devel/scripts/custom.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)