Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BookingService
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WAO56_Travel_Booking
BookingService
Commits
349229a0
Commit
349229a0
authored
9 months ago
by
Nivethan1999
Browse files
Options
Downloads
Patches
Plain Diff
test
parent
95e52661
No related branches found
Branches containing commit
Tags
V.1.1.8
Tags containing commit
No related merge requests found
Pipeline
#279040
passed
9 months ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
BookingCatalog/Program.cs
+9
-5
9 additions, 5 deletions
BookingCatalog/Program.cs
kubernetes/node-deployment.yaml
+1
-1
1 addition, 1 deletion
kubernetes/node-deployment.yaml
with
10 additions
and
6 deletions
BookingCatalog/Program.cs
+
9
−
5
View file @
349229a0
...
@@ -2,12 +2,16 @@ using Microsoft.EntityFrameworkCore;
...
@@ -2,12 +2,16 @@ using Microsoft.EntityFrameworkCore;
using
BookingCatalog.Data
;
using
BookingCatalog.Data
;
var
builder
=
WebApplication
.
CreateBuilder
(
args
);
var
builder
=
WebApplication
.
CreateBuilder
(
args
);
var
connectionString
=
builder
.
Configuration
.
GetConnectionString
(
"DefaultConnection"
);
//
var connectionString = builder.Configuration.GetConnectionString("DefaultConnection");
Console
.
WriteLine
(
$"Connection string:
{
connectionString
}
"
);
//
Console.WriteLine($"Connection string: {connectionString}");
// Add services to the container.
// Add services to the container.
builder
.
Services
.
AddDbContext
<
BookingCatalogDbContext
>(
// builder.Services.AddDbContext<BookingCatalogDbContext>(
options
=>
options
.
UseSqlServer
(
connectionString
)
// options => options.UseSqlServer(connectionString)
);
// );
builder
.
Services
.
AddDbContext
<
BookingCatalogDbContext
>(
options
=>
options
.
UseSqlServer
(
builder
.
Configuration
.
GetConnectionString
(
"DefaultConnection"
)));
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder
.
Services
.
AddEndpointsApiExplorer
();
builder
.
Services
.
AddEndpointsApiExplorer
();
builder
.
Services
.
AddSwaggerGen
();
builder
.
Services
.
AddSwaggerGen
();
...
...
This diff is collapsed.
Click to expand it.
kubernetes/node-deployment.yaml
+
1
−
1
View file @
349229a0
...
@@ -69,7 +69,7 @@ spec:
...
@@ -69,7 +69,7 @@ spec:
spec
:
spec
:
containers
:
containers
:
-
name
:
bookingapi
-
name
:
bookingapi
image
:
registry.gitlab.au.dk/wao56_travel_booking/bookingservice:V.1.0.
8
image
:
registry.gitlab.au.dk/wao56_travel_booking/bookingservice:V.1.0.
9
ports
:
ports
:
-
containerPort
:
5173
-
containerPort
:
5173
env
:
env
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment