Commit e5538d7e authored by Mike Street's avatar Mike Street
Browse files

Add drafts

parent 602d7f98
Pipeline #558017222 passed with stage
1. `xl list`
1. `xl shutdown <name>`
2. `cat /etc/xen/<name>.cfg`
3. Make a note of `'file:/var/lib/xen/domains/<name>/disk.img,xvda1,w',`
4. `cd <path>`
5. `cp disk.img backup.img`
6. `dd if=/dev/zero bs=2G count=2 >> disk.img` - that adds 4g (2 lots of 2gb) - increase the count (maybe drop the bs) if you get an error like `dd: memory exhausted by input buffer of size` - e.g. `dd if=/dev/zero of=/swapfile bs=1M count=2048` - 2048 lots of 1mb
7. Check the disk `e2fsck -f disk.img`
8. Resize the disk
Gitlab registry:
`/etc/gitlab/gitlab.rb`
```
registry['storage'] = {
's3' => {
'accesskey' => 'USER FROM MINIO',
'secretkey' => 'PASSWORD FROM MINIO',
'bucket' => 'BUCKET NAME',
'region' => 'us-east-1',
'regionendpoint' => 'http://127.0.0.1:9000',
'secure' => false,
'encrypt' => false,
'v4Auth' => true
}
}
```
Gitlab runner:
`/etc/gitlab-runner/config.toml`
```
[[runners]]
name = "Gitlab Runner 1"
url = ""
token = "
executor = "docker"
[runners.cache]
Type = "s3"
Shared = true
[runners.cache.s3]
AccessKey = "USER FROM MINIO"
SecretKey = "PASSWORD FROM MINIO"
BucketName = "BUCKET NAME"
Insecure = true
ServerAddress = "127.0.0.1:9000"
[runners.docker]
tls_verify = false
privileged = true
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/var/run/docker.sock:/var/run/docker.sock", "/cache"]
pull_policy = ["if-not-present"]
shm_size = 0
```
Supports Markdown
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