santos

module
v0.0.0-...-1c5f9c5 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: MIT

README

santos

Monolith web api that serves the frontend.

Hooks

This repository is configured with client-side Git hooks which you need to install by running the following command:

./hooks/INSTALL

Usage

To properly run this service, you will need to a setup a .env file. Start by creating a copy of the .env.tpl file and fill the variables with values appropriate for the execution context.

Then, all you need to do is to run the service with the following command:

go run cmd/santos/santos.go

Docker

To run the service with Docker, you will first need to setup the .git-local-credentials file. This credentials file shall contain the git credentials config to access damn and palavrapasse private modules.

To build the service image:

docker_tag=santos:latest

docker build \
    -f ./deployments/Dockerfile \
    --secret id=git-credentials,src=.local-git-credentials \
    . -t $docker_tag

To run the service container:

export $(grep -v '^#' .env | xargs)

docker run \
    -p $server_port:$server_port \
    --mount "type=bind,src=$server_tls_crt_fp,dst=$server_tls_crt_fp" \
    --mount "type=bind,src=$server_tls_key_fp,dst=$server_tls_key_fp" \
    --mount "type=bind,src=$logging_fp,dst=$logging_fp" \
    --env-file .env \
    -t $docker_tag

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

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