Skip to content

Added Drupal 11 template, removed yarn #203

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

Merged
merged 14 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 --production=false
- 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
25 changes: 14 additions & 11 deletions .github/workflows/devel-ubuntu-pr.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
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: 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 --production=false
- 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 +44,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
15 changes: 10 additions & 5 deletions .github/workflows/ubuntu-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@ jobs:
- uses: actions/checkout@v4
with:
ref: '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 --production=false
- 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
17 changes: 10 additions & 7 deletions .github/workflows/ubuntu-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
ref: '2.x'
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 --production=false
- 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 +49,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