Skip to content

Commit

Permalink
Working docker image for symbol library
Browse files Browse the repository at this point in the history
  • Loading branch information
daghovland committed Dec 2, 2024
1 parent 7100f7c commit c9edc7f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/symbol_translator_tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: dotnet restore ./SymbolLibrary/SymbolLibrary.sln

- name: Copy NOAKADEXPI Symbol library
run: curl -o SymbolLibrary/src/Data/Symbols.xlsm https://github.com/equinor/NOAKADEXPI/raw/refs/heads/main/Symbols.xlsm
run: curl -o SymbolLibrary/src/Data/Symbols.xlsm https://raw.githubusercontent.com/equinor/NOAKADEXPI/main/Symbols.xlsm

- name: Build
run: dotnet build ./SymbolLibrary/SymbolLibrary.sln --no-restore
Expand Down
4 changes: 2 additions & 2 deletions SymbolLibrary/src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
WORKDIR /app

COPY . .
RUN curl -o /app/Data/Symbols.xlsm https://github.com/equinor/NOAKADEXPI/raw/refs/heads/main/Symbols.xlsm
RUN curl -o /app/Data/Symbols.xlsm https://raw.githubusercontent.com/equinor/NOAKADEXPI/main/Symbols.xlsm
RUN dotnet publish -c Release -o out

FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime
WORKDIR /app
COPY --from=build-env /app/out ./
COPY --from=build-env /app/Data/Symbols.xlsm ./Data/Symbols.xlsm

# Set the ASP.NET Core URL to listen on port 8000
# Set the ASP.NET Core URL to listen on port 5000
ENV ASPNETCORE_URLS=http://+:5000

EXPOSE 5000
Expand Down
6 changes: 5 additions & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,8 @@ services:
target: /var/www/html/
depends_on:
rml-mapper:
condition: service_completed_successfully
condition: service_completed_successfully
symbols:
build: ../SymbolLibrary/src
ports:
- 5000:5000

0 comments on commit c9edc7f

Please sign in to comment.