connect-auth

module
v0.0.0-...-baf0485 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2023 License: MIT

README

connect-authx

Compiling

$ make clean && make

Building Docker image

$ make docker-image

Pushing Docker image to Container Registry

Note that only the owner of the repository is allowed to push the image.

$ make docker-release

Running

For local environment
$ docker pull postgres:15-alpine
$ docker run \
	-v $PWD/data:/var/lib/postgresql/data \
	-v $PWD/init-db:/docker-entrypoint-initdb.d \
	-p 5432:5432 \
	-e POSTGRES_PASSWORD=123 \
	--restart always \
	postgres:15-alpine
$ ./connect-authx serve
For docker environment
$ docker compose up

Note that you cannot alter the docker image in the container registry. Only the owner of the repository is allowed to do so.

If error happens in core service due to failure to connect to database, restart it:

$ docker compose restart core

The failure happens due to db service isn't ready when core attempts to connect to it.

Directories

Path Synopsis
cmd
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
internal
config
Code generated by MockGen.
Code generated by MockGen.
credential
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL