-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from OpenPlaceGuide/develop
Develop
- Loading branch information
Showing
52 changed files
with
9,051 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Dockerfile | ||
vendor/ | ||
.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
APP_NAME=Laravel | ||
APP_NAME=map.et | ||
APP_TECHNICAL_CONTACT= | ||
APP_ENV=local | ||
APP_KEY= | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Login to Github Packages | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GHCR_PAT }} | ||
- name: Build the Docker image | ||
if: github.ref == 'refs/heads/opg-master' | ||
run: | | ||
docker build . --file Dockerfile --tag ghcr.io/openplaceguide/opg-pages:latest | ||
docker push ghcr.io/openplaceguide/opg-pages:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
/public/assets/* | ||
/storage/*.key | ||
/vendor | ||
/tests/cypress/screenshots | ||
.env | ||
.env.backup | ||
.env.production | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
FROM composer:2.6.6 as composer | ||
|
||
FROM php:8.1-apache-buster | ||
|
||
RUN apt-get update && apt-get install -y zip | ||
|
||
RUN apt-get -y update \ | ||
&& apt-get install -y libicu-dev \ | ||
&& docker-php-ext-configure intl \ | ||
&& docker-php-ext-install intl | ||
|
||
RUN apt-get install -y \ | ||
libfreetype6-dev \ | ||
libjpeg62-turbo-dev \ | ||
libpng-dev \ | ||
libwebp-dev \ | ||
libxpm-dev \ | ||
zlib1g-dev && \ | ||
docker-php-ext-configure gd --enable-gd --with-webp --with-jpeg \ | ||
--with-xpm --with-freetype && \ | ||
docker-php-ext-install gd | ||
|
||
RUN a2enmod rewrite | ||
|
||
ENV LOG_CHANNEL=stderr | ||
|
||
RUN sed -ri -e 's!/var/www/html!/var/www/html/public!g' /etc/apache2/sites-available/*.conf | ||
RUN sed -ri -e 's!/var/www/!/var/www/html/public!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf | ||
|
||
RUN sed -ri -e 's!^</!<Directory "/var/www/html/public">\nAllowOverride all\n</Directory>\n</!g' /etc/apache2/sites-available/*.conf | ||
|
||
COPY . /var/www/html | ||
RUN chown -R www-data:www-data /var/www/html/storage || true | ||
RUN chown -R www-data:www-data /var/www/html/bootstrap/cache || true | ||
|
||
COPY --from=composer /usr/bin/composer /usr/bin/composer | ||
RUN composer install --no-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.