@fishawack/lab-env 4.40.1 → 4.41.0-beta.1
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 +20 -0
- package/_Ai/laravel-12.md +158 -0
- package/_Ai/vue-3.md +235 -0
- package/bitbucket-pipelines.yml +2 -2
- package/cli.js +2 -1
- package/commands/create/cmds/diagnose.js +0 -1
- package/globals.js +57 -1
- package/laravel/10/docker-compose.yml +72 -0
- package/laravel/10/php/CHANGELOG.md +4 -0
- package/laravel/10/php/Dockerfile +40 -0
- package/laravel/10/php/custom.ini +5 -0
- package/laravel/10/php/entrypoint.sh +24 -0
- package/laravel/10/php/package.json +11 -0
- package/laravel/10/php/policy.xml +99 -0
- package/package.json +3 -3
- package/php/8.2/CHANGELOG.md +4 -0
- package/php/8.2/Dockerfile +40 -0
- package/php/8.2/custom.ini +5 -0
- package/php/8.2/docker-compose.yml +23 -0
- package/php/8.2/entrypoint.sh +24 -0
- package/php/8.2/package.json +11 -0
- package/php/8.2/policy.xml +99 -0
- package/core/1/CHANGELOG.md +0 -124
- package/core/1/Dockerfile +0 -113
- package/core/1/README.md +0 -9
- package/core/1/bitbucket-pipelines.yml +0 -82
- package/core/1/docker-compose.yml +0 -36
- package/core/1/entrypoint.sh +0 -24
- package/core/1/package.json +0 -47
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
definitions:
|
|
2
|
-
services:
|
|
3
|
-
docker:
|
|
4
|
-
image: docker:dind
|
|
5
|
-
memory: 12288
|
|
6
|
-
|
|
7
|
-
pipelines:
|
|
8
|
-
branches:
|
|
9
|
-
master:
|
|
10
|
-
- step:
|
|
11
|
-
image: fishawack/aws-runner
|
|
12
|
-
runs-on:
|
|
13
|
-
- self.hosted
|
|
14
|
-
- linux
|
|
15
|
-
- production
|
|
16
|
-
size: 4x
|
|
17
|
-
script:
|
|
18
|
-
# Install release deps
|
|
19
|
-
- npm install -g semantic-release@24 @semantic-release/changelog@6 @semantic-release/git@10 conventional-changelog-conventionalcommits@8
|
|
20
|
-
# Release version via node so can exit out when no release made
|
|
21
|
-
- |
|
|
22
|
-
node -e "const spawn = require('child_process').spawn('semantic-release', ['--repositoryUrl', 'https://$GIT_CREDENTIALS@bitbucket.org/$BITBUCKET_REPO_FULL_NAME'], { env: { ...process.env, FORCE_COLOR: true } }); spawn.stderr.on('data', d => process.stderr.write(d.toString())); spawn.stdout.on('data', d => {process.stdout.write(d.toString()); if(d.toString().includes('There are no relevant changes, so no new version is released.') || d.toString().includes('therefore a new version won\'t be published.')){process.exit(1);}})" || exit 0
|
|
23
|
-
# Copy ssh keys so physical files exist for agent to use
|
|
24
|
-
- cp /build/*/ssh/* ~/.ssh/
|
|
25
|
-
# Start ssh agent and add all (if any) keys
|
|
26
|
-
- eval `ssh-agent` && ssh-add || true
|
|
27
|
-
# Publish docker image
|
|
28
|
-
- docker login $DOCKER_CREDENTIALS && docker buildx create --use && npm run image
|
|
29
|
-
# Sync beta after publish
|
|
30
|
-
- git fetch origin "+refs/heads/*:refs/remotes/origin/*" && git checkout beta && git merge master && git push origin beta
|
|
31
|
-
# Commit and create pull request for new version on lab-env repo
|
|
32
|
-
- git config --global user.email "digital@fishawack.com"
|
|
33
|
-
- git config --global user.name "Digital Fishawack"
|
|
34
|
-
- git clone https://$GIT_CREDENTIALS@bitbucket.org/fishawackdigital/lab-env
|
|
35
|
-
- cd lab-env
|
|
36
|
-
- git checkout -b "$BITBUCKET_REPO_SLUG-$BITBUCKET_COMMIT" origin/beta
|
|
37
|
-
- git submodule init
|
|
38
|
-
- git submodule update
|
|
39
|
-
- git submodule update --remote --merge core/1
|
|
40
|
-
- git add .
|
|
41
|
-
- |
|
|
42
|
-
git commit --allow-empty -m "build(core/1): Bumped $BITBUCKET_REPO_SLUG"
|
|
43
|
-
- git push origin "$BITBUCKET_REPO_SLUG-$BITBUCKET_COMMIT"
|
|
44
|
-
- |
|
|
45
|
-
curl https://api.bitbucket.org/2.0/repositories/fishawackdigital/lab-env/pullrequests \
|
|
46
|
-
-u $GIT_CREDENTIALS \
|
|
47
|
-
--header 'Content-Type: application/json' \
|
|
48
|
-
--data "{
|
|
49
|
-
\"title\": \"Bumped $BITBUCKET_REPO_SLUG\",
|
|
50
|
-
\"destination\": {
|
|
51
|
-
\"branch\": {
|
|
52
|
-
\"name\": \"beta\"
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
\"source\": {
|
|
56
|
-
\"branch\": {
|
|
57
|
-
\"name\": \"$BITBUCKET_REPO_SLUG-$BITBUCKET_COMMIT\"
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
\"reviewers\": [
|
|
61
|
-
{
|
|
62
|
-
\"uuid\": \"{2518e4c3-fc1d-4653-b355-c00be099ce6c}\"
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
\"close_source_branch\": true
|
|
66
|
-
}"
|
|
67
|
-
services:
|
|
68
|
-
- docker
|
|
69
|
-
beta:
|
|
70
|
-
- step:
|
|
71
|
-
image: fishawack/aws-runner
|
|
72
|
-
runs-on:
|
|
73
|
-
- self.hosted
|
|
74
|
-
- linux
|
|
75
|
-
- production
|
|
76
|
-
size: 4x
|
|
77
|
-
script:
|
|
78
|
-
# Install deps
|
|
79
|
-
- npm install -g semantic-release@24 @semantic-release/changelog@6 @semantic-release/git@10 conventional-changelog-conventionalcommits@8
|
|
80
|
-
# Release version via node so can exit out when no release made
|
|
81
|
-
- |
|
|
82
|
-
node -e "const spawn = require('child_process').spawn('semantic-release', ['--repositoryUrl', 'https://$GIT_CREDENTIALS@bitbucket.org/$BITBUCKET_REPO_FULL_NAME'], { env: { ...process.env, FORCE_COLOR: true } }); spawn.stderr.on('data', d => process.stderr.write(d.toString())); spawn.stdout.on('data', d => {process.stdout.write(d.toString()); if(d.toString().includes('There are no relevant changes, so no new version is released.') || d.toString().includes('therefore a new version won\'t be published.')){process.exit(1);}})" || exit 0
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
services:
|
|
2
|
-
core:
|
|
3
|
-
build:
|
|
4
|
-
context: $FW_CORE_1_CONTEXT
|
|
5
|
-
target: $FW_CORE_1_TARGET
|
|
6
|
-
ssh:
|
|
7
|
-
- default
|
|
8
|
-
args:
|
|
9
|
-
target: $FW_CORE_1_TARGET
|
|
10
|
-
target_image: $FW_CORE_1_TARGET_IMAGE
|
|
11
|
-
image: $FW_CORE_1_IMAGE:${FW_CORE_1_VERSION:-latest}
|
|
12
|
-
init: true
|
|
13
|
-
tty: true
|
|
14
|
-
volumes:
|
|
15
|
-
- $CWD/:/app
|
|
16
|
-
- $FW_DIR/targets:/home/node/targets
|
|
17
|
-
- $FW_DIR/.ssh:/home/node/.ssh
|
|
18
|
-
- $FW_DIR/.aws:/home/node/.aws
|
|
19
|
-
- node_modules:/app/node_modules
|
|
20
|
-
ports:
|
|
21
|
-
- ${PORT:-3000}:${PORT:-3000}
|
|
22
|
-
- ${PORT_OPT:-3001}:${PORT_OPT:-3001}
|
|
23
|
-
environment:
|
|
24
|
-
- REPO=${REPO:-}
|
|
25
|
-
- PORT=${PORT:-3000}
|
|
26
|
-
- PORT_OPT=${PORT_OPT:-3001}
|
|
27
|
-
- PORT_WEB=${PORT_WEB:-8000}
|
|
28
|
-
- PORT_DB=${PORT_DB:-3306}
|
|
29
|
-
- USER_UID=${USER_UID:-0}
|
|
30
|
-
- USER_GID=${USER_GID:-0}
|
|
31
|
-
- FW_ROOT=${FW_ROOT:-}
|
|
32
|
-
- BRANCH=${BRANCH:-}
|
|
33
|
-
- CI_COMMIT_REF_NAME=${CI_COMMIT_REF_NAME:-}
|
|
34
|
-
volumes:
|
|
35
|
-
node_modules:
|
|
36
|
-
driver: "local"
|
package/core/1/entrypoint.sh
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
# Setting $FW_ROOT will bypass the user switch to node
|
|
4
|
-
if [ -z "$FW_ROOT" ]; then
|
|
5
|
-
# Set node user id to match host users id so no permission issues outside of docker
|
|
6
|
-
usermod -u $USER_UID node &>/dev/null
|
|
7
|
-
|
|
8
|
-
# Own the node_modules folder otherwise it'll be owned by root/previous node id which will prevent writing
|
|
9
|
-
chown node /app/node_modules
|
|
10
|
-
|
|
11
|
-
# Own the global node_modules folder otherwise it'll be owned by root/previous node id which will prevent writing
|
|
12
|
-
chown node /usr/local/lib/node_modules
|
|
13
|
-
|
|
14
|
-
# Default arguments will always be bash -l, if nothing follows this just start an non login interactive shell
|
|
15
|
-
if [ -z "${@:3}" ]; then
|
|
16
|
-
exec su node
|
|
17
|
-
# Otherwise pipe the command after the bash -lc into the non login non interactive shell as a command to exec
|
|
18
|
-
else
|
|
19
|
-
exec su node -c "${@:3}"
|
|
20
|
-
fi
|
|
21
|
-
else
|
|
22
|
-
echo "Accessing as root"
|
|
23
|
-
exec "$@"
|
|
24
|
-
fi
|
package/core/1/package.json
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "core",
|
|
3
|
-
"version": "1.7.2",
|
|
4
|
-
"description": "lab-env docker config for the @fishawack/core/1 npm module",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"setup": "ln -sfn ../../.commitlintrc.json .commitlintrc.json && ln -sfn ../../.editorconfig .editorconfig && ln -sfn ../../.prettierignore .prettierignore && ln -sfn ../../.husky/ .husky && husky &>/dev/null || true",
|
|
7
|
-
"image": "docker buildx build --ssh default --platform linux/amd64,linux/arm64 -t fishawack/lab-env-core-1:$npm_package_version -t fishawack/lab-env-core-1:latest --push . && docker buildx build --ssh default --target alpine --platform linux/amd64,linux/arm64 -t fishawack/lab-env-core-1-alpine:$npm_package_version -t fishawack/lab-env-core-1-alpine:latest --push ."
|
|
8
|
-
},
|
|
9
|
-
"author": "Mike Mellor",
|
|
10
|
-
"license": "ISC",
|
|
11
|
-
"release": {
|
|
12
|
-
"plugins": [
|
|
13
|
-
[
|
|
14
|
-
"@semantic-release/commit-analyzer",
|
|
15
|
-
{
|
|
16
|
-
"preset": "conventionalcommits"
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
|
-
[
|
|
20
|
-
"@semantic-release/release-notes-generator",
|
|
21
|
-
{
|
|
22
|
-
"preset": "conventionalcommits",
|
|
23
|
-
"writerOpts": {
|
|
24
|
-
"headerPartial": "### {{version}} ({{date}})\n",
|
|
25
|
-
"mainTemplate": "{{> header}}\n{{#each commitGroups}}\n\n{{#if title}}\n#### {{title}}\n\n{{/if}}\n{{#each commits}}\n{{> commit root=@root}}\n{{/each}}\n{{/each}}"
|
|
26
|
-
},
|
|
27
|
-
"presetConfig": {
|
|
28
|
-
"commitUrlFormat": "{{host}}/{{owner}}/{{repository}}/commits/{{hash}}"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
[
|
|
33
|
-
"@semantic-release/changelog",
|
|
34
|
-
{
|
|
35
|
-
"changelogTitle": "## Changelog"
|
|
36
|
-
}
|
|
37
|
-
],
|
|
38
|
-
[
|
|
39
|
-
"@semantic-release/npm",
|
|
40
|
-
{
|
|
41
|
-
"npmPublish": false
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
"@semantic-release/git"
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
}
|