From 427d813928a2a724c5a59fbc4d91cf13151b87d1 Mon Sep 17 00:00:00 2001 From: kenriortega Date: Sun, 7 Nov 2021 14:38:32 -0500 Subject: [PATCH 1/9] ci: add docker releaser section --- .goreleaser.yml | 13 +++++++++++++ Dockerfile.goreleaser | 5 +++++ 2 files changed, 18 insertions(+) create mode 100644 Dockerfile.goreleaser diff --git a/.goreleaser.yml b/.goreleaser.yml index 8f23e14..de1c6c6 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -55,6 +55,19 @@ checksum: name_template: 'checksums.txt' snapshot: name_template: "{{ incpatch .Version }}-next" +# For docker release +dockers: + - + image_templates: + - "kenriortega/ngonx:{{ .Tag }}" + - "kenriortega/ngonx:v{{ .Major }}" + - "kenriortega/ngonx:v{{ .Major }}.{{ .Minor }}" + - "kenriortega/ngonx:latest" + skip_push: true + + # Path to the Dockerfile (from the project root). + dockerfile: Dockerfile.goreleaser + use: docker changelog: sort: asc filters: diff --git a/Dockerfile.goreleaser b/Dockerfile.goreleaser new file mode 100644 index 0000000..73f757f --- /dev/null +++ b/Dockerfile.goreleaser @@ -0,0 +1,5 @@ +FROM alpine:latest +ENTRYPOINT ["/ngonxctl"] +COPY ngonxctl / +COPY ngonx.yaml ngonx.yaml +CMD ["proxy"] \ No newline at end of file From 5cf251042854cacb01f36c28b6b49c9359d5ba11 Mon Sep 17 00:00:00 2001 From: khorne07 Date: Mon, 8 Nov 2021 02:57:32 -0500 Subject: [PATCH 2/9] Added websocket --- web/src/App.jsx | 30 +++-- web/src/components/EndpointTable.jsx | 84 +++++++------- web/src/components/Endpoints.jsx | 157 +++++++++++---------------- web/src/components/Footer.jsx | 108 +++++++++--------- web/src/components/Header.jsx | 2 +- web/src/hooks/index.js | 2 + web/src/hooks/useSocket.js | 53 +++++++++ 7 files changed, 226 insertions(+), 210 deletions(-) create mode 100644 web/src/hooks/index.js create mode 100644 web/src/hooks/useSocket.js diff --git a/web/src/App.jsx b/web/src/App.jsx index 56e0b7d..95cc2ba 100644 --- a/web/src/App.jsx +++ b/web/src/App.jsx @@ -1,19 +1,17 @@ -import { useState } from 'react' -import Header from './components/Header' -import Footer from './components/Footer' -import Endpoints from './components/Endpoints' -import { QueryClient, QueryClientProvider, useQuery } from 'react-query' -const queryClient = new QueryClient() +import Header from "./components/Header"; +import Footer from "./components/Footer"; +import Endpoints from "./components/Endpoints"; + function App() { - return ( - -
-
- -
-