-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from tiagorlampert/refact-2024-1
refact and update go version
- Loading branch information
Showing
19 changed files
with
363 additions
and
440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
# BUILD STAGE | ||
FROM golang:1.18-alpine AS build | ||
FROM golang:1.22.3-alpine AS build | ||
|
||
ARG APP_VERSION=dev | ||
ARG CGO=1 | ||
ENV CGO_ENABLED=${CGO} | ||
ENV GOOS=linux | ||
ENV GOARCH=amd64 | ||
ENV GO111MODULE=on | ||
|
||
# gcc/g++ are required by sqlite driver | ||
RUN apk update && apk add --no-cache gcc g++ | ||
# required by go-sqlite3 | ||
RUN apk add --update gcc g++ musl-dev | ||
|
||
WORKDIR /build | ||
COPY . . | ||
RUN go build -v -a -tags 'netgo' -ldflags '-w -X 'main.Version=${APP_VERSION}' -extldflags "-static"' -o chaos cmd/chaos/* | ||
RUN go build -v -a -tags 'netgo' -ldflags '-w -X 'main.Version=${APP_VERSION}' -linkmode external -extldflags -static' -o chaos cmd/chaos/* | ||
|
||
# FINAL STAGE | ||
FROM golang:1.18.4 | ||
FROM golang:1.22.3 | ||
|
||
MAINTAINER [email protected] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package entities | ||
|
||
type ClientParam struct { | ||
Key string | ||
Value string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,54 @@ | ||
module github.com/tiagorlampert/CHAOS | ||
|
||
go 1.18 | ||
go 1.22.3 | ||
|
||
require ( | ||
github.com/appleboy/gin-jwt/v2 v2.6.4 | ||
github.com/gin-contrib/multitemplate v0.0.0-20200514145638-4955c9347179 | ||
github.com/gin-gonic/gin v1.7.4 | ||
github.com/go-playground/validator/v10 v10.4.1 | ||
github.com/golang-jwt/jwt/v4 v4.1.0 | ||
github.com/google/uuid v1.1.1 | ||
github.com/gorilla/websocket v1.5.0 | ||
github.com/appleboy/gin-jwt/v2 v2.9.2 | ||
github.com/gin-contrib/multitemplate v1.0.1 | ||
github.com/gin-gonic/gin v1.10.0 | ||
github.com/go-playground/validator/v10 v10.20.0 | ||
github.com/golang-jwt/jwt/v4 v4.5.0 | ||
github.com/google/uuid v1.6.0 | ||
github.com/gorilla/websocket v1.5.1 | ||
github.com/kelseyhightower/envconfig v1.4.0 | ||
github.com/lib/pq v1.10.2 | ||
github.com/sirupsen/logrus v1.5.0 | ||
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa | ||
golang.org/x/sync v0.0.0-20190423024810-112230192c58 | ||
gorm.io/driver/postgres v1.3.10 | ||
gorm.io/driver/sqlite v1.3.6 | ||
gorm.io/gorm v1.23.10 | ||
github.com/lib/pq v1.10.9 | ||
github.com/sirupsen/logrus v1.9.3 | ||
golang.org/x/crypto v0.23.0 | ||
gorm.io/driver/postgres v1.5.7 | ||
gorm.io/driver/sqlite v1.5.5 | ||
gorm.io/gorm v1.25.10 | ||
) | ||
|
||
require ( | ||
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect | ||
github.com/bytedance/sonic v1.11.6 // indirect | ||
github.com/bytedance/sonic/loader v0.1.1 // indirect | ||
github.com/cloudwego/base64x v0.1.4 // indirect | ||
github.com/cloudwego/iasm v0.2.0 // indirect | ||
github.com/gabriel-vasile/mimetype v1.4.3 // indirect | ||
github.com/gin-contrib/sse v0.1.0 // indirect | ||
github.com/go-playground/locales v0.13.0 // indirect | ||
github.com/go-playground/universal-translator v0.17.0 // indirect | ||
github.com/golang/protobuf v1.3.3 // indirect | ||
github.com/jackc/chunkreader/v2 v2.0.1 // indirect | ||
github.com/jackc/pgconn v1.13.0 // indirect | ||
github.com/jackc/pgio v1.0.0 // indirect | ||
github.com/go-playground/locales v0.14.1 // indirect | ||
github.com/go-playground/universal-translator v0.18.1 // indirect | ||
github.com/goccy/go-json v0.10.2 // indirect | ||
github.com/jackc/pgpassfile v1.0.0 // indirect | ||
github.com/jackc/pgproto3/v2 v2.3.1 // indirect | ||
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect | ||
github.com/jackc/pgtype v1.12.0 // indirect | ||
github.com/jackc/pgx/v4 v4.17.2 // indirect | ||
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect | ||
github.com/jackc/pgx/v5 v5.4.3 // indirect | ||
github.com/jinzhu/inflection v1.0.0 // indirect | ||
github.com/jinzhu/now v1.1.5 // indirect | ||
github.com/json-iterator/go v1.1.9 // indirect | ||
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect | ||
github.com/leodido/go-urn v1.2.0 // indirect | ||
github.com/mattn/go-isatty v0.0.12 // indirect | ||
github.com/mattn/go-sqlite3 v2.0.1+incompatible // indirect | ||
github.com/json-iterator/go v1.1.12 // indirect | ||
github.com/klauspost/cpuid/v2 v2.2.7 // indirect | ||
github.com/kr/text v0.2.0 // indirect | ||
github.com/leodido/go-urn v1.4.0 // indirect | ||
github.com/mattn/go-isatty v0.0.20 // indirect | ||
github.com/mattn/go-sqlite3 v1.14.22 // indirect | ||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect | ||
github.com/modern-go/reflect2 v1.0.1 // indirect | ||
github.com/ugorji/go/codec v1.1.7 // indirect | ||
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 // indirect | ||
golang.org/x/text v0.3.7 // indirect | ||
gopkg.in/yaml.v2 v2.2.8 // indirect | ||
github.com/modern-go/reflect2 v1.0.2 // indirect | ||
github.com/pelletier/go-toml/v2 v2.2.2 // indirect | ||
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect | ||
github.com/ugorji/go/codec v1.2.12 // indirect | ||
golang.org/x/arch v0.8.0 // indirect | ||
golang.org/x/net v0.25.0 // indirect | ||
golang.org/x/sys v0.20.0 // indirect | ||
golang.org/x/text v0.15.0 // indirect | ||
google.golang.org/protobuf v1.34.1 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
Oops, something went wrong.