Creates dockerimage that will deploy-and-run from environment args
This commit is contained in:
parent
85ad0b414f
commit
e87f255f48
|
@ -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}");
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"]
|
|
@ -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
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
echo "Running continuous tests..."
|
||||
cd /app/Tests/CodexContinuousTests
|
||||
exec "$@"
|
||||
|
Loading…
Reference in New Issue