-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from SimCorp/develop
Release Version 0.6.0
- Loading branch information
Showing
32 changed files
with
1,506 additions
and
530 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Build front- and back-end docker images | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- feature/docker-deployment | ||
|
||
jobs: | ||
docker-back-end: | ||
name: Build and push back-end docker image | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Docker build | ||
working-directory: ./backend | ||
run: docker build -t ghcr.io/simcorp/nats-topology-visualiser-backend . | ||
- name: Docker login | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | ||
- name: Docker push | ||
run: docker push ghcr.io/simcorp/nats-topology-visualiser-backend | ||
|
||
docker-front-end: | ||
name: Build and push front-end docker image | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Docker build | ||
working-directory: ./ | ||
run: docker build -t ghcr.io/simcorp/nats-topology-visualiser-frontend . | ||
- name: Docker login | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | ||
- name: Docker push | ||
run: docker push ghcr.io/simcorp/nats-topology-visualiser-frontend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,9 @@ pnpm-debug.log* | |
*.sln | ||
*.sw? | ||
.vs | ||
backend.sln.DotSettings.user | ||
|
||
# .NET build files | ||
bin | ||
obj | ||
publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM node:lts-alpine as build-stage | ||
WORKDIR /app | ||
COPY package*.json ./ | ||
RUN npm ci | ||
COPY . . | ||
RUN npm run build; exit 0 | ||
|
||
# production stage | ||
FROM nginx:stable-alpine as production-stage | ||
COPY --from=build-stage /app/dist /usr/share/nginx/html | ||
EXPOSE 80 | ||
CMD ["nginx", "-g", "daemon off;"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
{ | ||
"CORS": { | ||
"AllowedHosts": [ "http://localhost:8080" ] | ||
"AllowedHosts": [ | ||
"http://localhost:8080", | ||
"https://localhost:8080", | ||
"http://localhost:80", | ||
"https://localhost:80" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Collections.Concurrent; | ||
using System.Collections.Generic; | ||
using backend.drawables; | ||
using backend.models; | ||
|
||
namespace backend | ||
{ | ||
public class DataTransfer | ||
{ | ||
public ConcurrentBag<ServerNode> processedServers {get; set;} | ||
public List<Link> links {get; set;} | ||
public ConcurrentBag<ClusterNode> processedClusters {get; set;} | ||
public List<GatewayLink> gatewayLinks {get; set;} | ||
public List<LeafLink> leafLinks {get; set;} | ||
public List<Server> varz {get; set;} | ||
public List<TreeNode> treeNodes { get; set; } | ||
public DateTime timeOfRequest {get; set;} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build | ||
WORKDIR /src/ | ||
COPY . . | ||
RUN dotnet publish -o /app/ | ||
|
||
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS runtime | ||
WORKDIR /app/ | ||
EXPOSE 443 | ||
ENTRYPOINT ["dotnet", "backend.dll"] | ||
COPY --from=build /app/ . |
Oops, something went wrong.