Skip to content

Commit 325dad6

Browse files
committed
Initialize the repository, add files
0 parents  commit 325dad6

7 files changed

+1267
-0
lines changed

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# podman-pandoc
2+
3+
A demonstration of container hardening process. Check the related article at hardenedlinux.org for the instructions.
4+
5+
### Files included
6+
7+
* `build/Dockerfile` - for building a simple pandoc container for the demonstration.
8+
* `demo/Makefile` - contains commands to create and apply customized Seccomp profile using [oci-seccomp-bpf-hook](https://github.com/containers/oci-seccomp-bpf-hook).
9+
* `default.seccomp.json` - the default Seccomp profile copied from `/usr/share/containers/seccomp.json` for reference.
10+
11+
### Notes
12+
13+
1. [Podman](https://podman.io/) is used in this demonstration as the container platform.
14+
2. `cd demo/; make help` to see how to use the commands.
15+

build/Dockerfile

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM opensuse/tumbleweed
2+
3+
4+
ENV LANG="en_US.UTF-8" LC_CTYPE="en_US.UTF-8"
5+
6+
RUN zypper --non-interactive update && \
7+
zypper --non-interactive install --force-resolution \
8+
pandoc && \
9+
zypper clean -a && \
10+
rm -rf /var/log/* /var/tmp/*
11+
12+
RUN groupadd -g 1000 pan
13+
RUN useradd -m -u 1000 -g pan pan
14+
15+
USER pan
16+
WORKDIR /home/pan/

0 commit comments

Comments
 (0)