Skip to content

Commit f28e72e

Browse files
authored
fix: change sqlite to postgres (#31)
1 parent 35b4edd commit f28e72e

File tree

5 files changed

+103
-31
lines changed

5 files changed

+103
-31
lines changed

Dockerfile.dev

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.20 AS builder
1+
FROM golang:1.22.0 AS builder
22

33

44
RUN apt-get update && apt-get install -y gcc git musl-dev musl-tools
@@ -7,5 +7,5 @@ WORKDIR /workspace
77
COPY . .
88

99
RUN go mod download
10-
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 CC=musl-gcc CGO_LDFLAGS="-static" go build -a -o devbox cmd/devbox/main.go
10+
RUN go build -a -o devbox cmd/devbox/main.go
1111

Dockerfile.server

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.20.2 AS builder
1+
FROM golang:1.22.0 AS builder
22
ARG CHECK_CHART_VERSION=0.0.5
33

44
RUN apt-get update && apt-get install -y gcc git musl-dev musl-tools wget

go.mod

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/beclab/devbox
22

3-
go 1.20
3+
go 1.22
44

55
require (
66
github.com/AlecAivazis/survey/v2 v2.3.7
@@ -15,18 +15,17 @@ require (
1515
github.com/jedib0t/go-pretty/v6 v6.5.4
1616
github.com/labstack/echo v3.3.10+incompatible
1717
github.com/maruel/natural v1.1.0
18-
github.com/mattn/go-sqlite3 v1.14.17
1918
github.com/mholt/archiver/v3 v3.5.1
2019
github.com/spf13/afero v1.10.0
2120
github.com/spf13/cobra v1.7.0
2221
github.com/spf13/pflag v1.0.5
2322
github.com/stretchr/testify v1.8.4
24-
golang.org/x/crypto v0.14.0
23+
golang.org/x/crypto v0.17.0
2524
google.golang.org/protobuf v1.30.0
2625
gopkg.in/yaml.v2 v2.4.0
2726
gopkg.in/yaml.v3 v3.0.1
28-
gorm.io/driver/sqlite v1.5.5
29-
gorm.io/gorm v1.25.8
27+
gorm.io/driver/postgres v1.5.11
28+
gorm.io/gorm v1.25.10
3029
helm.sh/helm/v3 v3.13.2
3130
k8s.io/api v0.28.3
3231
k8s.io/apimachinery v0.28.3
@@ -95,6 +94,10 @@ require (
9594
github.com/huandu/xstrings v1.4.0 // indirect
9695
github.com/imdario/mergo v0.3.13 // indirect
9796
github.com/inconshreveable/mousetrap v1.1.0 // indirect
97+
github.com/jackc/pgpassfile v1.0.0 // indirect
98+
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
99+
github.com/jackc/pgx/v5 v5.5.5 // indirect
100+
github.com/jackc/puddle/v2 v2.2.1 // indirect
98101
github.com/jinzhu/inflection v1.0.0 // indirect
99102
github.com/jinzhu/now v1.1.5 // indirect
100103
github.com/jmoiron/sqlx v1.3.5 // indirect
@@ -112,6 +115,7 @@ require (
112115
github.com/mattn/go-colorable v0.1.13 // indirect
113116
github.com/mattn/go-isatty v0.0.19 // indirect
114117
github.com/mattn/go-runewidth v0.0.15 // indirect
118+
github.com/mattn/go-sqlite3 v1.14.17 // indirect
115119
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
116120
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect
117121
github.com/mitchellh/copystructure v1.2.0 // indirect
@@ -163,7 +167,7 @@ require (
163167
golang.org/x/sync v0.3.0 // indirect
164168
golang.org/x/sys v0.16.0 // indirect
165169
golang.org/x/term v0.16.0 // indirect
166-
golang.org/x/text v0.13.0 // indirect
170+
golang.org/x/text v0.14.0 // indirect
167171
golang.org/x/time v0.3.0 // indirect
168172
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
169173
google.golang.org/appengine v1.6.7 // indirect

0 commit comments

Comments
 (0)