summaryrefslogtreecommitdiff
path: root/test/nginx.sh
blob: d6926c0942d00669b854eb0c39ba0e9802852ddd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
set -x

bwrap \
    --ro-bind /bin /bin \
    --ro-bind /usr /usr \
    --ro-bind /etc /etc \
    --ro-bind /lib /lib \
    --ro-bind /lib64 /lib64 \
    --ro-bind /run /run \
    --ro-bind etc /etc/nginx \
    --ro-bind www /usr/share/nginx/html \
    --dev /dev \
    --proc /proc \
    --dir /tmp \
    --dir /var/log/nginx \
    --dir /var/lib/nginx \
    /usr/sbin/nginx