diff --git a/.docker/Dockerfile b/.docker/Dockerfile new file mode 100644 index 0000000..22ad624 --- /dev/null +++ b/.docker/Dockerfile @@ -0,0 +1,36 @@ +FROM php:8.1-alpine + +# Optional, force UTC as server time +RUN echo "UTC" > /etc/timezone + +RUN apk add --no-cache git curl sqlite curl-dev +RUN docker-php-ext-configure curl && docker-php-ext-install curl +RUN docker-php-ext-install opcache && docker-php-ext-enable opcache +RUN docker-php-ext-install pcntl +RUN apk add --no-cache libzip-dev && docker-php-ext-configure zip && docker-php-ext-install zip + +RUN apk --no-cache add pcre-dev ${PHPIZE_DEPS} +RUN pecl install xhprof + +RUN docker-php-ext-enable xhprof + +ARG CACHEBUST=1 + +# Install Composer +RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer + +WORKDIR /app + +ARG CACHEBUST=2 + +ENV COMPOSER_ALLOW_SUPERUSER=1 + +RUN git clone https://github.com/buggregator/examples.git /app +RUN composer install + +RUN chmod 0777 storage -R +RUN chmod 0777 bootstrap -R + +EXPOSE 8000 + +CMD php artisan serve --host=0.0.0.0 diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..a26fed8 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +# These are supported funding model platforms + +patreon: butschster diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..94bcf6b --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,47 @@ +name: Docker Image CI + +on: + release: + types: + - created + +jobs: + build-release: + if: "!github.event.release.prerelease" + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: 'Get Previous tag' + id: previoustag + uses: "WyriHaximus/github-action-get-previous-tag@v1" + with: + fallback: v0.1 + + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ secrets.GHCR_LOGIN }} + password: ${{ secrets.GHCR_PASSWORD }} + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v2 + + - name: Build and push + id: docker_build + uses: docker/build-push-action@v3 + with: + context: ./ + platforms: linux/amd64 + file: ./.docker/Dockerfile + push: true + build-args: | + APP_VERSION=${{ steps.previoustag.outputs.tag }} + tags: + ghcr.io/${{ github.repository }}:latest, ghcr.io/${{ github.repository }}:${{ steps.previoustag.outputs.tag }} diff --git a/public/app.css b/public/app.css index 1cc29ee..c720285 100644 --- a/public/app.css +++ b/public/app.css @@ -5,7 +5,6 @@ } .device-desktop, .device-desktop > div { - border-radius: .375rem; width: 100% } diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index afb4bf8..f072275 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -37,6 +37,10 @@ class="text-lg font-bold hover:text-gray-400"> transform="scale(64)" /> + + + + @@ -67,7 +71,7 @@ class="text-lg font-bold hover:text-gray-400"> -
+
@@ -76,15 +80,15 @@ class="text-lg font-bold hover:text-gray-400">
-
+
@foreach($buttonGroups as $group => $data) -
-

+
+

{{ $data['title'] ?? \Illuminate\Support\Str::studly($group) }}

@if(isset($data['description'])) -

+

@endif @@ -101,12 +105,12 @@ class="border bg-blue-100 hover:bg-blue-200 font-bold text-xs text-blue-800 px-3
@foreach($data['events'] as $type => $buttons) @if($type !== 'common') -

+

{{ \Illuminate\Support\Str::studly($type) }}

@endif -
+
@foreach($buttons as $button) @@ -141,7 +145,7 @@ class="border bg-blue-100 hover:bg-blue-200 font-bold text-xs text-blue-800 px-3
-
+

How to run?

@@ -151,7 +155,7 @@ class="border bg-blue-100 hover:bg-blue-200 font-bold text-xs text-blue-800 px-3

- + docker run -p 8000:8000 -p 1025:1025 -p 9912:9912 -p 9913:9913 ghcr.io/buggregator/server:latest
@@ -165,13 +169,12 @@ class="border bg-gray-100 hover:bg-gary-200 font-bold text-gary-800 px-5 py-2 ro
-