Skip to content

Commit 3f33a92

Browse files
committed
Merge branch 'main' of https://github.com/j-bauer/DataHUB
2 parents 810f9a5 + 765e308 commit 3f33a92

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

README.md

+72
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,75 @@ services:
171171
- ./data/gitlab:/var/opt/gitlab
172172
shm_size: '256m'
173173
```
174+
175+
## ARC validation
176+
177+
The ARC validation feature is implemented using GitLabs CI/CD functionality.
178+
Therefore, to make use of this feature, it is necessary to setup and configure a GitLab
179+
runner. To do so, follow these instructions:
180+
181+
**Note:** In the following, we will assume that you are using a Ubuntu/Debian based server.
182+
We will link to external information, where the installation process differs if you are using another distribution.
183+
184+
### Prerequisites:
185+
- A seperate server
186+
187+
### Docker installation
188+
We only tested the Docker executor for the GitLab runner. If you want to try and make another executor work, you can find more information on executors [here](https://docs.gitlab.com/runner/executors/index.html). If you decide to use the docker executor, as recommended, you need to install docker on the server where your runner will be installed. This can be achieved by the following steps, which you can also find on the [docker website](https://docs.docker.com/engine/install/debian/):
189+
190+
1. Uninstall conflicting packages:
191+
```
192+
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done
193+
```
194+
2. Set up apt repository:
195+
196+
```
197+
# Add Docker's official GPG key:
198+
sudo apt-get update
199+
sudo apt-get install ca-certificates curl
200+
sudo install -m 0755 -d /etc/apt/keyrings
201+
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
202+
sudo chmod a+r /etc/apt/keyrings/docker.asc
203+
204+
# Add the repository to Apt sources:
205+
echo \
206+
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
207+
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
208+
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
209+
sudo apt-get update
210+
```
211+
3. Install required packages
212+
```
213+
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
214+
```
215+
216+
4. Verify installation
217+
```
218+
sudo docker run hello-world
219+
```
220+
221+
If you are not on a debian based system, you can find installation instructions [here](https://docs.docker.com/engine/install/).
222+
223+
### Installing GitLab Runner
224+
We are providing the steps for installing the GitLab runner, which we sourced from [here](https://docs.gitlab.com/runner/register/index.html). If you are using a distribution which is not debian based, or even one for which GitLab does not provide an repository, you can find further instructions [here](https://docs.gitlab.com/runner/install/index.html).
225+
226+
1. Add the official GitLab repository
227+
```
228+
curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh" | sudo bash
229+
```
230+
231+
2. Install the latest version of GitLab Runner
232+
```
233+
sudo apt-get install gitlab-runner
234+
```
235+
236+
### Registering the GitLab runner
237+
1. In you already set up GitLab instance, set up your runner as a instance runner.
238+
To do so, you need to open the admin area, select the "Instance Runners" entry in the "Features" menu. Alternatively visit ```https://<your-datahub-hostname>/admin/runners```.
239+
2. Click on "New instance runner"
240+
3. Under "Platform", select "Linux" as operating systems.
241+
4. Under "Tags", check the checkbox for "Run untagged jobs"
242+
5. Click on "Create runner"
243+
6. Follow the steps which are shown to you. During these steps you need to choose an executor, as well as a default docker image if you choose the docker executor.
244+
- For the executor, choose "docker".
245+
- For the default image, choose a basic Linux image like debian or alpine from dockerhub.

0 commit comments

Comments
 (0)