Skip to content
This repository was archived by the owner on Nov 16, 2020. It is now read-only.

Commit 295f40c

Browse files
committed
Docker configuration: Upgraded npm + Removed phantomjs + Added hostname alias for nginx
1 parent adf9d5d commit 295f40c

File tree

4 files changed

+23
-22
lines changed

4 files changed

+23
-22
lines changed

docker-compose.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ services:
4242
working_dir: /var/www
4343
links:
4444
- php-fpm:phpFpm
45+
networks:
46+
default:
47+
aliases:
48+
- basis.audith.org
49+
selenium-chrome:
50+
container_name: selenium-chrome
51+
image: selenium/standalone-chrome-debug
52+
selenium-firefox:
53+
container_name: selenium-firefox
54+
image: selenium/standalone-firefox-debug
4555
dev-env:
4656
container_name: dev-env
4757
build:
@@ -56,6 +66,8 @@ services:
5666
- postgres
5767
- redis
5868
- nginx
69+
- selenium-chrome
70+
- selenium-firefox
5971
environment:
6072
XDEBUG_CONFIG: "remote_host=172.18.0.1"
6173
REDIS_PORT: 6379

readme.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
[![Code Quality](https://scrutinizer-ci.com/g/AudithSoftworks/Basis/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/AudithSoftworks/Basis)
66
[![Coverage](https://scrutinizer-ci.com/g/AudithSoftworks/Basis/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/AudithSoftworks/Basis)
77

8-
[![Build Status](https://saucelabs.com/browser-matrix/shehi.svg)](https://saucelabs.com/beta/builds/299efd0fba8a43a9af0f17f96b9818f1)
9-
108
[![Latest Stable Version](https://img.shields.io/packagist/v/audithsoftworks/basis.svg?maxAge=2592000?style=plastic)](https://packagist.org/packages/audithsoftworks/basis)
119
![License](https://img.shields.io/github/license/AudithSoftworks/Basis.svg?maxAge=2592000?style=plastic)
1210
[![Contributors](https://img.shields.io/github/contributors/AudithSoftworks/Basis.svg?maxAge=2592000?style=plastic)](https://github.com/AudithSoftworks/Basis)
@@ -28,7 +26,7 @@ Audith Basis is an enhanced version of Laravel framework, a feature list for whi
2826
* [Front-end/UI] _Back-end control panel_ - comes with built-in control panel, featuring sample pages for you to expand upon.
2927
* [Front-end/UI] _Custom web-fonts, web typography support_ - build and use your own web-fonts with included toolset, from any TTF/OTF fontsets.
3028
* [Front-end/UI] _Webpack support_ - build all web assets with Webpack.
31-
* [DevOps/CI/CD] _Docker support_ - fully Dockerized package with pre-built PHP 5.6 and 7.0 containers.
29+
* [DevOps/CI/CD] _Docker support_ - fully Dockerized package with pre-built PHP-7 containers.
3230

3331
### Installation
3432

@@ -37,10 +35,9 @@ Audith Basis is an enhanced version of Laravel framework, a feature list for whi
3735
I have included a build script in ```./storage/scripts/dev-env/build.sh``` inside of which you can see steps necessary to spin up desired Docker configuration and prepare your development environment. Steps involved are:
3836

3937
1. Build or pull necessary Docker containers.
40-
2. Start your desired Docker-Compose configuration (any of: PHP 5.6 or 7.0).
41-
3. Update your ```/etc/hosts``` file to point to the primary container in your Docker configuration - generally ```php_XXX``` is the primary container, which is linked to ```php_XXX-fpm``` and other machines.
42-
4. Create ```.env``` file, containing your environmental variables.
43-
5. Switch into the primary container environment, to start building your environment (Note: before doing so, please read the important note in ```build.sh``` file!):
38+
2. Start your Docker-Compose configuration.
39+
3. Create ```.env``` file, containing your environmental variables.
40+
4. Switch into the primary container environment, to start building your environment (Note: before doing so, please read the important note in ```build.sh``` file!):
4441
1. Install Sauce Connect and start it as a daemon.
4542
2. Install NPM dependencies.
4643
3. Install ```woff-2``` and it's submodules; and build them (used to build custom web-fonts).

storage/build/scripts/dev-env/build.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/usr/bin/env bash
22

33
#docker build -f storage/build/scripts/nginx/Dockerfile -t audithsoftworks/basis:nginx .
4-
#docker build -f storage/build/scripts/php_5.6/Dockerfile -t audithsoftworks/basis:php_5.6 .;
5-
#docker build -f storage/build/scripts/php_5.6-fpm/Dockerfile -t audithsoftworks/basis:php_5.6-fpm .;
64
#docker build -f storage/build/scripts/php_7/Dockerfile -t audithsoftworks/basis:php_7 .;
75
#docker build -f storage/build/scripts/php_7-fpm/Dockerfile -t audithsoftworks/basis:php_7-fpm .;
86

@@ -12,8 +10,6 @@ docker-compose build
1210
docker-compose down;
1311
docker-compose up -d;
1412
docker-compose ps;
15-
docker exec dev-env \
16-
/bin/bash -c "echo $(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' nginx) basis.audith.org | sudo tee -a /etc/hosts";
1713

1814
test -f .env || cat .env.example | tee .env > /dev/null 2>&1;
1915

storage/build/scripts/php/Dockerfile

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -94,21 +94,21 @@ RUN php -i | grep -i redis
9494
# Install Node
9595
RUN set -ex \
9696
&& for key in \
97-
9554F04D7259F04124DE6B476D5A82AC7E37093B \
9897
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
99-
0034A06D9D9B0064CE8ADF6BF1747F4AD2306D93 \
10098
FD3A5288F042B6850C66B31F09FE44734EB7990E \
10199
71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \
102100
DD8F2338BAE7501E3DD5AC78C273792F7D83545D \
103-
B9AE9905FFD7803F25714661B63B535A4C206CA9 \
104101
C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \
102+
B9AE9905FFD7803F25714661B63B535A4C206CA9 \
103+
56730D5401028683275BD23C23EFEFE93C4CFFFE \
104+
77984A986EBC2AA786BC0F66B01FBB92821C587A \
105105
; do \
106-
gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key"; \
106+
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" ; \
107107
done
108108

109109
ENV NPM_CONFIG_LOGLEVEL info
110-
ENV NODE_VERSION 6.11.4
111-
ENV NPM_VERSION 4
110+
ENV NODE_VERSION 8.9.1
111+
ENV NPM_VERSION 5
112112

113113
RUN curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz" \
114114
&& curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \
@@ -119,18 +119,14 @@ RUN curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-
119119
&& rm "node-v$NODE_VERSION-linux-x64.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \
120120
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs \
121121
&& npm install -g npm@$NPM_VERSION \
122-
&& npm cache clear \
123122
&& rm -rf /tmp/npm-*
124123

125124
# Install Node global dependencies
126-
RUN npm install -g ttf2eot jshint phantomjs-prebuilt
125+
RUN npm install -g ttf2eot jshint
127126

128127
# Port for node --inspect
129128
EXPOSE 9229
130129

131-
# Port for our PhantomJs Ghost driver
132-
EXPOSE 25852
133-
134130
# Clean-up
135131
RUN apt-get clean \
136132
&& apt-get autoremove -y \

0 commit comments

Comments
 (0)