-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #941 Testing: Manual testing - building and running demo_server test cases locally. This is not currently covered by CI tests.
- Loading branch information
Showing
3 changed files
with
39 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,26 @@ | ||
FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine | ||
|
||
COPY ./compiler /RESTler/compiler | ||
COPY ./restler /RESTler/restler | ||
|
||
#Get the source code for the engine, and | ||
#copy source code to the image | ||
#RESTler Python dependency | ||
RUN apk add --no-cache python3 | ||
RUN python3 -m ensurepip | ||
RUN pip3 install --upgrade pip | ||
RUN pip3 install requests | ||
RUN pip3 install applicationinsights | ||
COPY ./engine /RESTler/engine | ||
RUN python3 -m compileall -b /RESTler/engine | ||
COPY ./resultsAnalyzer /RESTler/resultsAnalyzer | ||
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS builder | ||
|
||
RUN apk add --no-cache python3 py3-pip | ||
|
||
COPY src ./src | ||
COPY restler ./restler | ||
COPY build-restler.py . | ||
|
||
RUN python3 build-restler.py --dest_dir /build | ||
|
||
RUN python3 -m compileall -b /build/engine | ||
|
||
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS target | ||
|
||
RUN apk add --no-cache python3 py3-pip | ||
|
||
# Create a virtual environment | ||
RUN python3 -m venv /venv | ||
|
||
# Activate the virtual environment and install packages | ||
RUN /venv/bin/pip install applicationinsights requests | ||
|
||
# Ensure the virtual environment is activated by default | ||
ENV PATH="/venv/bin:$PATH" | ||
|
||
COPY --from=builder /build /RESTler |