mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-08 16:33:07 +00:00
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);
|
var response = PostJsonString(route, body);
|
||||||
if (response == null) throw new Exception("Received no response.");
|
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");
|
if (result == null) throw new Exception("Failed to deserialize response");
|
||||||
return result;
|
return result;
|
||||||
}, $"HTTO-POST-JSON: {route}");
|
}, $"HTTO-POST-JSON: {route}");
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
replication=5
|
replication=$DNR_REP
|
||||||
name=testnamehere
|
name=$DNR_NAME
|
||||||
filter=TwoClient
|
filter=$DNR_FILTER
|
||||||
|
duration=$DNR_DURATION
|
||||||
|
|
||||||
echo "Deploying..."
|
echo "Deploying..."
|
||||||
cd ../../Tools/CodexNetDeployer
|
cd ../../Tools/CodexNetDeployer
|
||||||
@ -45,7 +46,7 @@ do
|
|||||||
--filter=$filter \
|
--filter=$filter \
|
||||||
--cleanup=1 \
|
--cleanup=1 \
|
||||||
--full-container-logs=1 \
|
--full-container-logs=1 \
|
||||||
--target-duration=172800 # 48 hours
|
--target-duration=$duration
|
||||||
|
|
||||||
sleep 30
|
sleep 30
|
||||||
done
|
done
|
||||||
|
|||||||
12
docker/deployandrun.Dockerfile
Normal file
12
docker/deployandrun.Dockerfile
Normal 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"]
|
||||||
@ -9,3 +9,12 @@ services:
|
|||||||
- KUBECONFIG=/opt/kubeconfig
|
- KUBECONFIG=/opt/kubeconfig
|
||||||
- LOGPATH=/opt/logs
|
- LOGPATH=/opt/logs
|
||||||
- RUNNERLOCATION=ExternalToCluster
|
- 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
|
||||||
|
|||||||
5
docker/docker-dnr-entrypoint.sh
Normal file
5
docker/docker-dnr-entrypoint.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
echo "Running continuous tests..."
|
||||||
|
cd /app/Tests/CodexContinuousTests
|
||||||
|
exec "$@"
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user