Disable LFS server because 1.7 breaks:

https://github.com/go-gitea/gitea/issues/5704
This commit is contained in:
Nemo 2019-01-12 15:16:50 +05:30
parent 87ce9743b3
commit 18164d175e
3 changed files with 15 additions and 4 deletions

View File

@ -67,7 +67,7 @@ ROOT_URL = https://git.captnemo.in/
DISABLE_SSH = false
SSH_PORT = 22
DOMAIN = git.captnemo.in
LFS_START_SERVER = true
LFS_START_SERVER = false
LFS_CONTENT_PATH = /data/gitea/lfs
LFS_JWT_SECRET = ${lfs-jwt-secret}
OFFLINE_MODE = true

View File

@ -1,6 +1,6 @@
# https://github.com/go-gitea/gitea/releases
data "docker_registry_image" "gitea" {
name = "gitea/gitea:1.6.1"
name = "gitea/gitea:1.7"
}
data "docker_registry_image" "redis" {

View File

@ -38,8 +38,9 @@ resource "docker_container" "gitea" {
file = "/data/gitea/public/img/gitea-sm.png"
}
upload {
content = "${file("${path.module}/conf/public/img/gitea-sm.png")}"
file = "/data/gitea/public/img/favicon.png"
content = "${file("${path.module}/conf/public/img/gitea-sm.png")}"
file = "/data/gitea/public/img/favicon.png"
executable = false
}
upload {
content = "${file("${path.module}/../docker/conf/humans.txt")}"
@ -60,6 +61,16 @@ resource "docker_container" "gitea" {
destroy_grace_seconds = 10
must_run = true
networks = ["${docker_network.gitea.id}", "${var.traefik-network-id}"]
# This doesn't work.
# See https://github.com/terraform-providers/terraform-provider-docker/issues/48
# lifecycle {
# ignore_changes = [
# "upload.2151376053.content",
# "upload.2151376053.executable",
# "upload.2151376053.file",
# ]
# }
}
resource "docker_image" "gitea" {