initial commit
This commit is contained in:
commit
0647fe0f02
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
FROM gitea/gitea:1.14.5-rootless
|
||||
|
||||
ADD config /etc/gitea
|
||||
ADD data /var/lib/gitea
|
||||
ADD localtime /etc/localtime
|
||||
ADD timezone /etc/timezone
|
||||
ADD run.sh /usr/local/bin/
|
||||
|
||||
|
||||
ARG DATABASE_URL = 'db:5432'
|
||||
|
||||
ENV DATABASE_URL=${DATABASE_URL}
|
||||
|
||||
CMD ["/usr/local/bin/run.sh"]
|
9
heroku.yml
Normal file
9
heroku.yml
Normal file
@ -0,0 +1,9 @@
|
||||
setup:
|
||||
addons:
|
||||
- plan: heroku-postgresql
|
||||
as: DATABASE
|
||||
build:
|
||||
docker:
|
||||
web: Dockerfile
|
||||
run:
|
||||
web: /usr/local/bin/run.sh
|
6
run.sh
Normal file
6
run.sh
Normal file
@ -0,0 +1,6 @@
|
||||
export GITEA__database__DB_TYPE=postgres
|
||||
export GITEA__database__HOST=`echo $DATABASE_URL | grep -o "@.*/" | sed 's/.$//' | cut -c 2-`
|
||||
export GITEA__database__NAME=`echo $DATABASE_URL | grep -o "/[[:alnum:]]*$" | cut -c 2-`
|
||||
export GITEA__database__USER=`echo $DATABASE_URL | grep -o "//[a-z]*:" | grep -o "[a-z]*"`
|
||||
export GITEA__database__PASSWD=`echo $DATABASE_URL | grep -o ":[[:alnum:]]*@" | grep -o "[[:alnum:]]*"`
|
||||
./docker-entrypoint.sh
|
Loading…
Reference in New Issue
Block a user