@fishawack/lab-env 2.0.2 → 3.0.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 +19 -0
- package/_Test/_fixtures/.gitkeep +0 -0
- package/_Test/_helpers/globals.js +10 -0
- package/_Test/key.js +33 -0
- package/_Test/provision.js +33 -0
- package/cli.js +6 -6
- package/commands/create/cmds/dekey.js +75 -0
- package/commands/create/cmds/deprovision.js +54 -0
- package/commands/create/cmds/diagnose.js +5 -3
- package/commands/create/cmds/key.js +99 -0
- package/commands/create/cmds/provision.js +120 -0
- package/commands/create/libs/aws-cloudfront-auth.js +77 -0
- package/commands/create/libs/aws-cloudfront-simple.js +51 -0
- package/commands/create/libs/utilities.js +49 -2
- package/commands/create/services/aws/cloudfront.js +295 -0
- package/commands/create/services/aws/iam.js +170 -0
- package/commands/create/services/aws/index.js +25 -0
- package/commands/create/services/aws/misc.js +9 -0
- package/commands/create/services/aws/s3.js +109 -0
- package/commands/create/services/guide.js +13 -0
- package/core/{0.0.21 → 0.1.0}/Dockerfile +6 -0
- package/core/{0.0.21 → 0.1.0}/entrypoint.sh +0 -0
- package/core/CHANGELOG.md +4 -0
- package/core/package.json +1 -1
- package/drupal/9/apache/apache.conf +1 -0
- package/drupal/9/docker-compose.yml +1 -1
- package/drupal/9/php/Dockerfile +1 -1
- package/globals.js +8 -0
- package/package.json +16 -5
|
@@ -139,6 +139,12 @@ RUN rm -rf ./aws-elastic-beanstalk-cli-setup
|
|
|
139
139
|
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
|
|
140
140
|
locale-gen
|
|
141
141
|
|
|
142
|
+
# Install AWS-CLI@2
|
|
143
|
+
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
|
|
144
|
+
RUN unzip awscliv2.zip
|
|
145
|
+
RUN ./aws/install
|
|
146
|
+
RUN rm -rf ./aws && rm -rf awscliv2.zip
|
|
147
|
+
|
|
142
148
|
# Cleanup apt-get install folders
|
|
143
149
|
RUN apt-get clean && \
|
|
144
150
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
File without changes
|
package/core/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "core",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "lab-env docker config for the @fishawack/core npm module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"postversion": "mv ./*/ ./$npm_package_version && docker build ./*/ -t fishawack/core:$npm_package_version -t fishawack/core:latest && docker push fishawack/core:$npm_package_version && docker push fishawack/core:latest && git add . && git commit -m 'Bumped core to $npm_package_version'"
|
package/drupal/9/php/Dockerfile
CHANGED
package/globals.js
CHANGED
|
@@ -20,8 +20,15 @@ var run;
|
|
|
20
20
|
var exec;
|
|
21
21
|
var running;
|
|
22
22
|
var services;
|
|
23
|
+
var branch;
|
|
23
24
|
var opts = {encoding: 'utf8', stdio: 'inherit', shell: '/bin/bash'};
|
|
24
25
|
|
|
26
|
+
try{
|
|
27
|
+
branch = process.env.BRANCH || process.env.CI_COMMIT_REF_NAME || require('git-branch').sync();
|
|
28
|
+
} catch(e){
|
|
29
|
+
branch = 'unknown';
|
|
30
|
+
}
|
|
31
|
+
|
|
25
32
|
try{
|
|
26
33
|
repo = execSync('basename "$(git rev-parse --show-toplevel)"', {encoding: 'utf8', stdio: 'pipe'}).trim() || path.basename(process.cwd());
|
|
27
34
|
} catch(e){
|
|
@@ -113,6 +120,7 @@ module.exports = {
|
|
|
113
120
|
services,
|
|
114
121
|
platform,
|
|
115
122
|
repo,
|
|
123
|
+
branch,
|
|
116
124
|
repo_safe: repo.replace(/\./g, ''),
|
|
117
125
|
pkg,
|
|
118
126
|
docker,
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fishawack/lab-env",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Docker manager for FW",
|
|
5
5
|
"main": "cli.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"test": "rm -rf _Test/_fixtures
|
|
7
|
+
"test": "rm -rf _Test/_fixtures/boilerplate*; mocha _Test/*.js --timeout 1200s --bail",
|
|
8
8
|
"preversion": "npm test",
|
|
9
9
|
"postversion": "git push && git push --tags && npm publish",
|
|
10
10
|
"postpublish": "git checkout development && git merge master && git push"
|
|
@@ -16,23 +16,34 @@
|
|
|
16
16
|
"author": "",
|
|
17
17
|
"license": "ISC",
|
|
18
18
|
"homepage": "https://bitbucket.org/fishawackdigital/lab-env#readme",
|
|
19
|
+
"type": "commonjs",
|
|
19
20
|
"bin": {
|
|
20
21
|
"lab-env": "./cli.js",
|
|
21
22
|
"fw": "./cli.js"
|
|
22
23
|
},
|
|
23
24
|
"dependencies": {
|
|
24
|
-
"
|
|
25
|
+
"@aws-sdk/client-cloudfront": "^3.141.0",
|
|
26
|
+
"@aws-sdk/client-iam": "^3.150.0",
|
|
27
|
+
"@aws-sdk/client-s3": "^3.141.0",
|
|
28
|
+
"axios": "^0.21.4",
|
|
25
29
|
"chalk": "4.1.0",
|
|
30
|
+
"generate-password": "^1.7.0",
|
|
26
31
|
"get-port": "5.1.1",
|
|
32
|
+
"git-branch": "^2.0.1",
|
|
27
33
|
"glob": "7.1.7",
|
|
28
34
|
"inquirer": "8.1.2",
|
|
29
35
|
"ora": "5.4.1",
|
|
30
36
|
"semver": "7.3.4",
|
|
31
|
-
"update-notifier": "
|
|
37
|
+
"update-notifier": "^6.0.2",
|
|
32
38
|
"yargs": "16.2.0"
|
|
33
39
|
},
|
|
34
40
|
"devDependencies": {
|
|
35
41
|
"chai": "4.3.4",
|
|
36
|
-
"mocha": "9.
|
|
42
|
+
"mocha": "^9.2.2",
|
|
43
|
+
"node-fetch": "^3.2.10"
|
|
44
|
+
},
|
|
45
|
+
"engines": {
|
|
46
|
+
"npm": ">=8",
|
|
47
|
+
"node": ">=18"
|
|
37
48
|
}
|
|
38
49
|
}
|