@fishawack/lab-env 4.12.0 → 4.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitlab-ci.yml +26 -0
- package/CHANGELOG.md +9 -0
- package/core/1/CHANGELOG.md +6 -1
- package/core/1/Dockerfile +6 -3
- package/core/1/docker-compose.yml +2 -0
- package/core/1/package.json +1 -1
- package/globals.js +2 -0
- package/laravel/8/docker-compose.yml +2 -2
- package/laravel/8/nginx/CHANGELOG.md +4 -0
- package/laravel/8/nginx/nginx.conf +2 -0
- package/laravel/8/nginx/package.json +1 -1
- package/laravel/8/php/CHANGELOG.md +4 -0
- package/laravel/8/php/Dockerfile +3 -0
- package/laravel/8/php/custom.ini +5 -0
- package/laravel/8/php/package.json +1 -1
- package/package.json +1 -1
package/.gitlab-ci.yml
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
stages:
|
|
2
|
+
- test
|
|
3
|
+
|
|
4
|
+
test:
|
|
5
|
+
stage: test
|
|
6
|
+
coverage: '/Code coverage: \d+\.\d+/'
|
|
7
|
+
variables:
|
|
8
|
+
FW_FULL: 1
|
|
9
|
+
before_script:
|
|
10
|
+
# Remove all projects currently on runner
|
|
11
|
+
- find "/home/gitlab-runner/builds/" ! \( -type d \) -not -path "/*/0/${CI_PROJECT_PATH}/*" -not -path "/*/0/${CI_PROJECT_PATH}.tmp/*" -exec rm -rf {} +
|
|
12
|
+
# Remove all empty files now the folders are cleaned out
|
|
13
|
+
- find "/home/gitlab-runner/builds/" -type d -empty -delete
|
|
14
|
+
script:
|
|
15
|
+
# Install
|
|
16
|
+
# - npm ci
|
|
17
|
+
# # Test
|
|
18
|
+
# - npm test
|
|
19
|
+
- echo "hello"
|
|
20
|
+
after_script:
|
|
21
|
+
# Clean docker
|
|
22
|
+
- docker volume rm $(docker volume ls -q) || true
|
|
23
|
+
artifacts:
|
|
24
|
+
expire_in: 2 hrs
|
|
25
|
+
paths:
|
|
26
|
+
- coverage/
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
## Changelog
|
|
2
2
|
|
|
3
|
+
### 4.14.0 (2023-03-02)
|
|
4
|
+
* [Change] Bumped fishawack/lab-env-laravel-8-nginx to 0.1.2
|
|
5
|
+
* [Change] Bumped fishawack/lab-env-laravel-8-php to 0.3.1
|
|
6
|
+
* [Bug] map laravel nginx & php versions correctly
|
|
7
|
+
* [Bug] laravel nginx & php containers now set max upload to 500Mb
|
|
8
|
+
|
|
9
|
+
### 4.13.0 (2023-02-25)
|
|
10
|
+
* [Change] Bumped fishawack/lab-env-core-1 to 1.2.2
|
|
11
|
+
|
|
3
12
|
### 4.12.0 (2023-02-25)
|
|
4
13
|
* [Change] Bumped fishawack/lab-env-core-1 to 1.2.1
|
|
5
14
|
|
package/core/1/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
## Changelog
|
|
2
2
|
|
|
3
|
-
### 1.
|
|
3
|
+
### 1.2.2 (2023-02-25)
|
|
4
|
+
* [fix] set BRANCH and CI_COMMIT_REF_NAME env variables in container
|
|
5
|
+
* [fix] installed git-branch to fetch the current branch for deployment targets
|
|
6
|
+
* [refactor] moved global node module symlinking to alpine image for future use
|
|
7
|
+
|
|
8
|
+
### 1.2.1 (2023-02-25)
|
|
4
9
|
* [fix] install eb cli into root of image rather than root user directory
|
|
5
10
|
* [perf] dont recurse and dont change group of node_modules to speed up command
|
|
6
11
|
* [refactor] set node git flag without switching user directly in dockerfile
|
package/core/1/Dockerfile
CHANGED
|
@@ -43,6 +43,12 @@ RUN npm install check-dependencies -g
|
|
|
43
43
|
# Install node_modules checker
|
|
44
44
|
RUN npm install are-you-es5 -g
|
|
45
45
|
|
|
46
|
+
# Install git branch fetcher
|
|
47
|
+
RUN npm install git-branch -g
|
|
48
|
+
|
|
49
|
+
# Link root global node_modules to ~/.node_modules
|
|
50
|
+
RUN ln -s /usr/local/lib/node_modules/ /home/node/.node_modules
|
|
51
|
+
|
|
46
52
|
# Cleanup apt-get install folders
|
|
47
53
|
RUN apt-get clean && \
|
|
48
54
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
@@ -90,9 +96,6 @@ RUN apt-get install -y wine64
|
|
|
90
96
|
# Install watertight
|
|
91
97
|
RUN --mount=type=ssh npm install -g git+ssh://git@bitbucket.org/fishawackdigital/watertight-node-auto.git#v6.0.0
|
|
92
98
|
|
|
93
|
-
# Link root global node_modules to ~/.node_modules
|
|
94
|
-
RUN ln -s /usr/local/lib/node_modules/ /home/node/.node_modules
|
|
95
|
-
|
|
96
99
|
# Cleanup apt-get install folders
|
|
97
100
|
RUN apt-get clean && \
|
|
98
101
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
package/core/1/package.json
CHANGED
package/globals.js
CHANGED
|
@@ -111,6 +111,8 @@ if(process.env.FW_DEV){
|
|
|
111
111
|
// Map versions of images (dont set on FW_DEV as we want to default to latest)
|
|
112
112
|
process.env.FW_CORE_0_VERSION = process.env.FW_CORE_0_VERSION || require('./core/0/package.json').version;
|
|
113
113
|
process.env.FW_CORE_1_VERSION = process.env.FW_CORE_1_VERSION || require('./core/1/package.json').version;
|
|
114
|
+
process.env.FW_LARAVEL_8_PHP_VERSION = process.env.FW_LARAVEL_8_PHP_VERSION || require('./laravel/8/php/package.json').version;
|
|
115
|
+
process.env.FW_LARAVEL_8_NGINX_VERSION = process.env.FW_LARAVEL_8_NGINX_VERSION || require('./laravel/8/nginx/package.json').version;
|
|
114
116
|
}
|
|
115
117
|
|
|
116
118
|
if(platform === 'laravel'){
|
|
@@ -15,7 +15,7 @@ services:
|
|
|
15
15
|
- mysql:/var/lib/mysql
|
|
16
16
|
nginx:
|
|
17
17
|
platform: linux/amd64
|
|
18
|
-
image: fishawack/lab-env-laravel-8-nginx
|
|
18
|
+
image: fishawack/lab-env-laravel-8-nginx:${FW_LARAVEL_8_NGINX_VERSION:-latest}
|
|
19
19
|
networks:
|
|
20
20
|
- default
|
|
21
21
|
volumes:
|
|
@@ -24,7 +24,7 @@ services:
|
|
|
24
24
|
- "${PORT_WEB:-8000}:80"
|
|
25
25
|
php:
|
|
26
26
|
platform: linux/amd64
|
|
27
|
-
image: fishawack/lab-env-laravel-8-php
|
|
27
|
+
image: fishawack/lab-env-laravel-8-php:${FW_LARAVEL_8_PHP_VERSION:-latest}
|
|
28
28
|
init: true
|
|
29
29
|
working_dir: /app
|
|
30
30
|
networks:
|
package/laravel/8/php/Dockerfile
CHANGED
|
@@ -9,6 +9,9 @@ RUN apt-get update && \
|
|
|
9
9
|
# Copy php conf
|
|
10
10
|
COPY ./custom.conf /opt/bitnami/php/etc/custom.conf
|
|
11
11
|
|
|
12
|
+
# Copy custom.ini
|
|
13
|
+
COPY ./custom.ini /usr/local/etc/php/conf.d/custom.ini
|
|
14
|
+
|
|
12
15
|
# Copy ImageMagick policy
|
|
13
16
|
COPY ./policy.xml /etc/ImageMagick-6/policy.xml
|
|
14
17
|
|