Add support for mimicing docker CLI

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2018-01-11 10:54:39 -05:00
parent 8745eaaf30
commit 0207e629ee
3 changed files with 17 additions and 1 deletions

View File

@ -135,13 +135,16 @@ docs/%.1: docs/%.1.md .gopathok
docs: $(MANPAGES)
docker-docs: docs
(cd docs; ./dckrman.sh *.1)
install: .gopathok install.bin install.man install.cni
install.bin:
install ${SELINUXOPT} -D -m 755 bin/podman $(BINDIR)/podman
install ${SELINUXOPT} -D -m 755 bin/conmon $(LIBEXECDIR)/crio/conmon
install.man:
install.man: docs
install ${SELINUXOPT} -d -m 755 $(MANDIR)/man1
install ${SELINUXOPT} -m 644 $(filter %.1,$(MANPAGES)) -t $(MANDIR)/man1
@ -156,6 +159,11 @@ install.completions:
install.cni:
install ${SELINUXOPT} -D -m 644 cni/97-podman-bridge.conf ${ETCDIR}/cni/net.d/97-podman-bridge.conf
install.docker: docker-docs
install ${SELINUXOPT} -D -m 755 docker $(BINDIR)/docker
install ${SELINUXOPT} -d -m 755 $(MANDIR)/man1
install ${SELINUXOPT} -m 644 docs/docker*.1 -t $(MANDIR)/man1
uninstall:
rm -f $(LIBEXECDIR)/crio/conmon
for i in $(filter %.1,$(MANPAGES)); do \

3
docker Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
echo "Using podman package to emulate the Docker CLI"
exec /usr/bin/podman $@

5
docs/dckrman.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
for i in $@; do
filename=$(echo $i | sed 's/podman/docker/g')
echo .so man1/$i > $filename
done