Skip to content

Commit 441f763

Browse files
author
aligneddev
committed
podman into the container
1 parent d1389ab commit 441f763

5 files changed

Lines changed: 11 additions & 7 deletions

File tree

.devcontainer/devcontainer.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ FROM mcr.microsoft.com/devcontainers/dotnet:1-10.0-noble
44

55
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
66

7+
RUN curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarn-archive-keyring.gpg
8+
9+
# Install podman
10+
RUN apt-get update && apt-get install -y podman && rm -rf /var/lib/apt/lists/*
11+
712
ARG REQUIRED_DOTNET_SDK_VERSION=10.0.200
813

914
# Ensure the SDK version from global.json is available in the image.

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"NODE_ENV": "development",
1515
"SSL_CERT_DIR": "/root/.aspnet/dev-certs/trust:/usr/lib/ssl/certs"
1616
},
17-
"postCreateCommand": "mkdir -p /root/.ssh && cp /root/.ssh-host/* /root/.ssh/ && chmod 700 /root/.ssh && chmod 600 /root/.ssh/config /root/.ssh/aligneddev_github /root/.ssh/omnitech_github && chmod 644 /root/.ssh/*.pub /root/.ssh/known_hosts 2>/dev/null; dotnet dev-certs https --trust && dotnet tool restore && dotnet restore BikeTracking.slnx && dotnet build BikeTracking.slnx && npm ci --prefix src/BikeTracking.Frontend",
17+
"postCreateCommand": "export ASPIRE_CONTAINER_RUNTIME=podman && mkdir -p /root/.ssh && cp /root/.ssh-host/* /root/.ssh/ && chmod 700 /root/.ssh && chmod 600 /root/.ssh/config /root/.ssh/aligneddev_github /root/.ssh/omnitech_github && chmod 644 /root/.ssh/*.pub /root/.ssh/known_hosts 2>/dev/null; dotnet dev-certs https --trust && dotnet tool restore && dotnet restore BikeTracking.slnx && dotnet build BikeTracking.slnx && npm ci --prefix src/BikeTracking.Frontend",
1818
"customizations": {
1919
"vscode": {
2020
"extensions": [

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,4 @@ backend tests: `dotnet test` from repo root (xUnit)
174174

175175
These are ran in the .github\workflows\ci.yml pipeline on every PR
176176

177-
in the devcontainer I had to use
178-
`curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarn-archive-keyring.gpg && apt-get update`
179-
180-
and `npx playwright install-deps` to get the tests working.
181177

src/BikeTracking.AppHost/AppHost.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
var builder = DistributedApplication.CreateBuilder(args);
22

33
// Local SQL Server database for development
4-
var database = builder.AddSqlServer("sql").AddDatabase("biketracking");
4+
// var database = builder.AddSqlServer("sql").AddDatabase("biketracking");
5+
// TODO https://aspire.dev/integrations/databases/sqlite/sqlite-get-started/?lang=csharp
6+
//var sqlite = builder.AddSqlite("biketracking.db").AddDatabase("biketracking");
57

68
// API logs include outbox worker diagnostics for user-registration event publishing.
79
// Check Aspire service logs for entries from OutboxPublisherService and UserRegisteredPublisher.
810
var apiService = builder
911
.AddProject<Projects.BikeTracking_Api>("api")
10-
.WithReference(database)
12+
//.WithReference(database)
1113
.WithHttpHealthCheck("/health")
1214
.WithExternalHttpEndpoints();
1315

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4874

0 commit comments

Comments
 (0)