Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
brycecoon committed Mar 18, 2024
1 parent 49ed346 commit 095dfa8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 27 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/brycerunner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,8 @@ jobs:
needs: ${{ toJson(needs) }}
job: ${{ toJson(job) }}
steps: ${{ toJson(steps) }}

- name: "Deploy to Server"
run: |
scp -r ./ticketsrus-aaron-bryce-carlos/BryceDocker username@server:/path/to/destination
2 changes: 1 addition & 1 deletion BlazorTickets/Components/Pages/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

public Home()

Check warning on line 32 in BlazorTickets/Components/Pages/Home.razor

View workflow job for this annotation

GitHub Actions / test

Non-nullable property 'QRCodeText' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 32 in BlazorTickets/Components/Pages/Home.razor

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'QRCodeText' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 32 in BlazorTickets/Components/Pages/Home.razor

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'QRCodeText' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
{

return;
}

public string QRByte = "place holder";
Expand Down
24 changes: 0 additions & 24 deletions BlazorTickets/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,12 @@
using Microsoft.AspNetCore.Diagnostics.HealthChecks;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Diagnostics.HealthChecks;
<<<<<<< HEAD
using Microsoft.Extensions.Logging;
using OpenTelemetry;
using OpenTelemetry.Logs;
using OpenTelemetry.Metrics;
using OpenTelemetry.Resources;
using OpenTelemetry.Trace;
=======
//using OpenTelemetry.Logs;
//using OpenTelemetry.Metrics;
//using OpenTelemetry.Resources;
//using OpenTelemetry.Trace;
>>>>>>> 66b01ab1230c00046ec42d5b2d49ae1a2c7ce667
using TicketLibrary.Services;

var builder = WebApplication.CreateBuilder(args);
Expand All @@ -40,7 +33,6 @@
builder.Services.AddHealthChecks();
builder.Services.AddLogging();

<<<<<<< HEAD
const string serviceName = "bryceservice";
var serviceVersion = "1.0.0";

Check warning on line 37 in BlazorTickets/Program.cs

View workflow job for this annotation

GitHub Actions / test

The variable 'serviceVersion' is assigned but its value is never used

Check warning on line 37 in BlazorTickets/Program.cs

View workflow job for this annotation

GitHub Actions / build

The variable 'serviceVersion' is assigned but its value is never used

Check warning on line 37 in BlazorTickets/Program.cs

View workflow job for this annotation

GitHub Actions / build

The variable 'serviceVersion' is assigned but its value is never used

Expand All @@ -55,22 +47,6 @@
o.Endpoint = new Uri("http://otel-collector:4317")
);
});
=======
//const string serviceName = "bryceservice";

//builder.Logging.AddOpenTelemetry(options =>
//{
// options
// .SetResourceBuilder(
// ResourceBuilder.CreateDefault()
// .AddService(serviceName))
// .AddOtlpExporter(opt =>
// {
// opt.Endpoint = new Uri("http://otel-collector:4317/");
// })
// .AddConsoleExporter();
//});
>>>>>>> 66b01ab1230c00046ec42d5b2d49ae1a2c7ce667

builder.Services.AddOpenTelemetry()
.ConfigureResource(r => r.AddService(serviceName))
Expand Down
Binary file added BryceDocker.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions BryceDocker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ services:
networks:
- otel

# try to work

bryceblazorapp:
build: ..
ports:
- 8085:8080
environment:
- "Postgres=Server=brycecooldb;Database=postgres;Port=5432;User id=postgres;Password=postgres;"
healthcheck:
test: curl --fail http://localhost:8085/health || exit 1
test: curl --fail http://host.docker.internal:8085/health || exit 1
interval: 60s
retries: 5
start_period: 20s
Expand Down

0 comments on commit 095dfa8

Please sign in to comment.