test
This commit is contained in:
parent
cda5ceba97
commit
81ccf71742
12
Dockerfile
12
Dockerfile
@ -1,7 +1,11 @@
|
||||
FROM gitea/gitea:1.14.5-rootless
|
||||
FROM gitea/gitea:1.14.5
|
||||
|
||||
RUN mkdir -p /data/gitea
|
||||
WORKDIR /app
|
||||
|
||||
EXPOSE 3000
|
||||
COPY run.sh ./
|
||||
|
||||
CMD ["/usr/bin/gitea", "web"]
|
||||
ENV GITEA_CUSTOM=/var/lib/gitea/custom
|
||||
|
||||
RUN chmod +x ./run.sh
|
||||
|
||||
ENTRYPOINT ["./run.sh"]
|
||||
|
@ -0,0 +1,13 @@
|
||||
[database]
|
||||
NAME = gitea
|
||||
DB_TYPE = postgres
|
||||
USER = gitea
|
||||
HOST = db:5432
|
||||
PASSWD = gitea
|
||||
|
||||
[oauth2]
|
||||
JWT_SECRET = clihxt5fuU2yaZwdPnTDxwarGNbnuLItEe7kd4fI0y0
|
||||
|
||||
[security]
|
||||
INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE3MzUwNzQ5Mzl9.ZVn8jqgOjeR3WM_E6k8Oa9ZPvYUTK6nHeJNrg641fvM
|
||||
|
@ -10,6 +10,3 @@ setup:
|
||||
build:
|
||||
docker:
|
||||
web: Dockerfile
|
||||
|
||||
run:
|
||||
web: ./run.sh
|
||||
|
7
run.sh
7
run.sh
@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
echo $APP_URL
|
||||
echo DATABASE_URL
|
||||
echo $DATABASE_URL
|
||||
|
||||
export DB_HOST=$(heroku config:get DATABASE_URL | sed 's/.*\/\/\(.*\):\(.*\)\/.*/\1/')
|
||||
export DB_USER=$(heroku config:get DATABASE_URL | sed 's/.*\/\/\(.*\):\(.*\)\/.*/\1/')
|
||||
export DB_PASSWORD=$(heroku config:get DATABASE_URL | sed 's/.*:\/\/.*:\(.*\)@.*/\1/')
|
||||
@ -20,4 +25,4 @@ HTTP_PORT = ${PORT}
|
||||
|
||||
EOL
|
||||
|
||||
/usr/bin/gitea web
|
||||
/usr/local/bin/gitea web --port $PORT
|
Loading…
Reference in New Issue
Block a user