mirror of
https://github.com/containers/podman-compose.git
synced 2025-08-17 17:11:21 +02:00
Merge branch 'master' of github.com:containers/podman-compose into devel
This commit is contained in:
3
tests/ulimit/Dockerfile
Normal file
3
tests/ulimit/Dockerfile
Normal file
@ -0,0 +1,3 @@
|
||||
FROM busybox
|
||||
|
||||
COPY ./ulimit.sh /bin/ulimit.sh
|
30
tests/ulimit/docker-compose.yaml
Normal file
30
tests/ulimit/docker-compose.yaml
Normal file
@ -0,0 +1,30 @@
|
||||
version: "3"
|
||||
services:
|
||||
ulimit1:
|
||||
image: ulimit_test
|
||||
command: ["ulimit.sh" ]
|
||||
ulimit: nofile=1001
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: Dockerfile
|
||||
ulimit2:
|
||||
image: ulimit_test
|
||||
command: ["ulimit.sh" ]
|
||||
ulimit:
|
||||
- nproc=1002:2002
|
||||
- nofile=1002
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: Dockerfile
|
||||
ulimit3:
|
||||
image: ulimit_test
|
||||
command: [ "ulimit.sh" ]
|
||||
ulimit:
|
||||
nofile: 1003
|
||||
nproc:
|
||||
soft: 1003
|
||||
hard: 2003
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: Dockerfile
|
||||
|
10
tests/ulimit/ulimit.sh
Executable file
10
tests/ulimit/ulimit.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "soft process limit"
|
||||
ulimit -S -u
|
||||
echo "hard process limit"
|
||||
ulimit -H -u
|
||||
echo "soft nofile limit"
|
||||
ulimit -S -n
|
||||
echo "hard nofile limit"
|
||||
ulimit -H -n
|
Reference in New Issue
Block a user