mirror of
https://git.cloudron.io/cloudron/gitea-app.git
synced 2024-11-29 03:30:59 +00:00
cloudron build does not use sqlite
This commit is contained in:
parent
3978609185
commit
adbbfba7c3
2 changed files with 5 additions and 3 deletions
|
@ -7,15 +7,15 @@ RUN apt-get update && \
|
||||||
ADD supervisor/ /etc/supervisor/conf.d/
|
ADD supervisor/ /etc/supervisor/conf.d/
|
||||||
|
|
||||||
ENV GOPATH /home/cloudron
|
ENV GOPATH /home/cloudron
|
||||||
RUN mkdir -p /home/cloudron/gogs/log
|
RUN mkdir -p /home/cloudron/gogs/
|
||||||
|
|
||||||
## TODO: use redis as well
|
## TODO: use redis as well
|
||||||
RUN mkdir -p ${GOPATH}/src/github.com/gogits && \
|
RUN mkdir -p ${GOPATH}/src/github.com/gogits && \
|
||||||
cd ${GOPATH}/src/github.com/gogits && \
|
cd ${GOPATH}/src/github.com/gogits && \
|
||||||
git clone https://github.com/cloudron-io/gogs.git && \
|
git clone https://github.com/cloudron-io/gogs.git && \
|
||||||
cd gogs && \
|
cd gogs && \
|
||||||
go get -u -tags "sqlite" && \
|
go get ./... && \
|
||||||
go build -tags "sqlite" && \
|
go build && \
|
||||||
go install && \
|
go install && \
|
||||||
mv ${GOPATH}/bin/gogs /home/cloudron/gogs/
|
mv ${GOPATH}/bin/gogs /home/cloudron/gogs/
|
||||||
|
|
||||||
|
|
2
start.sh
2
start.sh
|
@ -5,6 +5,8 @@ set -eu -o pipefail
|
||||||
fqdn=$(hostname -f)
|
fqdn=$(hostname -f)
|
||||||
|
|
||||||
chown -R cloudron.cloudron /app/data
|
chown -R cloudron.cloudron /app/data
|
||||||
|
mkdir -p /home/cloudron/gogs/log
|
||||||
|
chown cloudron:cloudron /home/cloudron/gogs/log
|
||||||
|
|
||||||
# Dockerfile changes the ownership of this file to make it writable by cloudron user
|
# Dockerfile changes the ownership of this file to make it writable by cloudron user
|
||||||
sed -e "s/^Port .*/Port ${SSH_PORT}/" \
|
sed -e "s/^Port .*/Port ${SSH_PORT}/" \
|
||||||
|
|
Loading…
Reference in a new issue