Skip to content

Commit

Permalink
Merge branch 'main' into feature/shadcn-forms
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Oct 10, 2024
2 parents aa7ab62 + 83aa53a commit 3e59459
Show file tree
Hide file tree
Showing 33 changed files with 493 additions and 478 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/devcontainers/dotnet:0-8.0
FROM mcr.microsoft.com/devcontainers/dotnet:0-9.0

RUN apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
# (Adding the "ports" property to this file will not forward from a Codespace.)

elasticsearch:
image: exceptionless/elasticsearch:8.14.1
image: exceptionless/elasticsearch:8.15.2
environment:
node.name: elasticsearch
cluster.name: exceptionless
Expand All @@ -38,7 +38,7 @@ services:
kibana:
depends_on:
- elasticsearch
image: docker.elastic.co/kibana/kibana:8.14.1
image: docker.elastic.co/kibana/kibana:8.15.2
environment:
xpack.security.enabled: "false"
ports:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.*
#dotnet-quality: preview
dotnet-version: 9.0.*
dotnet-quality: preview
- name: Build Reason
env:
GITHUB_EVENT: ${{ toJson(github) }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.*
#dotnet-quality: preview
dotnet-version: 9.0.*
dotnet-quality: preview

- name: Version
id: version
Expand All @@ -64,8 +64,8 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.*
#dotnet-quality: preview
dotnet-version: 9.0.*
dotnet-quality: preview

- name: Start Services
working-directory: docker
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/elasticsearch-docker-7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.*
#dotnet-quality: preview
dotnet-version: 9.0.*
dotnet-quality: preview
- name: Build Reason
env:
GITHUB_EVENT: ${{ toJson(github) }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/elasticsearch-docker-8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.*
#dotnet-quality: preview
dotnet-version: 9.0.*
dotnet-quality: preview
- name: Build Reason
env:
GITHUB_EVENT: ${{ toJson(github) }}
Expand Down
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/src/Exceptionless.Web/bin/Debug/net8.0/Exceptionless.Web.dll",
"program": "${workspaceFolder}/src/Exceptionless.Web/bin/Debug/net9.0/Exceptionless.Web.dll",
"args": [],
"cwd": "${workspaceFolder}/src/Exceptionless.Web",
"stopAtEntry": false,
Expand All @@ -25,7 +25,7 @@
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/src/Exceptionless.Job/bin/Debug/net8.0/Exceptionless.Job.dll",
"program": "${workspaceFolder}/src/Exceptionless.Job/bin/Debug/net9.0/Exceptionless.Job.dll",
"args": [],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
Expand Down
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
WORKDIR /app

COPY ./*.sln ./NuGet.Config ./
Expand Down Expand Up @@ -36,7 +36,7 @@ RUN dotnet publish -c Release -o out

# job

FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS job
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS job
WORKDIR /app
COPY --from=job-publish /app/src/Exceptionless.Job/out ./

Expand All @@ -50,13 +50,13 @@ FROM build AS api-publish
WORKDIR /app/src/Exceptionless.Web

RUN apt-get update -yq
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - && apt-get install -yq nodejs
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -yq nodejs

RUN dotnet publish -c Release -o out /p:SkipSpaPublish=true

# api

FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS api
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS api
WORKDIR /app
COPY --from=api-publish /app/src/Exceptionless.Web/out ./

Expand All @@ -70,13 +70,13 @@ FROM build AS app-publish
WORKDIR /app/src/Exceptionless.Web

RUN apt-get update -yq
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - && apt-get install -yq nodejs
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -yq nodejs

RUN dotnet publish -c Release -o out

# app

FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS app
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS app

WORKDIR /app
COPY --from=app-publish /app/src/Exceptionless.Web/out ./
Expand All @@ -99,7 +99,7 @@ ENTRYPOINT ["/app/app-docker-entrypoint.sh"]

# completely self-contained

FROM exceptionless/elasticsearch:8.14.1 AS exceptionless
FROM exceptionless/elasticsearch:8.15.2 AS exceptionless

WORKDIR /app
COPY --from=job-publish /app/src/Exceptionless.Job/out ./
Expand Down Expand Up @@ -148,7 +148,7 @@ USER elasticsearch

RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && \
chmod +x dotnet-install.sh && \
./dotnet-install.sh --channel 8.0 --quality ga --runtime aspnetcore && \
./dotnet-install.sh --channel 9.0 --quality preview --runtime aspnetcore && \
rm dotnet-install.sh

EXPOSE 8080 9200
Expand Down Expand Up @@ -206,7 +206,7 @@ USER elasticsearch

RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && \
chmod +x dotnet-install.sh && \
./dotnet-install.sh --channel 8.0 --quality ga --runtime aspnetcore && \
./dotnet-install.sh --channel 9.0 --quality preview --runtime aspnetcore && \
rm dotnet-install.sh

EXPOSE 8080 9200
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ _In appreciation for anyone who submits a non-trivial pull request, we will give
- Please read the [contributing document](https://github.com/exceptionless/Exceptionless/blob/main/CONTRIBUTING.md)
- Requirements
- [Docker](https://www.docker.com/get-docker)
- [.NET 8.0](https://dotnet.microsoft.com/)
- [.NET 9.0](https://dotnet.microsoft.com/)
- [Node 20+](https://nodejs.org/)
- Visual Studio Code
- Open Visual Studio Code and then open the Exceptionless root folder
Expand Down
2 changes: 1 addition & 1 deletion build/docker/elasticsearch/8.x/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# https://www.docker.elastic.co/
FROM docker.elastic.co/elasticsearch/elasticsearch:8.14.1
FROM docker.elastic.co/elasticsearch/elasticsearch:8.15.2

RUN elasticsearch-plugin install -b mapper-size

8 changes: 4 additions & 4 deletions docker/docker-compose.apm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "2.2"

services:
setup:
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.1
image: docker.elastic.co/elasticsearch/elasticsearch:8.15.2
volumes:
- certs:/usr/share/elasticsearch/config/certs
user: "0"
Expand Down Expand Up @@ -53,7 +53,7 @@ services:
depends_on:
setup:
condition: service_healthy
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.1
image: docker.elastic.co/elasticsearch/elasticsearch:8.15.2
volumes:
- certs:/usr/share/elasticsearch/config/certs
- esdata:/usr/share/elasticsearch/data
Expand Down Expand Up @@ -98,7 +98,7 @@ services:
depends_on:
elasticsearch:
condition: service_healthy
image: docker.elastic.co/kibana/kibana:8.14.1
image: docker.elastic.co/kibana/kibana:8.15.2
volumes:
- certs:/usr/share/kibana/config/certs
ports:
Expand All @@ -124,7 +124,7 @@ services:
depends_on:
elasticsearch:
condition: service_healthy
image: docker.elastic.co/apm/apm-server:8.14.1
image: docker.elastic.co/apm/apm-server:8.15.2
volumes:
- certs:/usr/share/apm-server/certs
ports:
Expand Down
4 changes: 2 additions & 2 deletions docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ services:
- appdata:/app/storage

elasticsearch:
image: exceptionless/elasticsearch:8.14.1
image: exceptionless/elasticsearch:8.15.2
environment:
discovery.type: single-node
xpack.security.enabled: "false"
Expand All @@ -64,7 +64,7 @@ services:
kibana:
depends_on:
- elasticsearch
image: docker.elastic.co/kibana/kibana:8.14.1
image: docker.elastic.co/kibana/kibana:8.15.2
ports:
- 5601:5601

Expand Down
4 changes: 2 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
elasticsearch:
image: exceptionless/elasticsearch:8.14.1
image: exceptionless/elasticsearch:8.15.2
environment:
node.name: elasticsearch
cluster.name: exceptionless
Expand All @@ -16,7 +16,7 @@ services:
kibana:
depends_on:
- elasticsearch
image: docker.elastic.co/kibana/kibana:8.14.1
image: docker.elastic.co/kibana/kibana:8.15.2
environment:
xpack.security.enabled: "false"
ports:
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.100",
"version": "9.0.100-rc*",
"rollForward": "latestMinor"
}
}
14 changes: 10 additions & 4 deletions k8s/elastic-monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ metadata:
name: elastic-monitor
namespace: elastic-system
spec:
version: 8.14.1
version: 8.15.2
podDisruptionBudget:
spec:
minAvailable: 2
selector:
matchLabels:
elasticsearch.k8s.elastic.co/cluster-name: elastic-monitor
nodeSets:
- name: main
count: 3
Expand Down Expand Up @@ -50,7 +56,7 @@ metadata:
name: kibana-monitor
namespace: elastic-system
spec:
version: 8.14.1
version: 8.15.2
count: 1
elasticsearchRef:
name: elastic-monitor
Expand Down Expand Up @@ -144,7 +150,7 @@ metadata:
name: fleet-server
namespace: elastic-system
spec:
version: 8.14.1
version: 8.15.2
kibanaRef:
name: kibana-monitor
elasticsearchRefs:
Expand All @@ -168,7 +174,7 @@ metadata:
name: elastic-agent
namespace: elastic-system
spec:
version: 8.14.1
version: 8.15.2
kibanaRef:
name: kibana-monitor
fleetServerRef:
Expand Down
6 changes: 3 additions & 3 deletions k8s/ex-dev-elasticsearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ metadata:
name: ex-dev
namespace: ex-dev
spec:
version: 8.14.1
image: exceptionless/elasticsearch:8.14.1 # https://github.com/exceptionless/Exceptionless/tree/main/build/docker/elasticsearch
version: 8.15.2
image: exceptionless/elasticsearch:8.15.2 # https://github.com/exceptionless/Exceptionless/tree/main/build/docker/elasticsearch
secureSettings:
- secretName: ex-dev-snapshots
http:
Expand Down Expand Up @@ -57,7 +57,7 @@ metadata:
name: ex-dev
namespace: ex-dev
spec:
version: 8.14.1
version: 8.15.2
count: 1
elasticsearchRef:
name: ex-dev
Expand Down
6 changes: 3 additions & 3 deletions k8s/ex-prod-elasticsearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ metadata:
name: ex-prod
namespace: ex-prod
spec:
version: 8.14.1
image: exceptionless/elasticsearch:8.14.1 # https://github.com/exceptionless/Exceptionless/tree/main/build/docker/elasticsearch
version: 8.15.2
image: exceptionless/elasticsearch:8.15.2 # https://github.com/exceptionless/Exceptionless/tree/main/build/docker/elasticsearch
monitoring:
metrics:
elasticsearchRefs:
Expand Down Expand Up @@ -68,7 +68,7 @@ metadata:
name: ex-prod
namespace: ex-prod
spec:
version: 8.14.1
version: 8.15.2
count: 1
elasticsearchRef:
name: ex-prod
Expand Down
6 changes: 3 additions & 3 deletions k8s/ex-prod-tasks.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ helm upgrade vpa fairwinds-stable/vpa --namespace vpa -f vpa-values.yaml --reset
# upgrade elasticsearch operator
# https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-quickstart.html
# https://github.com/elastic/cloud-on-k8s/releases
kubectl replace -f https://download.elastic.co/downloads/eck/2.13.0/crds.yaml
kubectl create -f https://download.elastic.co/downloads/eck/2.13.0/crds.yaml
kubectl apply -f https://download.elastic.co/downloads/eck/2.13.0/operator.yaml
kubectl replace -f https://download.elastic.co/downloads/eck/2.14.0/crds.yaml
kubectl create -f https://download.elastic.co/downloads/eck/2.14.0/crds.yaml
kubectl apply -f https://download.elastic.co/downloads/eck/2.14.0/operator.yaml

# upgrade elasticsearch
kubectl apply --namespace ex-prod -f ex-prod-elasticsearch.yaml
Expand Down
4 changes: 2 additions & 2 deletions k8s/ex-setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ kubectl config set-context --current --namespace=ex-$ENV
# setup elasticsearch operator
# https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-quickstart.html
# https://github.com/elastic/cloud-on-k8s/releases
kubectl create -f https://download.elastic.co/downloads/eck/2.13.0/crds.yaml
kubectl apply -f https://download.elastic.co/downloads/eck/2.13.0/operator.yaml
kubectl create -f https://download.elastic.co/downloads/eck/2.14.0/crds.yaml
kubectl apply -f https://download.elastic.co/downloads/eck/2.14.0/operator.yaml

# view ES operator logs
kubectl -n elastic-system logs -f statefulset.apps/elastic-operator
Expand Down
2 changes: 1 addition & 1 deletion k8s/exceptionless/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ elasticsearch:
connectionString:
image:
repository: exceptionless/elasticsearch
tag: 8.14.1
tag: 8.15.2
pullPolicy: IfNotPresent

redis:
Expand Down
2 changes: 1 addition & 1 deletion samples/docker-compose.all-in-one.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
kibana:
depends_on:
- elasticsearch
image: docker.elastic.co/kibana/kibana:8.14.1
image: docker.elastic.co/kibana/kibana:8.15.2
ports:
- 5601:5601

Expand Down
Loading

0 comments on commit 3e59459

Please sign in to comment.