Add role kubernetes TODO: fix role

This commit is contained in:
2022-10-17 14:14:20 +02:00
parent 0d8d5e8528
commit 62a4a67fad
15 changed files with 246 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
# Copyright 2018-2022 Docker Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
disabled_plugins = []
#root = "/var/lib/containerd"
#state = "/run/containerd"
#subreaper = true
#oom_score = 0
#[grpc]
# address = "/run/containerd/containerd.sock"
# uid = 0
# gid = 0
#[debug]
# address = "/run/containerd/debug.sock"
# uid = 0
# gid = 0
# level = "info"
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
SystemdCgroup = true

View File

@@ -0,0 +1,15 @@
FROM golang:1-buster
# Add PPA
RUN echo "deb http://ppa.launchpad.net/dqlite/dev/ubuntu bionic main" > /etc/apt/sources.list.d/ppa_dqlite_dev_bionic.list
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 50FB3D04
# Install dependencies
RUN apt update -y && apt install -y build-essential git libraft-dev libsqlite3-dev libdqlite-dev
# Clone
RUN git clone https://github.com/canonical/k8s-dqlite --branch v1.0.4 /k8s-dqlite
WORKDIR /k8s-dqlite
# Compile
ENV CGO_LDFLAGS_ALLOW="-Wl,-z,now"
RUN go build -o k8s-dqlite -tags libsqlite3,dqlite k8s-dqlite.go

Binary file not shown.