Skip to content

Drupal11 mr devel #199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 25 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
810db5e
2.x: Using the right conditions to build binaries
DionisioFG Nov 6, 2024
ed46823
2.x: Update RELEASE file
DionisioFG Nov 7, 2024
cede0a7
2.x: Fixed how the tags are identified to run a new build
DionisioFG Nov 7, 2024
a24ec88
2.x: Fixed tarballs, mising lib folder
DionisioFG Nov 7, 2024
992f6a4
2.x: Fixed some bits about localgov
DionisioFG Nov 13, 2024
0f935e1
2.x: Getting the latest release available per branch
DionisioFG Nov 13, 2024
cb2141a
Updated install.sh scrip to get the latest version per branch. Fixed …
DionisioFG Nov 13, 2024
ddb1920
Merge branch '2.x' of github.com:codeenigma/ce-dev into 2.x
DionisioFG Dec 17, 2024
1ea136e
2.x: Added drupal11 template. Removed .travis file
DionisioFG Dec 17, 2024
634c140
2.x: Added Drupal 11 template
DionisioFG Dec 18, 2024
1f7f758
Merge branch 'devel-2.x' into drupal11_MR_devel
DionisioFG Dec 18, 2024
0bc8fc4
2.x: Updated references with 2.x-devel to devel-2.x
DionisioFG Dec 18, 2024
9eaf9d5
Merge branch 'drupal11' into drupal11_MR_devel
DionisioFG Dec 18, 2024
3cd50ed
2.x: Removed reference to the branch
DionisioFG Dec 18, 2024
4711a96
Merge branch 'drupal11' into drupal11_MR_devel
DionisioFG Dec 18, 2024
491b2a5
2.x: Enabled corepack to use latest version of yarn
DionisioFG Dec 18, 2024
5d0d83d
Merge branch 'drupal11' into drupal11_MR_devel
DionisioFG Dec 18, 2024
aded6cc
2.x: Fixed yarn command
DionisioFG Dec 18, 2024
1b175be
Merge branch 'drupal11' into drupal11_MR_devel
DionisioFG Dec 18, 2024
0b7d8ee
2.x: Using yarn dlx instead of yarn install --global
DionisioFG Dec 18, 2024
65bc131
Merge branch 'drupal11' into drupal11_MR_devel
DionisioFG Dec 18, 2024
13ecca7
2.x: Using again install instead of dlx
DionisioFG Dec 18, 2024
8251bdb
Merge branch 'drupal11' into drupal11_MR_devel
DionisioFG Dec 18, 2024
77eb166
2.x: Removed all references to yarn to make it simple
DionisioFG Dec 18, 2024
43ee8ff
Merge branch 'drupal11' into drupal11_MR_devel
DionisioFG Dec 18, 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
6 changes: 3 additions & 3 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ docker pull codeenigma/ce-dev-controller:2.x
Then edit your project's `ce-dev.compose.yml` file, changing the image for each applicable service to use the `-devel` tag instead of the current tag, for example:

```yaml
image: codeenigma/ce-dev:2.x -> image: codeenigma/ce-dev:2.x-devel
image: codeenigma/ce-dev:2.x -> image: codeenigma/ce-dev:devel-2.x
```

Finally, destroy and recreate your `docker compose` file and containers:
Expand All @@ -36,9 +36,9 @@ ce-dev deploy
To test the `devel` version of the `ce-dev-controller` image locally you can do the following:

