mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 10:09:07 +00:00
move proxy 9p mounting into its own init file
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
99fb50d89f
commit
aac92e525c
@ -25,6 +25,7 @@ COPY kernel/kernel-source-info /etc/
|
||||
ADD kernel/kernel-patches.tar /etc/kernel-patches
|
||||
|
||||
COPY packages/proxy/proxy /sbin/
|
||||
COPY packages/proxy/etc /etc/
|
||||
COPY packages/transfused/transfused /sbin/
|
||||
COPY packages/transfused/etc /etc/
|
||||
COPY packages/mdnstool/mdnstool /sbin/
|
||||
@ -81,6 +82,7 @@ RUN \
|
||||
rc-update add localmount && \
|
||||
rc-update add klogd && \
|
||||
rc-update add docker default && \
|
||||
rc-update add proxy default && \
|
||||
rc-update add 9pinit boot && \
|
||||
rc-update add transfused default && \
|
||||
rc-update add mdnstool default && \
|
||||
|
@ -17,9 +17,6 @@ start()
|
||||
mkdir -p /Database
|
||||
mount -t 9p -o trans=virtio,dfltuid=1001,dfltgid=50,version=9p2000 db /Database
|
||||
;;
|
||||
"port")
|
||||
mkdir -p /port
|
||||
mount -t 9p -o trans=virtio,dfltuid=1001,dfltgid=50,version=9p2000 port /port
|
||||
esac
|
||||
|
||||
done
|
||||
|
16
alpine/packages/proxy/etc/init.d/proxy
Executable file
16
alpine/packages/proxy/etc/init.d/proxy
Executable file
@ -0,0 +1,16 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
depend()
|
||||
{
|
||||
before docker
|
||||
}
|
||||
|
||||
start()
|
||||
{
|
||||
ebegin "Setting up proxy port mount"
|
||||
|
||||
mkdir -p /port
|
||||
mount -t 9p -o trans=virtio,dfltuid=1001,dfltgid=50,version=9p2000 port /port
|
||||
|
||||
eend $? "Failed to mount proxy port filesystem"
|
||||
}
|
Loading…
Reference in New Issue
Block a user