Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
5bee26c
Fix docker-compose v2 issue and re-release to include clamav role (#68)
nfawbert Jan 28, 2022
e42ebd1
Killing old ce-dev container when updating (#70)
nfawbert Feb 2, 2022
b0dc9d9
Added Drupal9 and Localgov templates (#73)
DionisioFG Mar 9, 2022
34ce84c
New release 1.1.19 (#75)
DionisioFG Mar 10, 2022
cae50ba
Updated package.json version: 1.1.19 (#77)
DionisioFG Mar 10, 2022
79372e7
New tag to fix repo key for Chrome (#83)
DionisioFG Jul 1, 2022
4fa738c
#CE-62820: Added support for composer '2.x' in Drupal 9 provision tem…
davids4 Sep 8, 2022
70954a3
REL 1.1.21: Using composer 2 with Drupal 9 by default (#92)
DionisioFG Sep 8, 2022
62e753e
Drupal template fixes pr 1.x (#94)
gregharvey Sep 9, 2022
710a4e3
CE-DEV: some updates and tweaks (#96)
DionisioFG Sep 14, 2022
6046092
Release 1.1.23 (#97)
DionisioFG Sep 14, 2022
2dc8b59
Bump minimist from 1.2.5 to 1.2.6 (#79)
dependabot[bot] Sep 15, 2022
dd597b8
Bump ansi-regex from 3.0.0 to 3.0.1 (#84)
dependabot[bot] Sep 15, 2022
4f0e659
Bump moment from 2.27.0 to 2.29.4 (#85)
dependabot[bot] Sep 15, 2022
2dc648c
Changing 'set-current' choice to a valid one.
gregharvey Sep 15, 2022
8434c0d
Fixing ce_provision vars in container builds. (#102)
gregharvey Apr 14, 2023
0581ade
Adding variables pr 1.x (#104)
gregharvey Apr 14, 2023
fdc01d0
Adding variables pr 1.x (#106)
gregharvey Apr 14, 2023
dd3d9fc
Adding variables pr 1.x (#109)
gregharvey Apr 14, 2023
cd1345b
Adding variables pr 1.x (#111)
gregharvey Apr 14, 2023
7c9e1bc
Fix setup on a Mac: use Docker Compose V2 with the new 'cgroup' param…
iKristjan May 17, 2023
2c8d2ff
Bump minimatch from 3.0.4 to 3.1.2 (#107)
dependabot[bot] May 18, 2023
8325116
Merge branch '1.x' of github.com:codeenigma/ce-dev into 1.x
gregharvey May 18, 2023
c884a4f
Cgroup fixes pr 1.x (#115)
gregharvey May 18, 2023
d4b8b37
Merge branch '1.x' of github.com:codeenigma/ce-dev into 1.x
gregharvey May 18, 2023
6578ae9
Adding new required ce-provision rkhunter variable. (#119)
gregharvey May 22, 2023
fd04f9c
Issue 120: docker ps change, can no longer use --format *and* --quiet…
galooph Jul 10, 2023
0d25cfe
REL 1.2.1: Fix --quiet and --format use (#123)
DionisioFG Jul 10, 2023
6ddcb4d
Drupal template fixes pr 1.x (#126)
gregharvey Jul 18, 2023
45cdf89
Bump semver from 5.7.1 to 5.7.2 (#124)
dependabot[bot] Jul 18, 2023
f347208
Updating docs URL for CI to https. (#131)
gregharvey Jul 18, 2023
9e6df79
Drupal template fixes pr 1.x (#133)
gregharvey Jul 18, 2023
2746cd5
Drupal template fixes pr 1.x (#135)
gregharvey Jul 18, 2023
06bf830
Drupal template fixes pr 1.x (#138)
gregharvey Jul 19, 2023
0ae2dc6
Packaging 1.2.2 with new Drupal templates.
gregharvey Jul 19, 2023
57de3cd
Drupal template fixes pr 1.x (#140)
gregharvey Jul 19, 2023
6e51555
Upgrading base container to bullseye-slim. (#141)
gregharvey Jul 20, 2023
c56b900
Adding release info.
gregharvey Jul 20, 2023
845c62f
66912: Added Drupal10 template (#144)
DionisioFG Aug 29, 2023
a45f96f
Bump word-wrap from 1.2.3 to 1.2.4 (#136)
dependabot[bot] Oct 25, 2023
6f89931
Update Troubleshooting.md to include more information around cgroup. …
philipnorton42 Oct 25, 2023
dc14dbd
Bump debug from 4.1.1 to 4.3.4 (#146)
dependabot[bot] Oct 25, 2023
bf4fd05
#60168: Documentation: Updated Troubleshooting information for 'Ubunt…
davids4 Oct 25, 2023
a5ace2c
Bullseye upgrade pr 1.x (#147)
gregharvey Nov 8, 2023
cb72b14
Adding build for testing images from devel. (#149)
gregharvey Nov 8, 2023
78846e1
Updating CI for export.sh changes.
gregharvey Jan 26, 2024
654a51f
Adding ability to switch ce-provision own branch and config branch.
gregharvey Jan 26, 2024
beec77c
Merging devel.
gregharvey Jan 29, 2024
56e8764
Merge branch 'allow_branch_switching' into allow_branch_switching-PR-…
gregharvey Jan 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ce-dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ jobs:
- name: Build and push Docker images
run: |
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
/bin/sh docker-images/export.sh latest --push
/bin/sh docker-images/export.sh --version latest --image-name ce-dev --dockerfile-path base --push
/bin/sh docker-images/export.sh --version latest --image-name ce-dev-controller --dockerfile-path controller --push
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
/bin/sh templates/prebuild.sh --push
# Uses https://github.com/marketplace/actions/gh-release
Expand Down
4 changes: 2 additions & 2 deletions docker-images/base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:bookworm-slim as unison
FROM debian:bullseye-slim as unison
RUN \
set -x && \
export DEBIAN_FRONTEND=noninteractive && \
Expand All @@ -14,7 +14,7 @@ RUN \
cd /tmp/unison-2.53.3 && \
make

FROM debian:bookworm-slim
FROM debian:bullseye-slim

RUN \
set -x && \
Expand Down
2 changes: 1 addition & 1 deletion docker-images/dind/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN \
RUN \
set -x && \
export DEBIAN_FRONTEND=noninteractive && \
echo 'deb [arch=amd64] https://download.docker.com/linux/debian bookworm stable' > /etc/apt/sources.list.d/docker.list && \
echo 'deb [arch=amd64] https://download.docker.com/linux/debian bullseye stable' > /etc/apt/sources.list.d/docker.list && \
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - && \
apt-get update && \
apt-get dist-upgrade -y -o Dpkg::Options::="--force-confnew" && \
Expand Down
32 changes: 28 additions & 4 deletions src/commands/provision.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,53 @@
import AnsibleCmd from '../base-cmd-ansible-abstract'
import {flags} from '@oclif/command'

export default class ProvisionCmd extends AnsibleCmd {
static description = 'Provision containers with Ansible playbooks.'

static examples = [
'$ ce-dev provision --branch 1.x --config 1.x',
]

static flags = {
help: flags.help({char: 'h'}),
branch: flags.string({
char: 'b',
description: 'The branch of ce-provision to use for provisioning your containers. See https://github.com/codeenigma/ce-provision for options.',
default: '1.x',
}),
config: flags.string({
char: 'c',
description: 'The branch of the ce-provision-config repository. See https://github.com/codeenigma/ce-dev-ce-provision-config for options.',
default: '1.x',
}),
}

protected ansibleProjectPlaybooksPath = '/home/ce-dev/projects-playbooks/provision'

protected ansibleScriptsPath = '/home/ce-dev/ce-provision'

protected ansibleScript = 'scripts/provision.sh'

protected ownBranch = '1.x'

protected configBranch = '1.x'

/**
* @inheritdoc
*/
public constructor(argv: string[], config: any) {
super(argv, config)
const {flags} = this.parse(ProvisionCmd)
this.ansiblePaths = this.activeProjectInfo.provision
this.ownBranch = flags.branch
this.configBranch = flags.config
}

protected getCommandParameters(ansiblePath: string): string {
const workspace = this.ansibleProjectPlaybooksPath
const repo = this.activeProjectInfo.project_name
const ownBranch = '1.x'
const configBranch = '1.x'
let cmd = '--own-branch ' + ownBranch
cmd += ' --config-branch ' + configBranch
let cmd = '--own-branch ' + this.ownBranch
cmd += ' --config-branch ' + this.configBranch
cmd += ' --workspace ' + workspace
cmd += ' --repo ' + repo
cmd += ' --branch ce-dev --playbook ' + ansiblePath
Expand Down
28 changes: 14 additions & 14 deletions templates/drupal10/ce-dev/ansible/provision.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,19 @@
enable: false
{% endraw %}
tasks:
- ansible.builtin.apt:
- apt:
update_cache: true
- ansible.builtin.import_role:
- import_role:
name: _meta/common_base
- ansible.builtin.import_role:
name: debian/mysql_client
- ansible.builtin.import_role:
name: debian/php-cli
- ansible.builtin.import_role:
name: debian/php-fpm
- ansible.builtin.import_role:
name: debian/nginx
- ansible.builtin.import_role:
name: debian/lhci
- ansible.builtin.import_role:
name: debian/frontail
- import_role:
name: mysql_client
- import_role:
name: php-cli
- import_role:
name: php-fpm
- import_role:
name: nginx
- import_role:
name: lhci
- import_role:
name: frontail
28 changes: 14 additions & 14 deletions templates/drupal9/ce-dev/ansible/provision.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,19 @@
enable: false
{% endraw %}
tasks:
- ansible.builtin.apt:
- apt:
update_cache: true
- ansible.builtin.import_role:
- import_role:
name: _meta/common_base
- ansible.builtin.import_role:
name: debian/mysql_client
- ansible.builtin.import_role:
name: debian/php-cli
- ansible.builtin.import_role:
name: debian/php-fpm
- ansible.builtin.import_role:
name: debian/nginx
- ansible.builtin.import_role:
name: debian/lhci
- ansible.builtin.import_role:
name: debian/frontail
- import_role:
name: mysql_client
- import_role:
name: php-cli
- import_role:
name: php-fpm
- import_role:
name: nginx
- import_role:
name: lhci
- import_role:
name: frontail
28 changes: 14 additions & 14 deletions templates/localgov/ce-dev/ansible/provision.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@
enable: false
{% endraw %}
tasks:
- ansible.builtin.apt:
- apt:
update_cache: true
- ansible.builtin.import_role:
- import_role:
name: _meta/common_base
- ansible.builtin.import_role:
name: debian/mysql_client
- ansible.builtin.import_role:
name: debian/php-cli
- ansible.builtin.import_role:
name: debian/php-fpm
- ansible.builtin.import_role:
name: debian/nginx
- ansible.builtin.import_role:
name: debian/lhci
- ansible.builtin.import_role:
name: debian/frontail
- import_role:
name: mysql_client
- import_role:
name: php-cli
- import_role:
name: php-fpm
- import_role:
name: nginx
- import_role:
name: lhci
- import_role:
name: frontail
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -648,11 +648,11 @@ cross-spawn@^7.0.2:
which "^2.0.1"

debug@^4.0.0, debug@^4.0.1, debug@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791"
integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==
version "4.3.4"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865"
integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==
dependencies:
ms "^2.1.1"
ms "2.1.2"

deep-is@^0.1.3:
version "0.1.3"
Expand Down Expand Up @@ -1614,7 +1614,7 @@ moment@^2.22.1:
resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.4.tgz#3dbe052889fe7c1b2ed966fcb3a77328964ef108"
integrity sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==

ms@^2.1.1:
[email protected].2:
version "2.1.2"
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"
integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
Expand Down Expand Up @@ -2369,9 +2369,9 @@ widest-line@^3.1.0:
string-width "^4.0.0"

word-wrap@^1.2.3:
version "1.2.3"
resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c"
integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==
version "1.2.4"
resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.4.tgz#cb4b50ec9aca570abd1f52f33cd45b6c61739a9f"
integrity sha512-2V81OA4ugVo5pRo46hAoD2ivUJx8jXmWXfUkY4KFNw0hEptvN0QfH3K4nHiwzGeKl5rFKedV48QVoqYavy4YpA==

wrap-ansi@^4.0.0:
version "4.0.0"
Expand Down