-
Notifications
You must be signed in to change notification settings - Fork 38
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 #237 from ComputerScienceHouse/develop
Version 3.2.0
- Loading branch information
Showing
63 changed files
with
604 additions
and
333 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,10 @@ | ||
Dockerfile | ||
.dockerignore | ||
.gitignore | ||
.nvmrc | ||
node_modules | ||
assets/dist | ||
assets/prod | ||
LICENSE | ||
README.md | ||
|
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
Validating CODEOWNERS rules …
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 @@ | ||
* @ComputerScienceHouse/schedulemaker-maintainers |
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,27 @@ | ||
name: Node.js Checks | ||
|
||
on: | ||
push: | ||
branches: [ master, develop ] | ||
pull_request: | ||
branches: [ master, develop ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [10.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm install | ||
- run: npm run lint | ||
- run: npm run typecheck | ||
- run: npm run build |
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,24 @@ | ||
name: PHP Checks | ||
|
||
on: | ||
push: | ||
branches: [ master, develop ] | ||
pull_request: | ||
branches: [ master, develop ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate | ||
|
||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress --no-suggest --ignore-platform-reqs | ||
|
||
- name: Check PHP Syntax | ||
run: if find . -name "*.php" ! -path "./vendor/*" -exec php -l {} 2>&1 \; | grep "syntax error, unexpected"; then exit 1; fi |
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 was deleted.
Oops, something went wrong.
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,30 +1,71 @@ | ||
FROM php:7.1-apache | ||
FROM node:10-buster-slim as builder | ||
LABEL author="Devin Matte <[email protected]>" | ||
|
||
WORKDIR /usr/src/schedule | ||
COPY package.json ./ | ||
|
||
RUN npm install | ||
|
||
COPY package.json tsconfig.json gulpfile.js ./ | ||
COPY assets ./assets | ||
RUN npm run-script build | ||
|
||
|
||
FROM php:7.3-apache as php-setup | ||
LABEL author="Devin Matte <[email protected]>" | ||
|
||
RUN echo "deb-src http://deb.debian.org/debian buster main" >> /etc/apt/sources.list | ||
|
||
RUN apt-get -yq update && \ | ||
apt-get -yq install gnupg libmagickwand-dev git gcc make autoconf libc-dev pkg-config --no-install-recommends | ||
apt-get -yq install \ | ||
gnupg \ | ||
libmagickwand-dev \ | ||
git \ | ||
gcc \ | ||
make \ | ||
autoconf \ | ||
libc-dev \ | ||
pkg-config \ | ||
build-essential \ | ||
libx11-dev \ | ||
libxext-dev \ | ||
zlib1g-dev \ | ||
libpng-dev \ | ||
libjpeg-dev \ | ||
libfreetype6-dev \ | ||
libxml2-dev \ | ||
unzip \ | ||
wget \ | ||
--no-install-recommends | ||
|
||
RUN apt-get -yq build-dep imagemagick | ||
|
||
RUN wget https://github.com/ImageMagick/ImageMagick6/archive/6.9.11-22.tar.gz && \ | ||
tar -xzvf 6.9.11-22.tar.gz && \ | ||
cd ImageMagick6-6.9.11-22 && \ | ||
./configure && \ | ||
make && \ | ||
make install && \ | ||
ldconfig /usr/local/lib && \ | ||
make check | ||
|
||
RUN docker-php-ext-install mysqli && \ | ||
yes '' | pecl install imagick && docker-php-ext-enable imagick | ||
|
||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | ||
|
||
|
||
FROM php-setup | ||
LABEL author="Devin Matte <[email protected]>" | ||
|
||
COPY apache-config.conf /etc/apache2/sites-enabled/000-default.conf | ||
|
||
RUN a2enmod rewrite && a2enmod headers && a2enmod expires && \ | ||
sed -i '/Listen/{s/\([0-9]\+\)/8080/; :a;n; ba}' /etc/apache2/ports.conf && \ | ||
chmod og+rwx /var/lock/apache2 && chmod -R og+rwx /var/run/apache2 | ||
|
||
COPY . /var/www/html | ||
|
||
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \ | ||
&& apt-get -yq update \ | ||
&& apt-get -yq install nodejs --no-install-recommends \ | ||
&& npm install \ | ||
&& npm run-script build \ | ||
&& apt-get -yq remove nodejs \ | ||
&& apt-get -yq clean all \ | ||
&& rm -rf node_modules | ||
COPY --from=builder /usr/src/schedule/assets/prod /var/www/html/assets/prod | ||
|
||
RUN composer install | ||
|
||
|
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.