-
Notifications
You must be signed in to change notification settings - Fork 0
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 #70 from medcenter24/release_4.0.0
Release 4.0.0
- Loading branch information
Showing
179 changed files
with
69,709 additions
and
1,287 deletions.
There are no files selected for viewing
File renamed without changes.
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 |
---|---|---|
|
@@ -17,3 +17,4 @@ package-lock.json | |
_ide_helper.php | ||
_ide_helper_models.php | ||
/.phpunit.result.cache | ||
/DevEnvConfig |
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,15 @@ | ||
run: | ||
docker-compose up -d | ||
docker exec -it mc-core-build composer install | ||
docker exec -it mc-core-build yarn && yarn run dev | ||
docker exec -it mc-core-build /usr/local/bin/php artisan serve --port 4043 --host 0.0.0.0 --env APP_CONFIG_PATH=/var/www/html/DevEnvConfig | ||
stop: | ||
docker-compose down | ||
|
||
setup: | ||
docker exec -it mc-core-build /usr/local/bin/php artisan setup:seed | ||
docker exec -it mc-core-build chown 1000:1000 -R /var/www/html/DevEnvConfig | ||
docker exec -it mc-core-build chmod +rw -R /var/www/html/DevEnvConfig | ||
|
||
test: | ||
docker exec -it mc-core-build /usr/local/bin/php artisan test |
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,42 @@ | ||
FROM php:8.0-fpm | ||
|
||
# Dependencies needed for packages downstream | ||
RUN apt-get update && apt-get install -y libpng-dev libjpeg-dev libpq-dev git zip unzip zlib1g-dev g++ wget fontconfig \ | ||
locales gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 \ | ||
libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 \ | ||
libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 \ | ||
libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils \ | ||
libicu-dev libonig-dev libzip-dev && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN docker-php-ext-configure gd --with-freetype --with-jpeg | ||
|
||
RUN yes | pecl install xdebug | ||
|
||
RUN docker-php-ext-install pdo && \ | ||
docker-php-ext-install gd && \ | ||
docker-php-ext-install exif && \ | ||
docker-php-ext-install zip && \ | ||
docker-php-ext-enable xdebug | ||
|
||
RUN { \ | ||
echo 'xdebug.mode=debug'; \ | ||
echo 'xdebug.discover_client_host = 1'; \ | ||
} >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini | ||
|
||
RUN { \ | ||
echo 'memory_limit=512M'; \ | ||
} >> /usr/local/etc/php/conf.d/docker-php-ext-memory-limit.ini | ||
|
||
# Composer | ||
RUN curl -ksS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer | ||
|
||
# Node + Yarn | ||
RUN curl -sL https://deb.nodesource.com/setup_14.x -o /tmp/nodesource_setup.sh \ | ||
&& bash /tmp/nodesource_setup.sh \ | ||
&& rm /tmp/nodesource_setup.sh \ | ||
&& apt-get install --quiet --yes --no-install-recommends nodejs \ | ||
&& npm install yarn --global | ||
|
||
RUN rm -rf /var/www/html \ | ||
&& chmod 0777 /tmp/ |
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,26 @@ | ||
version: '3.9' | ||
|
||
services: | ||
mc-core-build: | ||
container_name: mc-core-build | ||
build: | ||
context: ./build | ||
environment: | ||
- APP_CONFIG_PATH=/var/www/html/DevEnvConfig/config/generis.conf.php | ||
ports: | ||
- 4043:4043 | ||
networks: | ||
- traefik-public | ||
volumes: | ||
- ..:/var/www/html:cached | ||
working_dir: /var/www/html | ||
labels: | ||
- "traefik.enable=true" | ||
- "traefik.http.routers.mc-core.rule=Host(`core.mc.docker.localhost`)" | ||
- "traefik.http.routers.mc-core.entrypoints=http" | ||
- "traefik.http.routers.mc-core-secure.entrypoints=https" | ||
- "traefik.http.routers.mc-core-secure.rule=Host(`core.mc.docker.localhost`)" | ||
- "traefik.http.routers.mc-core-secure.tls=true" | ||
networks: | ||
traefik-public: | ||
external: true |
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
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.