Skip to content

Commit 3c1f52d

Browse files
authored
Merge pull request #222 from mati75/frog
Dodanie rzeczy dla froga
2 parents 559781a + af70364 commit 3c1f52d

File tree

5 files changed

+32
-8
lines changed

5 files changed

+32
-8
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: CI
66
on:
77
# Triggers the workflow on push or pull request events but only for the main branch
88
push:
9-
branches: [ main ]
9+
branches: [ frog ]
1010
pull_request:
1111
paths:
1212
- scripts/*.sh
@@ -19,7 +19,7 @@ jobs:
1919
# This workflow contains a single job called "build"
2020
build:
2121
# The type of runner that the job will run on
22-
runs-on: ubuntu-latest
22+
runs-on: alpine-latest
2323

2424
# Steps represent a sequence of tasks that will be executed as part of the job
2525
steps:

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: Test modified scripts
33
on:
44
push:
55
branches:
6-
- main
6+
- frog
77
pull_request:
88
branches:
9-
- main
9+
- frog
1010

1111
jobs:
1212
run-test-scripts:
13-
runs-on: ubuntu-latest
13+
runs-on: alpine-latest
1414
steps:
1515
- name: Checkout generator repository
1616
uses: actions/checkout@v1
@@ -20,4 +20,4 @@ jobs:
2020
run: |
2121
chmod +x tests/execute_new_and_modified_scripts.sh
2222
sudo tests/execute_new_and_modified_scripts.sh
23-
exit $?
23+
exit $?

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: CI
66
on:
77
# Triggers the workflow on push or pull request events but only for the main branch
88
push:
9-
branches: [ main ]
9+
branches: [ frog ]
1010
pull_request:
1111
paths:
1212
- scripts/*.sh
@@ -19,7 +19,7 @@ jobs:
1919
# This workflow contains a single job called "build"
2020
build:
2121
# The type of runner that the job will run on
22-
runs-on: ubuntu-latest
22+
runs-on: alpine-latest
2323

2424
# Steps represent a sequence of tasks that will be executed as part of the job
2525
steps:

scripts/install_LAMP.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
apk update
3+
apk add apache2 apache2-utils php83-apache2 php83-mysqli php83-bcmath php83-simplexml php83-zip php83-pear php83-xml php83-curl php83-mbstring php83-pdo_mysql php83-pdo
4+
rc-update add apache2
5+
6+
chown -R frog:frog /var/www/html
7+
8+
sed -i 's@localhost/htdocs@html@' /etc/apache2/httpd.conf
9+
sed -i 's@AllowOverride.*@AllowOverride all@' /etc/apache2/httpd.conf
10+
sed -i "s@StartServers.*@StartServers\t1@" /etc/apache2/conf.d/mpm.conf
11+
sed -i "s@MaxSpareServers.*@MaxSpareServers\t3@" /etc/apache2/conf.d/mpm.conf
12+
sed -i "s@MinSpareServers.*@MinSpareServers\t1@" /etc/apache2/conf.d/mpm.conf
13+
sed -i "s@MaxRequestWorkers.*@MaxRequestWorkers\t10@" /etc/apache2/conf.d/mpm.conf
14+
sed -i "s@MaxConnectionsPerChild.*@MaxConnectionsPerChild\t50@" /etc/apache2/conf.d/mpm.conf
15+
16+
service apache2 start
17+
echo -e "\n\nPliki strony wrzuc do /var/www/html\n\n"
18+
cat /root/mysql.txt

scripts/install_docker.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
apk add docker
3+
rc-update add docker
4+
service docker start
5+
sleep 3
6+
docker run hello-world

0 commit comments

Comments
 (0)