Skip to content

Commit

Permalink
Update README and Dockerfile for improved Docker run instructions
Browse files Browse the repository at this point in the history
Enhanced README.md to include precise Docker Hub link and usage command. Updated Dockerfile to expose correct ports and use Release build configuration for better performance.
  • Loading branch information
vanUbor committed Aug 28, 2024
1 parent 468edf2 commit 6c537d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
USER $APP_UID
WORKDIR /app
EXPOSE 8080
EXPOSE 8081
EXPOSE 5001
EXPOSE 5000

FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Debug
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["WireMock/WireMock.csproj", "WireMock/"]
RUN dotnet restore "WireMock/WireMock.csproj"
Expand All @@ -15,7 +14,7 @@ WORKDIR "/src/WireMock"
RUN dotnet build "WireMock.csproj" -c $BUILD_CONFIGURATION -o /app/build

FROM build AS publish
ARG BUILD_CONFIGURATION=Debug
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "WireMock.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false

FROM base AS final
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ In its current state it is super limited in its functionality but will grow cont
### Get SSWMUI

First you must download the [latest](https://github.com/vanUbor/Wiremock/releases/latest) release
directly form GitHub or download the image from the [Docker Hub](https://hub.docker.com/) (Docker image coming soon)
directly form GitHub or download the image from the [Docker Hub](https://hub.docker.com/repository/docker/vanubor42/sswmui/general)
(`docker pull vanUbor42/sswmui:latest`)

### Run

Just start the application (either your locally downloaded Wiremock.exe or run the docker image)
Just start the application, either your locally downloaded Wiremock.exe or run the docker image
`docker run --name mySSWMUI -e ASPNETCORE_HTTP_PORTS=5000 -p 5000:5000 -p 8081:8081 vanubor42/sswmui`
and browse to the start page (by default <http://localhost:5000>).
On the start page you can see a list of services. Each service can mock the api calls to a configured web api endpoint.
![startPageScreen.png](.assets/startPageScreen.png)
Expand Down

0 comments on commit 6c537d7

Please sign in to comment.