No description
  • Go 67.6%
  • Starlark 15.7%
  • TypeScript 5.6%
  • Astro 4.8%
  • CSS 4.1%
  • Other 2.2%
Find a file
Joel Rene Mühlena ac59940dcb C
2023-06-30 01:05:51 +02:00
.vscode Add docs page 2023-04-18 20:48:22 +02:00
.yarn Add yarn / npm / frontend 2023-04-16 13:39:10 +00:00
apps Deployment 2023-06-28 22:07:59 +02:00
bank C 2023-06-30 01:05:51 +02:00
ci Dos 2023-04-20 14:35:37 +02:00
deployment/local K3d manifests & cfg 2023-06-28 22:02:15 +02:00
docs Compose & logging 2023-04-17 20:54:34 +02:00
exchange Fix tests 2023-05-11 13:12:39 +02:00
frontend Fixes 2023-06-27 12:37:03 +02:00
healthcheck Remove cgo flag 2023-05-11 13:12:48 +02:00
lib/go Fix heavy performance issues 2023-06-28 21:59:56 +02:00
tools Init & add exchange 2023-04-12 16:56:01 +02:00
.bazelversion Init & add exchange 2023-04-12 16:56:01 +02:00
.gitattributes Add yarn / npm / frontend 2023-04-16 13:39:10 +00:00
.gitignore Ignore profiling data 2023-06-28 21:58:09 +02:00
.gitlab-ci.yml CI 2023-05-11 15:15:33 +02:00
.yarnrc.yml Add yarn / npm / frontend 2023-04-16 13:39:10 +00:00
BUILD.bazel Init & add exchange 2023-04-12 16:56:01 +02:00
package.json Upgrade 2023-05-04 14:18:47 +02:00
postman_env_vars.txt Add basic k8s cfg 2023-06-27 16:29:11 +02:00
Readme.md Dos 2023-04-20 14:35:37 +02:00
repositories.bzl Raft lib 2023-06-20 20:21:25 +02:00
shares.csv Bank impl 2023-04-12 20:51:35 +02:00
WORKSPACE.bazel Use latest non root 2023-06-27 14:09:09 +02:00
yarn.lock Upgrade 2023-05-04 14:18:47 +02:00

Prerequisites

Usage

# Build exchange
bazel build --@io_bazel_rules_go//go/config:pure //exchange/cmd:cmd_amd64
bazel build --@io_bazel_rules_go//go/config:pure //exchange/cmd:cmd_amd64

# Local use
bazel build //exchange/cmd:svc_image_tar_amd64
cat $(bazel cquery --output=files //exchange/cmd:svc_image_tar_amd64) | docker load

# Multi arch amd64 & arm64
bazel build //exchange/cmd:svc_image_multi

# Push
# bazel run --@io_bazel_rules_go//go/config:pure //exchange/cmd:push_local
bazel run --@io_bazel_rules_go//go/config:pure //exchange/cmd:push_gitlab

# Build bank
bazel build --@io_bazel_rules_go//go/config:pure //bank/cmd:cmd_amd64
bazel build --@io_bazel_rules_go//go/config:pure //bank/cmd:cmd_amd64

# Local use
bazel build //bank/cmd:svc_image_tar_amd64
cat $(bazel cquery --output=files //bank/cmd:svc_image_tar_amd64) | docker load

# Multi arch amd64 & arm64
bazel build //bank/cmd:svc_image_multi

# Push
# bazel run --@io_bazel_rules_go//go/config:pure //bank/cmd:push_local
bazel run --@io_bazel_rules_go//go/config:pure //bank/cmd:push_gitlab


# Frotend dev
# Install node modules
yarn

# Run dev
yarn workspace @mue-rue-vs/bank-ui dev

# Docker

docker-compose -f deployment/local/compose/docker-compose.yaml up

# Runner
mkdir -p /tmp/gitlab-runner/vs/cache
docker run -d --name gitlab-runner --restart always \
  -v $PWD/ci/gitlab-runner:/etc/gitlab-runner \
  -v /tmp/gitlab-runner/vs/cache:/cache \
  -v /var/run/docker.sock:/var/run/docker.sock \
  gitlab/gitlab-runner:latest

docker run --rm -it -v $PWD/ci/gitlab-runner:/etc/gitlab-runner gitlab/gitlab-runner register