Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yurvon-screamo committed Aug 20, 2024
1 parent 181fddc commit 37cef0a
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,29 @@ To run the mockup server as a Docker container:

* Install [Docker](https://www.docker.com/get-started "https://www.docker.com/get-started").

## Usage

Configure:
## Configure

* Edit [appsettings.json](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel/endpoints?view=aspnetcore-8.0#configure-endpoints-in-appsettingsjson) and set target listen address:port (default `0.0.0.0:8080`).
* Set "ContentRelativePath" variable to set redfish-mockup data directory (default - `content`).

Run application in debug: `dotnet run`
Or set in env appsettings values.

## Running from Docker Image

Run the container from image:

```bash
docker run -p 8080:8080 -v /path/to/your/content:/app/content ghcr.io/yurvon-screamo/redfish-mockup-server:latest
```

## Build and run

Or build and run build:
Build and run build:

* Build application: `dotnet publish "./dotnet-redfish.csproj" -c Release -o ../release /p:UseAppHost=true`
* Run application: `../release/dotnet-redfish`

Or build and run docker image:
Build and run docker image:

* Build image: `docker build -t dotnet-redfish .`
* Run image: `docker run -p 8080:8080 -it dotnet-redfish`

0 comments on commit 37cef0a

Please sign in to comment.