Test
This commit is contained in:
parent
9687f022af
commit
b61bee0220
@ -10,8 +10,6 @@ COPY parse_db_url.sh /usr/local/bin/parse_db_url.sh
|
|||||||
USER root
|
USER root
|
||||||
RUN chmod 755 /usr/local/bin/parse_db_url.sh
|
RUN chmod 755 /usr/local/bin/parse_db_url.sh
|
||||||
|
|
||||||
RUN mkdir -p /var/lib/gitea/custom/conf
|
|
||||||
|
|
||||||
ENV DATABASE_URL=${DATABASE_URL}
|
ENV DATABASE_URL=${DATABASE_URL}
|
||||||
|
|
||||||
CMD ["/usr/local/bin/parse_db_url.sh"]
|
CMD ["/usr/local/bin/parse_db_url.sh"]
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
exec mkdir /var/lib/gitea/custom/conf
|
||||||
|
|
||||||
export GITEA__database__DB_TYPE=postgres
|
export GITEA__database__DB_TYPE=postgres
|
||||||
export GITEA__database__USER=$(echo ${DATABASE_URL} | sed -r "s|.*://([^:]+):.*|\1|")
|
export GITEA__database__USER=$(echo ${DATABASE_URL} | sed -r "s|.*://([^:]+):.*|\1|")
|
||||||
export GITEA__database__PASSWD=$(echo ${DATABASE_URL} | sed -r "s|.*://[^:]+:([^@]+)@.*|\1|")
|
export GITEA__database__PASSWD=$(echo ${DATABASE_URL} | sed -r "s|.*://[^:]+:([^@]+)@.*|\1|")
|
||||||
|
Loading…
Reference in New Issue
Block a user