Skip to content

Commit

Permalink
* Add configuration files for rootful and rootless containers' execut…
Browse files Browse the repository at this point in the history
…ion.

* Update Dockerfile.
  • Loading branch information
AndreyKoltsov1997 committed Oct 11, 2023
1 parent 4d25913 commit 2feb81f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom/linux/agent/amd/podman.amd.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ RUN mkdir -p /var/lib/shared/overlay-images \
touch /var/lib/shared/vfs-images/images.lock; \
touch /var/lib/shared/vfs-layers/layers.lock;

# Add configuration files to use overlayFS
ADD https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/stable/containers.conf /etc/containers/containers.conf
ADD https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/stable/podman-containers.conf /home/buildagent/.config/containers/containers.conf
# Add configuration files to use configure overlayFS / FUSE properly
COPY linux/agent/configs/podman/rootful.containers.conf /etc/containers/containers.conf
COPY linux/agent/configs/podman/rootless.containers.conf /home/buildagent/.config/containers/containers.conf

# Update access policy for configuration files (containers.conf, storage.conf), update storage configuration ...
# ... to enable FUSE storage.
Expand Down
12 changes: 12 additions & 0 deletions custom/linux/agent/configs/podman/rootful.containers.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[containers]
cgroupns="host"
cgroups="disabled"
ipcns="host"
utsns="host"
netns="host"
userns="host"
log_driver = "k8s-file"
[engine]
cgroup_manager = "cgroupfs"
runtime="crun"
events_logger="file"
5 changes: 5 additions & 0 deletions custom/linux/agent/configs/podman/rootless.containers.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[containers]
volumes = [
"/proc:/proc",
]
default_sysctls = []

0 comments on commit 2feb81f

Please sign in to comment.