Merge branch 'master' of github.com:containers/podman-compose into devel

This commit is contained in:
Muayyad Alsadi
2019-09-13 22:23:22 +03:00
4 changed files with 65 additions and 0 deletions

3
tests/ulimit/Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM busybox
COPY ./ulimit.sh /bin/ulimit.sh

View 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
View 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