-
Notifications
You must be signed in to change notification settings - Fork 8
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 #7 from mhzawadi/dev
Dev
- Loading branch information
Showing
6 changed files
with
62 additions
and
51 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,26 @@ | ||
name: build our image for dev | ||
|
||
on: | ||
push: | ||
branches: dev | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout code | ||
uses: actions/checkout@v2 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- name: install buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Available platforms | ||
run: echo ${{ steps.buildx.outputs.platforms }} | ||
- name: login to docker hub | ||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin | ||
- name: build the image | ||
run: | | ||
docker buildx build --push \ | ||
--tag mhzawadi/invoiceplane:dev \ | ||
--platform linux/amd64,linux/arm64,linux/arm/v7 . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
FROM alpine:3.13.6 | ||
FROM alpine:3.14 | ||
MAINTAINER Matthew Horwood <[email protected]> | ||
|
||
RUN apk update \ | ||
&& apk add nginx php7-fpm php7-curl php7-dom php7-xml php7-xmlwriter \ | ||
php7-tokenizer php7-simplexml php7-gd php7-gmp php7-gettext php7-pcntl \ | ||
php7-mysqli php7-sockets php7-ctype php7-pecl-mcrypt php7-xmlrpc \ | ||
php7-session composer \ | ||
php7-session composer curl\ | ||
&& rm -f /var/cache/apk/* \ | ||
&& mkdir -p /var/www/html/ \ | ||
&& mkdir -p /run/nginx; | ||
|
@@ -29,6 +29,7 @@ RUN unzip /tmp/${IP_VERSION}.zip && \ | |
chmod +x /config/start.sh; \ | ||
cp /config/php.ini /etc/php7/php.ini && \ | ||
cp /config/php_fpm_site.conf /etc/php7/php-fpm.d/www.conf; \ | ||
cp /config/nginx_site.conf /etc/nginx/http.d/default.conf; \ | ||
chown nobody:nginx /var/www/html/* -R; | ||
|
||
VOLUME /var/www/html/uploads | ||
|
@@ -37,5 +38,5 @@ ENTRYPOINT ["/config/start.sh"] | |
CMD ["nginx", "-g", "daemon off;"] | ||
|
||
## Health Check | ||
HEALTHCHECK --interval=5m --timeout=3s --start-period=5s \ | ||
HEALTHCHECK --interval=1m --timeout=3s --start-period=5s \ | ||
CMD curl -f http://127.0.0.1/index.php || exit 1 |
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