Pre-build docker image for go 1.23.0
- Improve docker build up for 10x times
- Make sure base image is secure with snyk vulnerability scanner
- Universal make.sh file to help have similar pipelines on different go based repos
- Set up credentials for cr.webdevelop.pro and docker.io/webdevelop-pro
- Set up credentials for snyk to verify image security vulnerabilities
- build and deploy using
./build-deploy.shscript
- build all heavy dependencies (gcc, fx.uber, modern-go/concurrent, modern-go/reflect2)
etc/golangci.yml- actuall rules for golang linteretc/make.sh- bash utility with usefull commandsetc/pre-commit- git pre-commit rulesetc/air.toml- autorestart service on changes
FROM cr.webdevelop.us/webdevelop-pro/go-common:latest-dev AS builder
# RUN apk add --no-cache make gcc musl-dev linux-headers git gettext - no longer needed
# fast build cause of pre-build requirements
RUN ./make.sh build -
./make.sh coverageto generate badger for test coverage -
./make.sh run-debug-devadd ability to run in debug mode - create go image with pubsub and without pubsub (pubsub takes about 1G of space)