Creates dockerimage that will deploy-and-run from environment args

This commit is contained in:
benbierens 2023-10-31 11:01:10 +01:00
parent 85ad0b414f
commit e87f255f48
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
5 changed files with 32 additions and 5 deletions

View File

@ -93,7 +93,7 @@ namespace Core
{
var response = PostJsonString(route, body);
if (response == null) throw new Exception("Received no response.");
var result = JsonConvert.DeserializeObject<TResponse>(response);
var result = Deserialize<TResponse>(response);
if (result == null) throw new Exception("Failed to deserialize response");
return result;
}, $"HTTO-POST-JSON: {route}");

View File

@ -1,8 +1,9 @@
set -e
replication=5
name=testnamehere
filter=TwoClient
replication=$DNR_REP
name=$DNR_NAME
filter=$DNR_FILTER
duration=$DNR_DURATION
echo "Deploying..."
cd ../../Tools/CodexNetDeployer
@ -45,7 +46,7 @@ do
--filter=$filter \
--cleanup=1 \
--full-container-logs=1 \
--target-duration=172800 # 48 hours
--target-duration=$duration
sleep 30
done

View File

@ -0,0 +1,12 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0
RUN apt-get update && apt-get install -y screen
WORKDIR /app
COPY --chmod=0755 docker/docker-dnr-entrypoint.sh /
COPY ./Tools ./Tools
COPY ./Tests ./Tests
COPY ./Framework ./Framework
COPY ./ProjectPlugins ./ProjectPlugins
ENTRYPOINT ["/docker-dnr-entrypoint.sh"]
CMD ["/bin/bash", "deploy-and-run.sh"]

View File

@ -9,3 +9,12 @@ services:
- KUBECONFIG=/opt/kubeconfig
- LOGPATH=/opt/logs
- RUNNERLOCATION=ExternalToCluster
continuous-test-run:
image: thatbenbierens/dist-tests-deployandrun:initial
environment:
# - CODEXDOCKERIMAGE=imageoverride
- DNR_REP=3
- DNR_NAME=Tryout
- DNR_FILTER=PeernBeer
- DNR_DURATION=172800

View File

@ -0,0 +1,5 @@
#!/bin/bash
echo "Running continuous tests..."
cd /app/Tests/CodexContinuousTests
exec "$@"