1
0
mirror of https://github.com/tommytran732/Fedora-CoreOS-Ignition synced 2024-11-09 11:41:34 -05:00

Use gVisor

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2023-03-15 01:38:02 -04:00
parent 30196a1409
commit 0826c5962c
No known key found for this signature in database
GPG Key ID: 060B29EB996BD9F2
4 changed files with 86 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -144,6 +144,28 @@ storage:
ExecStart=/usr/bin/docker-compose up -d ExecStart=/usr/bin/docker-compose up -d
Type=oneshot Type=oneshot
[Install]
WantedBy=multi-user.target
- path: /etc/systemd/system/gvisor-updater.service
contents:
inline: |
[Unit]
Description=gVisor Update
Require=network-online.target
Before=docker.service
[Service]
WorkingDirectory=/var/roothome
Type=oneshot
ExecStart=/usr/bin/curl -O https://storage.googleapis.com/gvisor/releases/release/latest/x86_64/runsc
ExecStart=/usr/bin/curl -O https://storage.googleapis.com/gvisor/releases/release/latest/x86_64/runsc.sha512
ExecStart=/usr/bin/curl -O https://storage.googleapis.com/gvisor/releases/release/latest/x86_64/containerd-shim-runsc-v1
ExecStart=/usr/bin/curl -O https://storage.googleapis.com/gvisor/releases/release/latest/x86_64/containerd-shim-runsc-v1.sha512
ExecStart=/usr/bin/sha512sum -c runsc.sha512 -c containerd-shim-runsc-v1.sha512
ExecStart=/usr/bin/rm -f *.sha512
ExecStart=/usr/bin/chmod a+rx runsc containerd-shim-runsc-v1
ExecStart=/usr/bin/mv runsc containerd-shim-runsc-v1 /var/usrlocal/bin
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
- path: /etc/unbound/unbound.conf - path: /etc/unbound/unbound.conf
@ -210,6 +232,26 @@ storage:
SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module mount @obsolete @resources SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module mount @obsolete @resources
RestrictNamespaces=yes RestrictNamespaces=yes
LockPersonality=yes LockPersonality=yes
- path: /etc/docker/daemon.json
contents:
inline: |
{
"default-runtime": "runsc-ptrace",
"runtimes": {
"runsc-ptrace": {
"path": "/var/usrlocal/bin/runsc",
"runtimeArgs": [
"--platform=ptrace"
]
},
"runsc-kvm": {
"path": "/var/usrlocal/bin/runsc",
"runtimeArgs": [
"--platform=kvm"
]
}
}
}
links: links:
- path: /etc/localtime - path: /etc/localtime
target: ../usr/share/zoneinfo/America/New_York target: ../usr/share/zoneinfo/America/New_York

File diff suppressed because one or more lines are too long

View File

@ -144,6 +144,28 @@ storage:
inline: | inline: |
GSSAPIAuthentication no GSSAPIAuthentication no
VerifyHostKeyDNS yes VerifyHostKeyDNS yes
- path: /etc/systemd/system/gvisor-updater.service
contents:
inline: |
[Unit]
Description=gVisor Update
Require=network-online.target
Before=docker.service
[Service]
WorkingDirectory=/var/roothome
Type=oneshot
ExecStart=/usr/bin/curl -O https://storage.googleapis.com/gvisor/releases/release/latest/x86_64/runsc
ExecStart=/usr/bin/curl -O https://storage.googleapis.com/gvisor/releases/release/latest/x86_64/runsc.sha512
ExecStart=/usr/bin/curl -O https://storage.googleapis.com/gvisor/releases/release/latest/x86_64/containerd-shim-runsc-v1
ExecStart=/usr/bin/curl -O https://storage.googleapis.com/gvisor/releases/release/latest/x86_64/containerd-shim-runsc-v1.sha512
ExecStart=/usr/bin/sha512sum -c runsc.sha512 -c containerd-shim-runsc-v1.sha512
ExecStart=/usr/bin/rm -f *.sha512
ExecStart=/usr/bin/chmod a+rx runsc containerd-shim-runsc-v1
ExecStart=/usr/bin/mv runsc containerd-shim-runsc-v1 /var/usrlocal/bin
[Install]
WantedBy=multi-user.target
- path: /etc/unbound/unbound.conf - path: /etc/unbound/unbound.conf
overwrite: true overwrite: true
contents: contents:
@ -208,6 +230,26 @@ storage:
SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module mount @obsolete @resources SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module mount @obsolete @resources
RestrictNamespaces=yes RestrictNamespaces=yes
LockPersonality=yes LockPersonality=yes
- path: /etc/docker/daemon.json
contents:
inline: |
{
"default-runtime": "runsc-ptrace",
"runtimes": {
"runsc-ptrace": {
"path": "/var/usrlocal/bin/runsc",
"runtimeArgs": [
"--platform=ptrace"
]
},
"runsc-kvm": {
"path": "/var/usrlocal/bin/runsc",
"runtimeArgs": [
"--platform=kvm"
]
}
}
}
links: links:
- path: /etc/localtime - path: /etc/localtime
target: ../usr/share/zoneinfo/America/New_York target: ../usr/share/zoneinfo/America/New_York