diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000..9a17a8d7d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,25 @@ + +build_binary_latest: + stage: build + image: + name: golang:1.18.0-alpine3.15 + script: + - go build -o ./weed/weed ./weed + rules: + - if: $CI_COMMIT_TAG + +build_container_latest: + stage: build + image: + name: gcr.io/kaniko-project/executor:debug + entrypoint: [""] + script: + - mkdir -p /kaniko/.docker + - echo "{\"auths\":{\"${CI_REGISTRY}\":{\"auth\":\"$(printf "%s:%s" "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json + - >- + /kaniko/executor + --context "${CI_PROJECT_DIR}/docker" + --dockerfile "${CI_PROJECT_DIR}/docker/Dockerfile.go_build" + --destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}" + rules: + - if: $CI_COMMIT_TAG \ No newline at end of file diff --git a/.vscode/configurationCache.log b/.vscode/configurationCache.log new file mode 100644 index 000000000..bab9054b3 --- /dev/null +++ b/.vscode/configurationCache.log @@ -0,0 +1 @@ +{"buildTargets":[],"launchTargets":[],"customConfigurationProvider":{"workspaceBrowse":{"browsePath":[],"compilerArgs":[]},"fileIndex":[]}} \ No newline at end of file diff --git a/.vscode/dryrun.log b/.vscode/dryrun.log new file mode 100644 index 000000000..40a61ed1e --- /dev/null +++ b/.vscode/dryrun.log @@ -0,0 +1,6 @@ +make --dry-run --always-make --keep-going --print-directory +make: Entering directory '/home/coder/repos/seaweedfs' +make: Leaving directory '/home/coder/repos/seaweedfs' + +make: *** No targets specified and no makefile found. Stop. + diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..65e1ec078 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "makefile.extensionOutputFolder": "./.vscode" +} \ No newline at end of file diff --git a/.vscode/targets.log b/.vscode/targets.log new file mode 100644 index 000000000..6684e3315 --- /dev/null +++ b/.vscode/targets.log @@ -0,0 +1,630 @@ +make all --print-data-base --no-builtin-variables --no-builtin-rules --question +make: *** No rule to make target 'all'. Stop. + +# GNU Make 4.3 +# Built for x86_64-pc-linux-gnu +# Copyright (C) 1988-2020 Free Software Foundation, Inc. +# License GPLv3+: GNU GPL version 3 or later +# This is free software: you are free to change and redistribute it. +# There is NO WARRANTY, to the extent permitted by law. + +# Make data base, printed on Mon Mar 28 17:22:08 2022 + +# Variables + +# environment +SEAWEED_VOLUME_1_SERVICE_PORT = 8444 +# environment +GETTY_CODE_CODE_SERVER_SERVICE_PORT = 8080 +# environment +KEYCLOAK_OPERATOR_METRICS_PORT_8686_TCP_PROTO = tcp +# environment +KEYCLOAK_OPERATOR_METRICS_SERVICE_PORT_CR_METRICS = 8686 +# environment +PLIK_SERVICE_HOST = 10.245.176.243 +# environment +SEAWEED_VOLUME_0_SERVICE_PORT_VOLUME_HTTP = 8444 +# environment +LC_ALL = C +# environment +KEYCLOAK_OPERATOR_METRICS_PORT_8686_TCP = tcp://10.245.169.206:8686 +# environment +CODE_SERVER_SERVICE_HOST = 10.245.153.237 +# environment +PG_HA_HA_SERVICE_PORT = 5432 +# environment +SEAWEED_FILER_PORT_8333_TCP_PROTO = tcp +# environment +REDIS_REPLICAS_SERVICE_PORT_TCP_REDIS = 6379 +# environment +SEAWEED_FILER_PORT_8888_TCP = tcp://10.245.202.58:8888 +# environment +VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH = /usr/lib/code-server/vendor/modules/code-oss-dev/remote/node_modules +# environment +REDIS_MASTER_SERVICE_HOST = 10.245.29.137 +# environment +REDIS_MASTER_PORT_6379_TCP = tcp://10.245.29.137:6379 +# environment +SEAWEED_FILER_PORT = tcp://10.245.202.58:8888 +# environment +REDIS_REPLICAS_PORT_6379_TCP = tcp://10.245.122.67:6379 +# environment +VSCODE_CWD = /home/coder +# environment +KUBERNETES_PORT_443_TCP_PROTO = tcp +# environment +SEAWEED_VOLUME_3_PORT_18444_TCP_ADDR = 10.245.205.95 +# environment +TRAEFIK_PORT_443_TCP = tcp://10.245.52.194:443 +# environment +SEAWEED_FILER_SERVICE_PORT_FILER_HTTP = 8888 +# environment +SEAWEED_VOLUME_2_SERVICE_PORT_VOLUME_HTTP = 8444 +# environment +PG_HA_REPLICAS_PORT_5432_TCP_PORT = 5432 +# environment +TRAEFIK_PORT_443_TCP_ADDR = 10.245.52.194 +# environment +CODE_SERVER_PARENT_PID = 12 +# default +MAKE_COMMAND := make +# environment +SEAWEED_VOLUME_3_SERVICE_PORT_VOLUME_HTTP = 8444 +# environment +SEAWEED_VOLUME_3_PORT_8444_TCP_PORT = 8444 +# environment +PASTEY_PORT_5000_TCP_PORT = 5000 +# environment +KUBERNETES_PORT_443_TCP_PORT = 443 +# environment +PG_HA_PGBOUNCER_PORT_5432_TCP_PROTO = tcp +# environment +SEAWEED_VOLUME_3_SERVICE_PORT_VOLUME_GRPC = 18444 +# environment +GOPATH = /home/coder/.asdf/installs/golang/1.18/packages +# automatic +@D = $(patsubst %/,%,$(dir $@)) +# environment +PG_HA_REPLICAS_SERVICE_PORT = 5432 +# environment +PG_HA_HA_PORT_5432_TCP_PORT = 5432 +# environment +GETTY_CODE_CODE_SERVER_SERVICE_HOST = 10.245.62.90 +# environment +PGADMIN4_SERVICE_HOST = 10.245.182.193 +# environment +KEYCLOAK_OPERATOR_METRICS_PORT_8383_TCP_PROTO = tcp +# environment +SEAWEED_VOLUME_0_PORT = tcp://10.245.135.162:8444 +# environment +SEAWEED_FILER_PORT_8888_TCP_PROTO = tcp +# environment +SEAWEED_MASTER_PORT_19333_TCP = tcp://10.245.145.57:19333 +# environment +REDIS_MASTER_SERVICE_PORT = 6379 +# environment +SEAWEED_VOLUME_0_PORT_18444_TCP_PORT = 18444 +# environment +VSCODE_HANDLES_UNCAUGHT_ERRORS = true +# default +.VARIABLES := +# environment +PWD = /home/coder/repos/seaweedfs +# automatic +%D = $(patsubst %/,%,$(dir $%)) +# environment +HOSTNAME = code-server-5dfcd6ff77-w8kdz +# environment +PG_HA_PGBOUNCER_PORT_5432_TCP = tcp://10.245.186.4:5432 +# environment +SEAWEED_VOLUME_2_PORT_8444_TCP = tcp://10.245.184.0:8444 +# environment +PG_HA_HA_SERVICE_PORT_POSTGRES = 5432 +# environment +TRAEFIK_PORT_80_TCP_ADDR = 10.245.52.194 +# environment +PG_HA_REPLICAS_PORT = tcp://10.245.76.221:5432 +# environment +SEAWEED_FILER_PORT_18888_TCP = tcp://10.245.202.58:18888 +# automatic +^D = $(patsubst %/,%,$(dir $^)) +# environment +VSCODE_LOG_STACK = false +# automatic +%F = $(notdir $%) +# environment +PASTEY_SERVICE_PORT = 5000 +# environment +KEYCLOAK_OPERATOR_METRICS_PORT_8686_TCP_PORT = 8686 +# environment +LANG = C +# default +.LOADED := +# default +.INCLUDE_DIRS = /usr/local/include /usr/include /usr/include +# environment +PG_HA_HA_PORT_5432_TCP = tcp://10.245.23.155:5432 +# environment +TRAEFIK_PORT_22_TCP = tcp://10.245.52.194:22 +# makefile +MAKEFLAGS = pqrR +# environment +SEAWEED_VOLUME_1_SERVICE_PORT_VOLUME_HTTP = 8444 +# environment +REDIS_REPLICAS_PORT_6379_TCP_PROTO = tcp +# environment +TRAEFIK_SERVICE_PORT_WEBSECURE = 443 +# environment +REDIS_MASTER_SERVICE_PORT_TCP_REDIS = 6379 +# environment +SEAWEED_VOLUME_1_PORT_18444_TCP_PORT = 18444 +# environment +SEAWEED_VOLUME_2_SERVICE_PORT = 8444 +# makefile +CURDIR := /home/coder/repos/seaweedfs +# environment +SEAWEED_FILER_SERVICE_HOST = 10.245.202.58 +# environment +VSCODE_PIPE_LOGGING = true +# environment +SEAWEED_FILER_SERVICE_PORT_FILER_GRPC = 18888 +# environment +REDIS_REPLICAS_SERVICE_PORT = 6379 +# environment +PG_HA_PGBOUNCER_SERVICE_HOST = 10.245.186.4 +# environment +APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL = true +# environment +PG_HA_REPLICAS_SERVICE_HOST = 10.245.76.221 +# automatic +*D = $(patsubst %/,%,$(dir $*)) +# environment +PGADMIN4_PORT_80_TCP_ADDR = 10.245.182.193 +# environment +SEAWEED_MASTER_PORT_9333_TCP = tcp://10.245.145.57:9333 +# environment +TRAEFIK_SERVICE_HOST = 10.245.52.194 +# default +.SHELLFLAGS := -c +# environment +KEYCLOAK_OPERATOR_METRICS_PORT_8383_TCP_PORT = 8383 +# environment +KEYCLOAK_OPERATOR_METRICS_PORT_8686_TCP_ADDR = 10.245.169.206 +# environment +MFLAGS = -pqrR +# automatic ++D = $(patsubst %/,%,$(dir $+)) +# environment +PASTEY_PORT_5000_TCP_PROTO = tcp +# makefile +MAKEFILE_LIST := +# environment +PG_HA_PGBOUNCER_SERVICE_PORT = 5432 +# environment +REDIS_MASTER_PORT_6379_TCP_ADDR = 10.245.29.137 +# environment +REDIS_REPLICAS_PORT = tcp://10.245.122.67:6379 +# environment +GETTY_CODE_CODE_SERVER_PORT_8080_TCP = tcp://10.245.62.90:8080 +# environment +PG_HA_REPLICAS_PORT_5432_TCP = tcp://10.245.76.221:5432 +# environment +SEAWEED_MASTER_PORT_9333_TCP_PROTO = tcp +# automatic +@F = $(notdir $@) +# environment +VSCODE_VERBOSE_LOGGING = true +# environment +TRAEFIK_PORT_443_TCP_PROTO = tcp +# automatic +?D = $(patsubst %/,%,$(dir $?)) +# environment +PASTEY_PORT = tcp://10.245.184.85:5000 +# environment +TRAEFIK_PORT_80_TCP_PROTO = tcp +# environment +SEAWEED_MASTER_PORT_9333_TCP_PORT = 9333 +# environment +GITEA_MEMCACHED_PORT = tcp://10.245.55.95:11211 +# environment +SEAWEED_VOLUME_0_PORT_18444_TCP_PROTO = tcp +# environment +SEAWEED_MASTER_PORT_19333_TCP_PROTO = tcp +# environment +SEAWEED_VOLUME_0_SERVICE_PORT = 8444 +# environment +PLIK_PORT_8080_TCP = tcp://10.245.176.243:8080 +# environment +KEYCLOAK_OPERATOR_METRICS_SERVICE_PORT_HTTP_METRICS = 8383 +# environment +SEAWEED_VOLUME_2_PORT_8444_TCP_ADDR = 10.245.184.0 +# environment +SEAWEED_VOLUME_2_PORT = tcp://10.245.184.0:8444 +# automatic +*F = $(notdir $*) +# environment +TRAEFIK_PORT_22_TCP_ADDR = 10.245.52.194 +# environment +KUBERNETES_PORT_443_TCP_ADDR = 10.245.0.1 +# environment +CODE_SERVER_PORT_8080_TCP = tcp://10.245.153.237:8080 +# environment +TRAEFIK_PORT_22_TCP_PORT = 22 +# automatic +