Skip to content

Commit 7013f76

Browse files
committed
Bump go-git/[email protected], added devcontainer
1 parent 1769298 commit 7013f76

File tree

5 files changed

+47
-1
lines changed

5 files changed

+47
-1
lines changed

.devcontainer/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ARG GO_VERSION=1.24.2
2+
ARG ALPINE_VERSION=3.21
3+
4+
FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION}
5+
6+
# Install packages
7+
RUN apk add -q --update --progress --no-cache git sudo openssh-client make

.devcontainer/devcontainer.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "Switcher GitOps Dev Container",
3+
"dockerComposeFile": [
4+
"docker-compose.yml"
5+
],
6+
"service": "switcher-gitops",
7+
"workspaceFolder": "/workspace",
8+
"customizations": {
9+
"vscode": {
10+
"extensions": [
11+
"golang.go"
12+
],
13+
"settings": {
14+
"terminal.integrated.shell.linux": "/bin/bash"
15+
}
16+
}
17+
}
18+
}

.devcontainer/docker-compose.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: '3.9'
2+
3+
services:
4+
5+
switcher-gitops:
6+
build:
7+
context: .
8+
dockerfile: Dockerfile
9+
volumes:
10+
- ..:/workspace:cached
11+
command: sleep infinity
12+
13+
mongodb:
14+
image: mongo:latest
15+
restart: unless-stopped
16+
ports:
17+
- 27017:27017
18+
environment:
19+
MONGO_INITDB_DATABASE: switcher-gitops

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.24.2
44

55
require (
66
github.com/go-git/go-billy/v5 v5.6.2
7-
github.com/go-git/go-git/v5 v5.15.0
7+
github.com/go-git/go-git/v5 v5.16.0
88
github.com/golang-jwt/jwt/v5 v5.2.2
99
github.com/gorilla/mux v1.8.1
1010
github.com/joho/godotenv v1.5.1

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399 h1:eMj
3030
github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399/go.mod h1:1OCfN199q1Jm3HZlxleg+Dw/mwps2Wbk9frAWm+4FII=
3131
github.com/go-git/go-git/v5 v5.15.0 h1:f5Qn0W0F7ry1iN0ZwIU5m/n7/BKB4hiZfc+zlZx7ly0=
3232
github.com/go-git/go-git/v5 v5.15.0/go.mod h1:4Ge4alE/5gPs30F2H1esi2gPd69R0C39lolkucHBOp8=
33+
github.com/go-git/go-git/v5 v5.16.0 h1:k3kuOEpkc0DeY7xlL6NaaNg39xdgQbtH5mwCafHO9AQ=
34+
github.com/go-git/go-git/v5 v5.16.0/go.mod h1:4Ge4alE/5gPs30F2H1esi2gPd69R0C39lolkucHBOp8=
3335
github.com/golang-jwt/jwt/v5 v5.2.2 h1:Rl4B7itRWVtYIHFrSNd7vhTiz9UpLdi6gZhZ3wEeDy8=
3436
github.com/golang-jwt/jwt/v5 v5.2.2/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk=
3537
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 h1:f+oWsMOmNPc8JmEHVZIycC7hBoQxHH9pNKQORJNozsQ=

0 commit comments

Comments
 (0)