Skip to content

Commit 9aabc45

Browse files
Lerentistechknowlogick
authored andcommitted
readding install command (#14)
I see that you removed it explicitly in the PR, but i would kindly ask to get it back. helped me a lot with local testing Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/14 Co-authored-by: Tobias Trabelsi <[email protected]> Co-committed-by: Tobias Trabelsi <[email protected]>
1 parent 39b6dc1 commit 9aabc45

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
TEST?=./gitea
22
GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
33
GOFMT ?= gofmt -s
4+
ARCH?=$$(uname -m | sed 's/x86_64/amd64/g')
5+
KERNEL?=$$(uname -s | tr '[:upper:]' '[:lower:]')
46

57
VERSION = 0.2.0
68

@@ -33,3 +35,8 @@ build:
3335
go build -ldflags="-X 'main.Version=${VERSION}'" -o terraform-provider-gitea_${VERSION}
3436
doc:
3537
tfplugindocs
38+
install: build
39+
@echo installing to
40+
@echo ~/.terraform.d/plugins/terraform.local/go-gitea/gitea/${VERSION}/${KERNEL}_${ARCH}/terraform-provider-gitea_${VERSION}
41+
@mkdir -p ~/.terraform.d/plugins/terraform.local/go-gitea/gitea/${VERSION}/${KERNEL}_${ARCH}
42+
@mv terraform-provider-gitea_${VERSION} ~/.terraform.d/plugins/terraform.local/go-gitea/gitea/${VERSION}/${KERNEL}_${ARCH}/terraform-provider-gitea_${VERSION}

scripts/docker-compose.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: "3"
2+
3+
networks:
4+
gitea:
5+
external: false
6+
7+
services:
8+
server:
9+
image: gitea/gitea:1.19.3
10+
container_name: gitea
11+
environment:
12+
- USER_UID=1000
13+
- USER_GID=1000
14+
- DISABLE_GIT_HOOKS=false
15+
restart: always
16+
networks:
17+
- gitea
18+
volumes:
19+
- /etc/timezone:/etc/timezone:ro
20+
- /etc/localtime:/etc/localtime:ro
21+
ports:
22+
- "3000:3000"
23+
- "222:22"

0 commit comments

Comments
 (0)