Skip to content

Commit

Permalink
Merge pull request #31 from mrpalide/fix/update-dmsg
Browse files Browse the repository at this point in the history
update dmsg
  • Loading branch information
jdknives authored Nov 20, 2023
2 parents 115d627 + 8152349 commit bb1ea9d
Show file tree
Hide file tree
Showing 808 changed files with 210,935 additions and 119,153 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ jobs:
- name: Setup golang
uses: actions/setup-go@v3
with:
go-version: 1.19.x
go-version: 1.21.x
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Requirements
run: |
GO111MODULES=off; go mod vendor
Expand Down
2 changes: 1 addition & 1 deletion cmd/address-resolver/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ var RootCmd = &cobra.Command{
go dmsghttp.UpdateServers(ctx, dClient, dmsgDisc, dmsgDC, logger)

go func() {
if err := dmsghttp.ListenAndServe(ctx, pk, sk, arAPI, dClient, dmsg.DefaultDmsgHTTPPort, config, dmsgDC, logger); err != nil {
if err := dmsghttp.ListenAndServe(ctx, sk, arAPI, dClient, dmsg.DefaultDmsgHTTPPort, dmsgDC, logger); err != nil {
logger.Errorf("dmsghttp.ListenAndServe: %v", err)
cancel()
}
Expand Down
1 change: 1 addition & 0 deletions cmd/config-bootstrapper/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"github.com/skycoin/skywire-utilities/pkg/cmdutil"
"github.com/skycoin/skywire-utilities/pkg/logging"
"github.com/skycoin/skywire-utilities/pkg/tcpproxy"

"github.com/spf13/cobra"

"github.com/skycoin/skywire-services/pkg/config-bootstrapper/api"
Expand Down
2 changes: 1 addition & 1 deletion cmd/route-finder/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ var RootCmd = &cobra.Command{
go dmsghttp.UpdateServers(ctx, dClient, dmsgDisc, dmsgDC, logger)

go func() {
if err := dmsghttp.ListenAndServe(ctx, pk, sk, rfAPI, dClient, dmsg.DefaultDmsgHTTPPort, config, dmsgDC, logger); err != nil {
if err := dmsghttp.ListenAndServe(ctx, sk, rfAPI, dClient, dmsg.DefaultDmsgHTTPPort, dmsgDC, logger); err != nil {
logger.Errorf("dmsghttp.ListenAndServe: %v", err)
cancel()
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/transport-discovery/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ var RootCmd = &cobra.Command{
go dmsghttp.UpdateServers(ctx, dClient, dmsgDisc, dmsgDC, logger)

go func() {
if err := dmsghttp.ListenAndServe(ctx, pk, sk, tpdAPI, dClient, dmsg.DefaultDmsgHTTPPort, config, dmsgDC, logger); err != nil {
if err := dmsghttp.ListenAndServe(ctx, sk, tpdAPI, dClient, dmsg.DefaultDmsgHTTPPort, dmsgDC, logger); err != nil {
logger.Errorf("dmsghttp.ListenAndServe: %v", err)
cancel()
}
Expand Down
16 changes: 8 additions & 8 deletions docker/docker_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ platform="--platform=linux/amd64"
registry="$REGISTRY"

# shellcheck disable=SC2153
base_image=golang:1.19-alpine
base_image=golang:1.21-alpine

if [[ "$#" != 2 ]]; then
echo "docker_build.sh <IMAGE_TAG> <GO_BUILDOPTS>"
Expand Down Expand Up @@ -51,7 +51,7 @@ if [[ "$image_tag" == "e2e" ]]; then
# else
# git clone [email protected]:skycoin/skywire-ut --depth 1 --branch "$git_branch" ./tmp/skywire-ut
# fi
git clone https://"$GIT_USER":"$GIT_TOKEN"@github.com/skycoin/skywire-ut.git --depth 1 --branch "$git_branch" ./tmp/skywire-ut
git clone https://github.com/skycoin/skywire-ut.git --depth 1 --branch "$git_branch" ./tmp/skywire-ut

if [ ! -d ./tmp/skywire-ut ]; then
echo "failed to clone skywire-ut" &&
Expand Down Expand Up @@ -205,19 +205,19 @@ DOCKER_BUILDKIT="$bldkit" docker build -f docker/images/network-monitor/Dockerfi
--build-arg image_tag="$image_tag" \
-t "$registry"/network-monitor:"$image_tag" .

echo "building config bootstrapper image"
DOCKER_BUILDKIT="$bldkit" docker build -f docker/images/config-bootstrapper/Dockerfile \
echo "building liveness checker image"
DOCKER_BUILDKIT="$bldkit" docker build -f docker/images/liveness-checker/Dockerfile \
--build-arg base_image="$base_image" \
--build-arg build_opts="$go_buildopts" \
--build-arg image_tag="$image_tag" \
-t "$registry"/config-bootstrapper:"$image_tag" .
-t "$registry"/liveness-checker:"$image_tag" .

echo "building liveness checker image"
DOCKER_BUILDKIT="$bldkit" docker build -f docker/images/liveness-checker/Dockerfile \
echo "building config bootstrapper image"
DOCKER_BUILDKIT="$bldkit" docker build -f docker/images/config-bootstrapper/Dockerfile \
--build-arg base_image="$base_image" \
--build-arg build_opts="$go_buildopts" \
--build-arg image_tag="$image_tag" \
-t "$registry"/liveness-checker:"$image_tag" .
-t "$registry"/config-bootstrapper:"$image_tag" .

echo "building vpn monitor image"
DOCKER_BUILDKIT="$bldkit" docker build -f docker/images/vpn-monitor/Dockerfile \
Expand Down
5 changes: 2 additions & 3 deletions docker/images/config-bootstrapper/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ ARG build_opts
COPY . /skywire-services
WORKDIR /skywire-services

RUN go build "${build_opts}" -o /release/config-bootstrapper \
./cmd/config-bootstrapper && \
RUN go build "${build_opts}" -o /release/config-bootstrapper ./cmd/config-bootstrapper && \
mv /skywire-services/docker/config/config.json /release/config.json


FROM alpine as prod
COPY --from=builder /release/config-bootstrapper /release/config-bootstrapper
COPY --from=builder /release/config.json /release/config.json
ENTRYPOINT ["/release/config-bootstrapper"]

FROM prod as test
Expand Down
2 changes: 1 addition & 1 deletion docker/images/skywire-visor/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG image_tag=e2e

ARG base=alpine
FROM golang:alpine3.17 as builder
FROM golang:alpine3.18 as builder

ARG BUILDINFO_LDFLAGS
ARG CGO_ENABLED=0
Expand Down
2 changes: 1 addition & 1 deletion docker/images/skywire-visor/DockerfileInt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG image_tag=e2e

ARG base=alpine
FROM golang:1.19-alpine as builder
FROM golang:1.21-alpine as builder

ARG BUILDINFO_LDFLAGS
ARG CGO_ENABLED=0
Expand Down
8 changes: 5 additions & 3 deletions docker/integration/visorA.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"discovery": "http://transport-discovery:9091",
"address_resolver": "http://address-resolver:9093",
"public_autoconnect": false,
"transport_setup_nodes": null,
"transport_setup_nodes": [
"0277dda8a284d43b4d5ee2a4152771e76131e9437c47be5d8e835aafe02c45a9ae"
],
"stcpr_port": 40550,
"sudph_port": 40560
},
Expand Down Expand Up @@ -49,7 +51,7 @@
"binary": "skychat",
"args": [
"-addr",
":8001"
"*:8001"
],
"auto_start": true,
"port": 1
Expand All @@ -72,7 +74,7 @@
},
"hypervisors": ["0348c941c5015a05c455ff238af2e57fb8f914c399aab604e9abb5b32b91a4c1fe"],
"cli_addr": "0.0.0.0:3435",
"log_level": "info",
"log_level": "debug",
"local_path": "./local",
"stun_servers": null,
"shutdown_timeout": "30s",
Expand Down
4 changes: 3 additions & 1 deletion docker/integration/visorB.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"discovery": "http://transport-discovery:9091",
"address_resolver": "http://address-resolver:9093",
"public_autoconnect": false,
"transport_setup_nodes": null,
"transport_setup_nodes": [
"0277dda8a284d43b4d5ee2a4152771e76131e9437c47be5d8e835aafe02c45a9ae"
],
"stcpr_port": 40551,
"sudph_port": 40561
},
Expand Down
10 changes: 6 additions & 4 deletions docker/integration/visorC.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"discovery": "http://transport-discovery:9091",
"address_resolver": "http://address-resolver:9093",
"public_autoconnect": false,
"transport_setup": null,
"transport_setup_nodes": [
"0277dda8a284d43b4d5ee2a4152771e76131e9437c47be5d8e835aafe02c45a9ae"
],
"log_store": {
"type": "file",
"location": "./local/transport_logs",
Expand Down Expand Up @@ -60,7 +62,7 @@
"binary": "skychat",
"args": [
"-addr",
":8001"
"*:8001"
],
"auto_start": true,
"port": 1
Expand Down Expand Up @@ -93,12 +95,12 @@
"0348c941c5015a05c455ff238af2e57fb8f914c399aab604e9abb5b32b91a4c1fe"
],
"cli_addr": "0.0.0.0:3435",
"log_level": "info",
"log_level": "debug",
"local_path": "./local",
"dmsghttp_server_path": "./local/custom",
"stun_servers": null,
"shutdown_timeout": "30s",
"restart_check_delay": "1s",
"is_public": false,
"persistent_transports": null
}
}
78 changes: 35 additions & 43 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@ require (
github.com/dgraph-io/badger/v3 v3.2103.2
github.com/docker/docker v1.13.1
github.com/flopp/go-staticmaps v0.0.0-20220221183018-c226716bec53
github.com/go-chi/chi/v5 v5.0.8
github.com/go-playground/validator/v10 v10.14.1
github.com/go-chi/chi/v5 v5.0.10
github.com/go-playground/validator/v10 v10.15.1
github.com/go-redis/redis v6.15.9+incompatible
github.com/go-redis/redis/v8 v8.11.5
github.com/golang/geo v0.0.0-20230421003525-6adc56603217
github.com/google/uuid v1.3.0
github.com/google/uuid v1.3.1
github.com/ivanpirog/coloredcobra v1.0.1
github.com/json-iterator/go v1.1.12
github.com/rs/cors v1.8.2
github.com/sirupsen/logrus v1.9.3
github.com/skycoin/dmsg v1.3.11
github.com/skycoin/skywire v1.3.11
github.com/skycoin/skywire-utilities v1.3.11
github.com/skycoin/dmsg v1.3.12-0.20231120175607-0b6d5135bbc5
github.com/skycoin/skywire v1.3.14-0.20231120181804-7c5994927a04
github.com/skycoin/skywire-utilities v0.0.0-20231120175000-12be4345eb26
github.com/songgao/water v0.0.0-20200317203138-2b4b6d7c09d8
github.com/spf13/cobra v1.7.0
github.com/stretchr/testify v1.8.4
github.com/xtaci/kcp-go v5.4.20+incompatible
golang.org/x/net v0.11.0
golang.org/x/net v0.14.0
gorm.io/driver/postgres v1.3.8
gorm.io/gorm v1.23.8
)
Expand All @@ -38,10 +38,11 @@ require (
github.com/VictoriaMetrics/metrics v1.24.0 // indirect
github.com/bitfield/script v0.22.0 // indirect
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/bytedance/sonic v1.9.1 // indirect
github.com/bytedance/sonic v1.10.0 // indirect
github.com/cespare/xxhash v1.1.0 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect
github.com/chenzhuoyu/iasm v0.9.0 // indirect
github.com/creack/pty v1.1.18 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dgraph-io/ristretto v0.1.0 // indirect
Expand All @@ -58,10 +59,10 @@ require (
github.com/ghodss/yaml v1.0.0 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/gin-gonic/gin v1.9.1 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 // indirect
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
github.com/gocarina/gocsv v0.0.0-20230616125104-99d496ca653d // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/godbus/dbus/v5 v5.1.0 // indirect
Expand All @@ -70,15 +71,15 @@ require (
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/mock v1.6.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/snappy v0.0.3 // indirect
github.com/google/flatbuffers v1.12.1 // indirect
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect
github.com/google/pprof v0.0.0-20230821062121-407c9e7a662f // indirect
github.com/gopherjs/gopherjs v1.17.2 // indirect
github.com/gorilla/securecookie v1.1.1 // indirect
github.com/hashicorp/yamux v0.1.1 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/itchyny/gojq v0.12.12 // indirect
github.com/itchyny/gojq v0.12.13 // indirect
github.com/itchyny/timefmt-go v0.1.5 // indirect
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgconn v1.12.1 // indirect
Expand All @@ -88,75 +89,66 @@ require (
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
github.com/jackc/pgtype v1.11.0 // indirect
github.com/jackc/pgx/v4 v4.16.1 // indirect
github.com/james-barrow/golang-ipc v1.1.0 // indirect
github.com/jaypipes/ghw v0.11.0 // indirect
github.com/james-barrow/golang-ipc v1.2.4 // indirect
github.com/jaypipes/ghw v0.12.0 // indirect
github.com/jaypipes/pcidb v1.0.0 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/klauspost/compress v1.16.6 // indirect
github.com/klauspost/compress v1.16.7 // indirect
github.com/klauspost/cpuid/v2 v2.2.5 // indirect
github.com/klauspost/reedsolomon v1.11.7 // indirect
github.com/klauspost/reedsolomon v1.11.8 // indirect
github.com/konsorten/go-windows-terminal-sequences v1.0.3 // indirect
github.com/leodido/go-urn v1.2.4 // indirect
github.com/lib/pq v1.10.9 // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/onsi/ginkgo/v2 v2.2.0 // indirect
github.com/onsi/ginkgo/v2 v2.12.0 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/orandin/lumberjackrus v1.0.1 // indirect
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
github.com/pelletier/go-toml/v2 v2.0.9 // indirect
github.com/pires/go-proxyproto v0.6.2 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
github.com/quic-go/qtls-go1-18 v0.2.0 // indirect
github.com/quic-go/qtls-go1-19 v0.2.0 // indirect
github.com/quic-go/qtls-go1-20 v0.1.0 // indirect
github.com/quic-go/quic-go v0.32.0 // indirect
github.com/shirou/gopsutil/v3 v3.23.5 // indirect
github.com/shoenig/go-m1cpu v0.1.6 // indirect
github.com/quic-go/qtls-go1-20 v0.3.3 // indirect
github.com/quic-go/quic-go v0.38.1 // indirect
github.com/skycoin/noise v0.0.0-20180327030543-2492fe189ae6 // indirect
github.com/skycoin/skycoin v0.27.1 // indirect
github.com/skycoin/systray v1.10.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stretchr/objx v0.5.0 // indirect
github.com/stretchr/objx v0.5.1 // indirect
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635 // indirect
github.com/templexxx/cpufeat v0.0.0-20180724012125-cef66df7f161 // indirect
github.com/templexxx/xor v0.0.0-20191217153810-f85b25db303b // indirect
github.com/tjfoc/gmsm v1.4.1 // indirect
github.com/tklauser/go-sysconf v0.3.11 // indirect
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/tkrajina/gpxgo v1.1.2 // indirect
github.com/toqueteos/webbrowser v1.2.0 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.11 // indirect
github.com/valyala/fastrand v1.1.0 // indirect
github.com/valyala/histogram v1.2.0 // indirect
github.com/yusufpapurcu/wmi v1.2.3 // indirect
github.com/zcalusic/sysinfo v1.0.0 // indirect
github.com/zcalusic/sysinfo v1.0.1 // indirect
go.etcd.io/bbolt v1.3.7 // indirect
go.opencensus.io v0.23.0 // indirect
golang.org/x/arch v0.3.0 // indirect
golang.org/x/crypto v0.10.0 // indirect
golang.org/x/exp v0.0.0-20221205204356-47842c84f3db // indirect
golang.org/x/arch v0.4.0 // indirect
golang.org/x/crypto v0.12.0 // indirect
golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 // indirect
golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d // indirect
golang.org/x/mod v0.11.0 // indirect
golang.org/x/sys v0.9.0 // indirect
golang.org/x/term v0.9.0 // indirect
golang.org/x/text v0.10.0 // indirect
golang.org/x/tools v0.10.0 // indirect
golang.org/x/mod v0.12.0 // indirect
golang.org/x/sys v0.11.0 // indirect
golang.org/x/term v0.11.0 // indirect
golang.org/x/text v0.12.0 // indirect
golang.org/x/tools v0.12.1-0.20230815132531-74c255bcf846 // indirect
golang.zx2c4.com/wireguard v0.0.20200320 // indirect
google.golang.org/protobuf v1.30.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
howett.net/plist v1.0.0 // indirect
mvdan.cc/sh/v3 v3.6.0 // indirect
mvdan.cc/sh/v3 v3.7.0 // indirect
nhooyr.io/websocket v1.8.7 // indirect
)

Expand Down
Loading

0 comments on commit bb1ea9d

Please sign in to comment.