```bash
docker pull codeenigma/ce-dev-controller:2.x-devel
docker pull codeenigma/ce-dev-controller:devel-2.x
# Replace the 'latest' tag with your 'devel' image
docker tag codeenigma/ce-dev-controller:2.x-devel codeenigma/ce-dev-controller:2.x
docker tag codeenigma/ce-dev-controller:devel-2.x codeenigma/ce-dev-controller:2.x
docker kill ce_dev_controller
# Then in any ce-dev project
ce-dev start
Expand Down
27 changes: 16 additions & 11 deletions .github/workflows/devel-ubuntu-build.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
name: '2.x-devel: Ubuntu - Build and push ce-dev and ce-dev-controller images'
name: 'devel-2.x: Ubuntu - Build and push ce-dev and ce-dev-controller images'

on:
push:
branches:
- 2.x-devel
- devel-2.x

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: '2.x-devel'
ref: 'devel-2.x'
- uses: actions/setup-node@v4
with:
node-version: 'latest'
- name: Install modules
run: yarn install --production=false --global
- name: Pack the JS
run: yarn oclif pack tarballs --targets=linux-x64,linux-arm,linux-arm64,darwin-x64,darwin-arm64 --no-xz
- name: Rename the dist/* files
run: yarn renamedist
run: npm install --global
- name: Generate distributions with oclif
run: |
npm run prepack-oclif
npx oclif pack tarballs --targets=linux-x64,linux-arm,linux-arm64,darwin-x64,darwin-arm64 --no-xz
npm run postpack-oclif
npm run renamedist
- name: Install test dependencies
run: |
sudo apt-get update
Expand All @@ -36,8 +41,8 @@ jobs:
echo 'docker_bin: docker' > ~/.config/ce-dev/preferences-2.x.yml
echo 'docker_compose_bin: docker compose' >> ~/.config/ce-dev/preferences-2.x.yml
echo 'mkcert_bin: mkcert' >> ~/.config/ce-dev/preferences-2.x.yml
- name: Build ce-dev and ce-dev-controller
- name: Build and push ce-dev and ce-dev-controller
run: |
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
/bin/sh docker-images/export.sh --version 2.x-devel --image-name ce-dev --dockerfile-path base-devel --push
/bin/sh docker-images/export.sh --version 2.x-devel --image-name ce-dev-controller --dockerfile-path controller-devel --push
/bin/sh docker-images/export.sh --version devel-2.x --image-name ce-dev --dockerfile-path base-devel --push
/bin/sh docker-images/export.sh --version devel-2.x --image-name ce-dev-controller --dockerfile-path controller-devel --push
27 changes: 16 additions & 11 deletions .github/workflows/devel-ubuntu-pr.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
name: '2.x-devel: Ubuntu - Test image builds on PR'
name: 'devel-2.x: Ubuntu - Test image builds on PR'

on:
pull_request:
types:
- opened
branches:
- 2.x-devel
- devel-2.x

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
ref: '2.x-devel'
node-version: 'latest'
- name: Enable Corepack
run: corepack enable
- name: Install modules
run: yarn install --production=false --global
- name: Pack the JS
run: yarn oclif pack tarballs --targets=linux-x64,linux-arm,linux-arm64,darwin-x64,darwin-arm64 --no-xz
- name: Rename the dist/* files
run: yarn renamedist
run: npm install --global
- name: Generate distributions with oclif
run: |
npm run prepack-oclif
npx oclif pack tarballs --targets=linux-x64,linux-arm,linux-arm64,darwin-x64,darwin-arm64 --no-xz
npm run postpack-oclif
npm run renamedist
# We build mkcert from source because releases are broken
- name: Install test dependencies
run: |
Expand All @@ -41,9 +46,9 @@ jobs:
echo 'mkcert_bin: mkcert' >> ~/.config/ce-dev/preferences-2.x.yml
- name: Build ce-dev and ce-dev-controller
run: |
/bin/sh docker-images/export.sh --version 2.x-devel --image-name ce-dev --dockerfile-path base-devel
/bin/sh docker-images/export.sh --version 2.x-devel --image-name ce-dev-controller --dockerfile-path controller-devel
/bin/sh docker-images/export.sh --version devel-2.x --image-name ce-dev --dockerfile-path base-devel
/bin/sh docker-images/export.sh --version devel-2.x --image-name ce-dev-controller --dockerfile-path controller-devel
- name: Testing templates
run: |
sudo chmod +x bin/dev.js
/bin/sh templates/prebuild.sh --template ce-dev-devel.compose.yml --devel
/bin/sh templates/test.sh --template ce-dev-devel.compose.yml --devel
17 changes: 12 additions & 5 deletions .github/workflows/ubuntu-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,19 @@ jobs:
- uses: actions/checkout@v4
with:
ref: '2.x'
- uses: actions/setup-node@v4
with:
node-version: 'latest'
- name: Enable Corepack
run: corepack enable
- name: Install modules
run: yarn install --production=false --global
- name: Pack the JS
run: yarn oclif pack tarballs --targets=linux-x64,linux-arm,linux-arm64,darwin-x64,darwin-arm64 --no-xz
- name: Rename the dist/* files
run: yarn renamedist
run: npm install --global
- name: Generate distributions with oclif
run: |
npm run prepack-oclif
npx oclif pack tarballs --targets=linux-x64,linux-arm,linux-arm64,darwin-x64,darwin-arm64 --no-xz
npm run postpack-oclif
npm run renamedist
- name: Install test dependencies
run: |
sudo apt-get update
Expand Down
19 changes: 12 additions & 7 deletions .github/workflows/ubuntu-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
ref: '2.x'
node-version: 'latest'
- name: Enable Corepack
run: corepack enable
- name: Install modules
run: yarn install --production=false --global
- name: Pack the JS
run: yarn oclif pack tarballs --targets=linux-x64,linux-arm,linux-arm64,darwin-x64,darwin-arm64 --no-xz
- name: Rename the dist/* files
run: yarn renamedist
run: npm install --global
- name: Generate distributions with oclif
run: |
npm run prepack-oclif
npx oclif pack tarballs --targets=linux-x64,linux-arm,linux-arm64,darwin-x64,darwin-arm64 --no-xz
npm run postpack-oclif
npm run renamedist
# We build mkcert from source because releases are broken
- name: Install test dependencies
run: |
Expand All @@ -46,4 +51,4 @@ jobs:
- name: Testing templates
run: |
sudo chmod +x bin/run.js
/bin/sh templates/prebuild.sh --template ce-dev.compose.yml
/bin/sh templates/test.sh --template ce-dev.compose.yml
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ node_modules
oclif.manifest.json
tsconfig.tsbuildinfo
.idea/
.yarn/
97 changes: 0 additions & 97 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ce-dev 2.x
======
Local Stack wrapper tool

[![2.x: Linux - Build ce_dev binaries, images and templates (test)](https://github.com/codeenigma/ce-dev/actions/workflows/ce-dev-devel-linux.yml/badge.svg?branch=2.x-devel)](https://github.com/codeenigma/ce-dev/actions/workflows/ce-dev-devel-linux.yml)
[![2.x: Linux - Build ce_dev binaries, images and templates (test)](https://github.com/codeenigma/ce-dev/actions/workflows/ce-dev-devel-linux.yml/badge.svg?branch=devel-2.x)](https://github.com/codeenigma/ce-dev/actions/workflows/ce-dev-devel-linux.yml)
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=codeenigma_ce-dev&metric=security_rating)](https://sonarcloud.io/dashboard?id=codeenigma_ce-dev)
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=codeenigma_ce-dev&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=codeenigma_ce-dev)
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=codeenigma_ce-dev&metric=bugs)](https://sonarcloud.io/dashboard?id=codeenigma_ce-dev)
Expand Down Expand Up @@ -36,7 +36,7 @@ Local Stack wrapper tool

* Install Node.js in your local machine https://nodejs.org/en/download/package-manager
* Clone this repo in your local machine.
* Change the branch (2.x, 2.x-devel, etc...) to work on it.
* Change the branch (2.x, devel-2.x, etc...) to work on it.
* Run ```npm install```

With these steps you will have all the packages installed.
Expand Down Expand Up @@ -84,7 +84,7 @@ codeenigma/ce-dev 2.x 8753195771fc 3 days ago
codeenigma/ce-dev-controller 2.x 5aed115a5e74 3 days ago 1.83GB
```

if you are testing the devel version, the tag will be 2.x-devel.
if you are testing the devel version, the tag will be devel-2.x.

If you don't have the local images, you can follow these steps:

Expand All @@ -95,7 +95,7 @@ If you don't have the local images, you can follow these steps:
```angular2html
/bin/sh docker-images/export.sh --version 2.x --image-name ce-dev --dockerfile-path base
/bin/sh docker-images/export.sh --version 2.x --image-name ce-dev-controller --dockerfile-path controller
/bin/sh templates/prebuild.sh --template ce-dev.compose.yml
/bin/sh templates/test.sh --template ce-dev.compose.yml
```

The last step will generate the drupal10-web, drupal10-db and blank docker images. Also, it will create docker containers
Expand Down
20 changes: 4 additions & 16 deletions RELEASE
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
2.0.0
2.0.1

## Changes since 1.2.4
## Changes since 2.0.0

* Docker images based on Bookworm-slim
* Docker image MariaDB used as database.
* Docker image codeenigma/ce-dev:2.x image used web image
* No more use of different predefined drupalX-web images, we rely on 'ce-dev provision'.
* Use of latest Typescript version (5.x.x)
* Binaries built with Emacs instead of Commonjs: Emacs can consume Commonjs modules,
but Commonjs can't consume Emacs modules. It means we can use more contrib modules
* src folder has been organised a bit better.
* Removed drupal 8 and drupal 9 templates.
* The way to assign IPs have changed.
* Improved command 'shell'
* Added new command 'drush'
* Removed references to win-x
* All the packages used are up to date.
* Added Drupal 11 template
* Updated references to 2.x-devel with devel-2.x
2 changes: 1 addition & 1 deletion docker-images/controller-devel/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM codeenigma/ce-dev:2.x-devel
FROM codeenigma/ce-dev:devel-2.x

RUN \
set -x && \
Expand Down
2 changes: 1 addition & 1 deletion docker-images/export.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ usage(){
echo 'Export a base Code Enigma image, optionally pushing it to your Docker repository.'
echo ''
echo 'Mandatory arguments:'
echo '--version: Version tag to apply to the Docker image, e.g. "2.x, 2.x-devel, latest".'
echo '--version: Version tag to apply to the Docker image, e.g. "2.x, devel-2.x, latest".'
echo '--image-name: Name of the resulting Docker image, e.g. "ce-dev".'
echo ''
echo 'Available options:'
Expand Down
Loading
Loading