add basic bip
This commit is contained in:
parent
3c3c24c83b
commit
264531c268
2 changed files with 25 additions and 0 deletions
20
bip/Dockerfile
Normal file
20
bip/Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
FROM fedora
|
||||||
|
|
||||||
|
RUN dnf update -y --refresh && \
|
||||||
|
dnf install -y bip && \
|
||||||
|
dnf clean all
|
||||||
|
RUN mkdir -p /bip && \
|
||||||
|
sed -i 's/^#ip/ip/' /etc/bip.conf && \
|
||||||
|
sed -i 's/^#port/port/' /etc/bip.conf && \
|
||||||
|
sed -i 's|^log_root.*$|log_root = "/bip/logs";|' /etc/bip.conf && \
|
||||||
|
sed -i 's|^pid_file.*$|pid_file="/bip/bip.pid";|' /etc/bip.conf
|
||||||
|
|
||||||
|
RUN mkdir -p /data && chown -R bip:bip /data
|
||||||
|
COPY run.sh /run.sh
|
||||||
|
USER bip
|
||||||
|
VOLUME ["/data"]
|
||||||
|
EXPOSE 7778
|
||||||
|
ENV HOME=/data
|
||||||
|
ENV BIPCONF=/etc/bip.conf
|
||||||
|
|
||||||
|
CMD ["/bin/sh", "/run.sh"]
|
5
bip/runc.sh
Executable file
5
bip/runc.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
/usr/bin/bip -n -f "${BIPCONF}"
|
Loading…
Reference in a new issue