@fishawack/lab-env 4.20.0 → 4.21.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/CHANGELOG.md +5 -0
- package/commands/create/templates/elasticbeanstalk/.ebextensions/apache/auto-ssl.config +24 -0
- package/commands/create/templates/elasticbeanstalk/.ebextensions/misc/alb-http-to-https-redirection.config +40 -0
- package/commands/create/templates/elasticbeanstalk/.ebextensions/misc/enable-https.config +13 -0
- package/commands/create/templates/elasticbeanstalk/.ebextensions/misc/setvars.config +6 -0
- package/commands/create/templates/elasticbeanstalk/.ebextensions/php/ini.config +10 -0
- package/commands/create/templates/elasticbeanstalk/.ebextensions/wordpress/environment.config +3 -0
- package/commands/create/templates/elasticbeanstalk/.ebextensions/wordpress/post-deploy.config +10 -0
- package/commands/create/templates/elasticbeanstalk/.ebextensions/wordpress/software.config +5 -0
- package/commands/create/templates/elasticbeanstalk/.platform/httpd/conf.d/elasticbeanstalk/http-https-redirection.conf +5 -0
- package/commands/create/templates/elasticbeanstalk/.platform/httpd/conf.d/ssl.conf +10 -0
- package/commands/wp.js +2 -2
- package/package.json +1 -1
- package/wordpress/1/php/CHANGELOG.md +3 -0
- package/wordpress/1/php/Dockerfile +0 -5
- package/wordpress/1/php/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
## Changelog
|
|
2
2
|
|
|
3
|
+
### 4.21.0 (2023-05-22)
|
|
4
|
+
* [Feature] added elastic beanstalk config stubs
|
|
5
|
+
* [Change] wp command now prepends vendor path in wordpress@1 and no longer passes path as its found in wp-cli yml
|
|
6
|
+
* [Change] Bumped fishawack/lab-env-wordpress-1-php to 1.1.0
|
|
7
|
+
|
|
3
8
|
### 4.20.0 (2023-05-19)
|
|
4
9
|
* [Feature] added new clients
|
|
5
10
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
files:
|
|
2
|
+
/etc/cron.d/certbot_renew:
|
|
3
|
+
content: "@weekly root certbot renew\n"
|
|
4
|
+
group: root
|
|
5
|
+
mode: "000644"
|
|
6
|
+
owner: root
|
|
7
|
+
|
|
8
|
+
container_commands:
|
|
9
|
+
10_downloadepel:
|
|
10
|
+
command: "wget -r --no-parent -A 'epel-release-*.rpm' https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/"
|
|
11
|
+
20_installepel:
|
|
12
|
+
command: "rpm -Uvh dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-*.rpm --force"
|
|
13
|
+
30_enableepl:
|
|
14
|
+
command: "yum-config-manager --enable epel*"
|
|
15
|
+
40_installcertbot:
|
|
16
|
+
command: "yum install -y certbot"
|
|
17
|
+
50_getcert:
|
|
18
|
+
command: "certbot certonly --debug --non-interactive --email ${EMAIL_LINK} --agree-tos --standalone --expand --domains ${DOMAIN_LINK} --keep-until-expiring --pre-hook \"service httpd stop\""
|
|
19
|
+
60_link:
|
|
20
|
+
command: "ln -sf /etc/letsencrypt/live/$(echo ${DOMAIN_LINK} | cut -d, -f1) /etc/letsencrypt/live/ebcert"
|
|
21
|
+
70_startserver:
|
|
22
|
+
command: "service httpd start"
|
|
23
|
+
80_cleanup:
|
|
24
|
+
command: "rm -rf dl.fedoraproject.org"
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
###################################################################################################
|
|
2
|
+
#### Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
####
|
|
4
|
+
#### Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file
|
|
5
|
+
#### except in compliance with the License. A copy of the License is located at
|
|
6
|
+
####
|
|
7
|
+
#### http://aws.amazon.com/apache2.0/
|
|
8
|
+
####
|
|
9
|
+
#### or in the "license" file accompanying this file. This file is distributed on an "AS IS"
|
|
10
|
+
#### BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
11
|
+
#### License for the specific language governing permissions and limitations under the License.
|
|
12
|
+
###################################################################################################
|
|
13
|
+
|
|
14
|
+
###################################################################################################
|
|
15
|
+
#### This configuration file modifies the default port 80 listener attached to an Application Load Balancer
|
|
16
|
+
#### to automatically redirect incoming connections on HTTP to HTTPS.
|
|
17
|
+
#### This will not work with an environment using the load balancer type Classic or Network.
|
|
18
|
+
#### A prerequisite is that the 443 listener has already been created.
|
|
19
|
+
#### Please use the below link for more information about creating an Application Load Balancer on
|
|
20
|
+
#### the Elastic Beanstalk console.
|
|
21
|
+
#### https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environments-cfg-alb.html#environments-cfg-alb-console
|
|
22
|
+
###################################################################################################
|
|
23
|
+
|
|
24
|
+
Resources:
|
|
25
|
+
AWSEBV2LoadBalancerListener:
|
|
26
|
+
Type: AWS::ElasticLoadBalancingV2::Listener
|
|
27
|
+
Properties:
|
|
28
|
+
LoadBalancerArn:
|
|
29
|
+
Ref: AWSEBV2LoadBalancer
|
|
30
|
+
Port: 80
|
|
31
|
+
Protocol: HTTP
|
|
32
|
+
DefaultActions:
|
|
33
|
+
- Type: redirect
|
|
34
|
+
RedirectConfig:
|
|
35
|
+
Host: "#{host}"
|
|
36
|
+
Path: "/#{path}"
|
|
37
|
+
Port: "443"
|
|
38
|
+
Protocol: "HTTPS"
|
|
39
|
+
Query: "#{query}"
|
|
40
|
+
StatusCode: "HTTP_301"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
container_commands:
|
|
2
|
+
10-db-import:
|
|
3
|
+
command: if [ -f auto-ci-db.sql ]; then vendor/bin/wp db reset --yes; vendor/bin/wp db import auto-ci-db.sql; fi
|
|
4
|
+
leader_only: true
|
|
5
|
+
20-db-remove:
|
|
6
|
+
command: "rm -rf auto-ci-db.sql"
|
|
7
|
+
30-rewrite-flush:
|
|
8
|
+
command: "vendor/bin/wp rewrite flush --hard"
|
|
9
|
+
40-rewrite-flush:
|
|
10
|
+
command: "vendor/bin/wp cli cache clear"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Listen 443
|
|
2
|
+
|
|
3
|
+
<VirtualHost *:443>
|
|
4
|
+
DocumentRoot /var/www/html/wordpress
|
|
5
|
+
|
|
6
|
+
SSLEngine on
|
|
7
|
+
SSLCertificateFile /etc/letsencrypt/live/ebcert/fullchain.pem
|
|
8
|
+
SSLCertificateKeyFile /etc/letsencrypt/live/ebcert/privkey.pem
|
|
9
|
+
SSLCertificateChainFile /etc/letsencrypt/live/ebcert/chain.pem
|
|
10
|
+
</VirtualHost>
|
package/commands/wp.js
CHANGED
|
@@ -12,9 +12,9 @@ module.exports = [
|
|
|
12
12
|
});
|
|
13
13
|
},
|
|
14
14
|
argv => _.up(() => {
|
|
15
|
-
const path = process.env.VERSION_WORDPRESS !== "0" ? '--path=./wordpress' : '';
|
|
16
15
|
const container = process.env.VERSION_WORDPRESS !== "0" ? 'php' : 'wordpress';
|
|
16
|
+
const path = process.env.VERSION_WORDPRESS !== "0" ? 'vendor/bin/' : '';
|
|
17
17
|
|
|
18
|
-
_.command(container,
|
|
18
|
+
_.command(container, `${path}wp ${argv.command.join(' ')} --allow-root`);
|
|
19
19
|
})
|
|
20
20
|
];
|
package/package.json
CHANGED
|
@@ -18,11 +18,6 @@ COPY ./policy.xml /etc/ImageMagick-6/policy.xml
|
|
|
18
18
|
# Add php user
|
|
19
19
|
RUN useradd -m -G www-data -s /bin/bash php
|
|
20
20
|
|
|
21
|
-
# Install wordpress cli
|
|
22
|
-
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && \
|
|
23
|
-
chmod +x wp-cli.phar && \
|
|
24
|
-
mv wp-cli.phar /usr/local/bin/wp
|
|
25
|
-
|
|
26
21
|
# Cleanup apt-get install folders
|
|
27
22
|
RUN apt-get clean && \
|
|
28
23
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|