diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e8d0cf1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM php:8.3-fpm + +ARG PUID=1000 +ARG PGID=1000 + +RUN apt-get update \ + && apt-get install -y --no-install-recommends ca-certificates git openssh-client \ + && rm -rf /var/lib/apt/lists/* + +RUN groupmod -o -g "${PGID}" www-data \ + && usermod -o -u "${PUID}" -g www-data www-data + +RUN { \ + echo 'upload_max_filesize = 16M'; \ + echo 'post_max_size = 20M'; \ + } > /usr/local/etc/php/conf.d/uploads.ini + +RUN docker-php-ext-install pdo pdo_mysql \ No newline at end of file diff --git a/ProjectKiln/app/test.php b/ProjectKiln/app/test.php new file mode 100644 index 0000000..fbdf709 --- /dev/null +++ b/ProjectKiln/app/test.php @@ -0,0 +1 @@ +lol \ No newline at end of file diff --git a/ProjectKiln/index.php b/ProjectKiln/index.php new file mode 100644 index 0000000..e1f3106 --- /dev/null +++ b/ProjectKiln/index.php @@ -0,0 +1 @@ +Hello World. \ No newline at end of file diff --git a/default.conf b/default.conf new file mode 100644 index 0000000..ccfa814 --- /dev/null +++ b/default.conf @@ -0,0 +1,19 @@ +server { + listen 80; + server_name _; + client_max_body_size 20M; + + root /var/www/ProjectKiln; + index index.php index.html; + + location / { + try_files $uri $uri/ /index.php?$query_string; + } + + location ~ \.php$ { + fastcgi_pass php:9000; + fastcgi_index index.php; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + } +} \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..bc95fed --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,55 @@ +services: + web: + image: nginx:alpine + container_name: projectKiln-nginx + ports: + - "5700:80" + volumes: + - ./:/var/www + - ./default.conf:/etc/nginx/conf.d/default.conf + depends_on: + - php + restart: unless-stopped + + php: + build: + context: . + args: + PUID: ${PUID:-1000} + PGID: ${PGID:-1000} + container_name: projectKiln-php + volumes: + - ./:/var/www + restart: unless-stopped + + mysql: + image: mysql:8.4 + container_name: projectKiln-mysql + environment: + MYSQL_ROOT_PASSWORD: demo1234. + MYSQL_DATABASE: project_kiln_db + MYSQL_USER: user + MYSQL_PASSWORD: demo1234 + command: + [ + "--character-set-server=utf8mb4", + "--collation-server=utf8mb4_0900_bin" + ] + volumes: + - mysql_data:/var/lib/mysql + restart: unless-stopped + + phpmyadmin: + image: phpmyadmin:latest + container_name: projectKiln-phpmyadmin + ports: + - "5710:80" + environment: + PMA_HOST: mysql + PMA_PORT: 3306 + depends_on: + - mysql + restart: unless-stopped + +volumes: + mysql_data: diff --git a/raw-resources/images_task_priority/1_critical.svg b/raw-resources/images_task_priority/1_critical.svg new file mode 100644 index 0000000..497304e --- /dev/null +++ b/raw-resources/images_task_priority/1_critical.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/raw-resources/images_task_priority/2_heigh.svg b/raw-resources/images_task_priority/2_heigh.svg new file mode 100644 index 0000000..2574d52 --- /dev/null +++ b/raw-resources/images_task_priority/2_heigh.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/raw-resources/images_task_priority/3_medium.svg b/raw-resources/images_task_priority/3_medium.svg new file mode 100644 index 0000000..f18ff16 --- /dev/null +++ b/raw-resources/images_task_priority/3_medium.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/raw-resources/images_task_priority/4_low.svg b/raw-resources/images_task_priority/4_low.svg new file mode 100644 index 0000000..2089568 --- /dev/null +++ b/raw-resources/images_task_priority/4_low.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/raw-resources/images_task_priority/5_trivial.svg b/raw-resources/images_task_priority/5_trivial.svg new file mode 100644 index 0000000..97015ba --- /dev/null +++ b/raw-resources/images_task_priority/5_trivial.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/raw-resources/images_task_types/bug.svg b/raw-resources/images_task_types/bug.svg new file mode 100644 index 0000000..5517371 --- /dev/null +++ b/raw-resources/images_task_types/bug.svg @@ -0,0 +1,37 @@ + + + + + + + diff --git a/raw-resources/images_task_types/improvement.svg b/raw-resources/images_task_types/improvement.svg new file mode 100644 index 0000000..caee7f4 --- /dev/null +++ b/raw-resources/images_task_types/improvement.svg @@ -0,0 +1,37 @@ + + + + + + + diff --git a/raw-resources/images_task_types/new_feature.svg b/raw-resources/images_task_types/new_feature.svg new file mode 100644 index 0000000..20d5ff0 --- /dev/null +++ b/raw-resources/images_task_types/new_feature.svg @@ -0,0 +1,37 @@ + + + + + + + diff --git a/raw-resources/images_task_types/task.svg b/raw-resources/images_task_types/task.svg new file mode 100644 index 0000000..e73f7d5 --- /dev/null +++ b/raw-resources/images_task_types/task.svg @@ -0,0 +1,37 @@ + + + + + + + diff --git a/raw-resources/images_task_types/unknown.svg b/raw-resources/images_task_types/unknown.svg new file mode 100644 index 0000000..ccf1118 --- /dev/null +++ b/raw-resources/images_task_types/unknown.svg @@ -0,0 +1,37 @@ + + + + + + + diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..ad545e0 --- /dev/null +++ b/start.sh @@ -0,0 +1,3 @@ +sudo docker compose down +sudo PUID=$(id -u) PGID=$(id -g) docker compose up -d --build +git config --local credential.helper "store --file .git/.git-credentials" \ No newline at end of file diff --git a/stop.sh b/stop.sh new file mode 100644 index 0000000..0796ddd --- /dev/null +++ b/stop.sh @@ -0,0 +1 @@ +sudo docker compose down \ No newline at end of file