Commit 8556ef9c authored by AlmAck's avatar AlmAck

remove rng-tools from the image and moved to the host

updated the README decription
parent 90b7c00d
Pipeline #11 canceled with stages
in 11 minutes
# inspired by https://gist.github.com/ronalddddd/d402ec6f81647ab3db651136997a7a74
image: docker:latest
stages:
......@@ -23,12 +21,7 @@ before_script:
#- CONTAINER_TEST_IMAGE=$CONTAINER_REGISTRY_DOMAIN/$CONTAINER_REGISTRY_NAMESPACE/$CONTAINER_IMAGE_NAME:`echo $CI_BUILD_REF_NAME | sed -e 's/[\/|.]/-/g'`
- CONTAINER_TEST_IMAGE=$CONTAINER_REGISTRY_NAMESPACE/$CONTAINER_IMAGE_NAME:`echo $CI_BUILD_REF_NAME | sed -e 's/[\/|.]/-/g'`
- apk update && apk upgrade
# we need a random generator enabled to speed up the pacman-key --populate generation
- apk add --update rng-tools bash openrc curl xz tar
- rc-status
- touch /run/openrc/softlevel
- service rngd start
- docker info
- apk add --update bash openrc curl xz tar
build:
stage: build
......
#Introduction
Bootstrap a basic chakralinux docker container.
This container uses chakra-bootstrap.sh script to bootstrap basic chakralinux system. After that it just cleans up caches and non popular config files.
As a result, the container is very clean. However, advices needed.
This container uses chakra-bootstrap.sh script to bootstrap a basic chakralinux system. After that it just cleans up caches and non popular config files.
#gitlab-runner
##Installation
Install gitlab-runner on our host and start it.
Register the gitlab-runner [https://docs.gitlab.com/runner/register/index.html]
Use "https://gitlab.chakralinux.org/" as coordinator, and as tag add 'docker'.
Set docker as executor and docker again for the base image.
In orther to speed upt the key generation an entropy tool must be installed.
* apt-get install rng-tools
* echo HRNGDEVICE=/dev/urandom >> /etc/default/rng-tools && service rng-tools restart
edit the file '/etc/gitlab-runner/config.toml' and change from false to true the 'privileged = true' line to enable the privileged mode in the docker continer.
```
[[runners]]
name = "chakra-gitlab-ci"
url = "https://gitlab.chakralinux.org/"
token = "1234567890"
executor = "docker"
[runners.docker]
tls_verify = false
image = "docker"
privileged = true
disable_cache = false
volumes = ["/cache"]
shm_size = 0
[runners.cache]
```
##Configuration
The variables used are:
* DOCKER_REGISTRY_USERNAME
* DOCKER_REGISTRY_PASSWORD
Please set them accordingly in the gitlab installation.
References:
https://github.com/apporc/arch-bootstrap
https://raw.githubusercontent.com/yannayl/arch-bootstrap/master/arch-bootstrap.sh
inspired by https://gist.github.com/ronalddddd/d402ec6f81647ab3db651136997a7a74
docker cleanup: https://gist.github.com/timhughes/e2b9da42608a25f644a1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment