moved some debug stuff

This commit is contained in:
bom 2021-12-15 11:13:22 +01:00
parent a2735ae9a7
commit e31b9ca74a
2 changed files with 4 additions and 13 deletions

View file

@ -77,12 +77,8 @@ Some steps may take a couple of minutes to be effective, but eventually nextclou
See https://stackoverflow.com/questions/32933174/use-gitlab-ci-to-run-tests-locally See https://stackoverflow.com/questions/32933174/use-gitlab-ci-to-run-tests-locally
This needs to be done in the project root
`docker run -d --name gitlab-runner --restart always -v $PWD:$PWD -v /var/run/docker.sock:/var/run/docker.sock gitlab/gitlab-runner:latest` `docker run -d --name gitlab-runner --restart always -v $PWD:$PWD -v /var/run/docker.sock:/var/run/docker.sock gitlab/gitlab-runner:latest`
`docker exec -it -w $PWD gitlab-runner gitlab-runner exec docker nextcloud-integrationtest --docker-privileged --docker-volumes '/var/run/docker.sock:/var/run/docker.sock'` `docker exec -it -w $PWD gitlab-runner gitlab-runner exec docker nextcloud-integrationtest --docker-privileged --docker-volumes '/var/run/docker.sock:/var/run/docker.sock'`
# TODO
* add possibility to use local certificate in dda-backup backup function
* if ENV_VARIABLE set: use certificate
* get restic password from config

View file

@ -51,14 +51,9 @@ function main()
kubectl exec -t $POD -- bash -c "echo \"$ENDPOINT k3stesthost cloudhost\" >> /etc/hosts" kubectl exec -t $POD -- bash -c "echo \"$ENDPOINT k3stesthost cloudhost\" >> /etc/hosts"
kubectl exec -t $POD -- /usr/local/bin/init.sh kubectl exec -t $POD -- /usr/local/bin/init.sh
# debug
kubectl exec -t $POD -- bash -c "ls -la /var/"
kubectl exec -t $POD -- bash -c "ls -la /var/backups"
kubectl exec -t $POD -- bash -c "ls -la /var/backups/config"
#debug end
date date
echo ================= BACKUP ================= echo ================= BACKUP =================
kubectl exec -t $POD -- ls -l /var/backups/config
kubectl exec -t $POD -- /usr/local/bin/backup.sh kubectl exec -t $POD -- /usr/local/bin/backup.sh
date date