Skip to content

Commit 42b7b3d

Browse files
wip
Signed-off-by: tobiasKaminsky <[email protected]>
1 parent 2399806 commit 42b7b3d

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

.github/workflows/configNC_master.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010

1111
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
12+
export NVM_DIR="$HOME/.nvm"
13+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
14+
1215
source ~/.bashrc; nvm install node
1316

1417
php /var/www/html/occ log:manage --level warning

.github/workflows/configServer.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# SPDX-License-Identifier: MIT
77
#
88

9+
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
910
apt-get update && apt-get install -y composer
1011
mkdir /var/www/.nvm /var/www/.npm
1112
touch /var/www/.bashrc

scripts/createDockerTestContainer.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
# Nextcloud Android Library
4+
#
5+
# SPDX-FileCopyrightText: 2024 Tobias Kaminsky <[email protected]>
6+
# SPDX-License-Identifier: MIT
7+
#
8+
9+
if [[ $# -ne 1 ]]; then
10+
echo "please specify stable29 or master as first parameter"
11+
exit
12+
fi
13+
14+
docker stop testNC
15+
docker rm testNC
16+
docker run --name=testNC ghcr.io/nextcloud/continuous-integration-shallow-server:latest &
17+
sleep 60
18+
19+
docker cp ../.github/workflows/configServer.sh testNC:/tmp/
20+
docker exec testNC chmod +x /tmp/configServer.sh
21+
docker exec testNC /tmp/configServer.sh $1
22+
docker cp ../.github/workflows/configNC_$1.sh testNC:/tmp/
23+
docker exec testNC chmod +x /tmp/configNC_$1.sh
24+
docker exec --user www-data testNC /tmp/configNC_$1.sh
25+
26+
echo "Docker IP Address is:"
27+
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' testNC

0 commit comments

Comments
 (0)