mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-09-29 08:11:14 +00:00
proxy
This commit is contained in:
parent
7a3e6b7983
commit
0fe8ce6e6f
|
@ -7,6 +7,7 @@ RUN apt-get update && apt-get install -y curl jq
|
||||||
COPY ./config/initproxy.conf /data/nginx/proxy_host/
|
COPY ./config/initproxy.conf /data/nginx/proxy_host/
|
||||||
COPY ./s6/init_user/* /etc/s6-overlay/s6-rc.d/user/
|
COPY ./s6/init_user/* /etc/s6-overlay/s6-rc.d/user/
|
||||||
RUN chmod -R 755 /etc/s6-overlay/s6-rc.d/user
|
RUN chmod -R 755 /etc/s6-overlay/s6-rc.d/user
|
||||||
|
|
||||||
# COPY ./s6/init_user/init_user.sh /app/init_user.sh
|
# COPY ./s6/init_user/init_user.sh /app/init_user.sh
|
||||||
# RUN chmod +x /app/init_user.sh
|
# RUN chmod +x /app/init_user.sh
|
||||||
# CMD ["/bin/sh", "-c", "/app/init_user.sh && tail -f /dev/null"]
|
# CMD ["/bin/sh", "-c", "/app/init_user.sh && tail -f /dev/null"]
|
|
@ -50,4 +50,6 @@ echo "Save to credential"
|
||||||
json="{\"username\":\"$username\",\"password\":\"$password\"}"
|
json="{\"username\":\"$username\",\"password\":\"$password\"}"
|
||||||
echo "$json" > "$cred_path"
|
echo "$json" > "$cred_path"
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
s6-svc -D /etc/s6-overlay/s6-rc.d/init_user
|
|
@ -1,4 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
bash /etc/s6-overlay/s6-rc.d/init_user/init_user.sh
|
exec /etc/s6-overlay/s6-rc.d/init_user/init_user.sh
|
||||||
exec s6-svc -D /etc/s6-overlay/s6-rc.d/init_user
|
|
1
docker/proxy/s6/init_user/type
Normal file
1
docker/proxy/s6/init_user/type
Normal file
|
@ -0,0 +1 @@
|
||||||
|
onceshot
|
0
docker/proxy/s6/init_user/up
Normal file
0
docker/proxy/s6/init_user/up
Normal file
Loading…
Reference in a new issue