You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://github.com/codeenigma/ce-dev/actions/workflows/ce-dev-devel-linux.yml)
* Binaries built with Emacs instead of Commonjs: Emacs can consume Commonjs modules,
15
15
but Commonjs can't consume Emacs modules. It means we can use more contrib modules
16
-
* ce-dev-controller is compatible with ce-provision 1.x and 2.x, by default ce-dev uses ce-provision 2
16
+
* ce-dev-controller uses ce-provision 2. The roles in provision.yml have been updated.
17
17
* src folder has been organised a bit better.
18
18
* Removed drupal 8 and drupal 9 templates.
19
19
* The way to assign IPs have changed.
20
20
* All the packages used are up to date.
21
21
22
-
## ToDo: Review docs folder
23
-
24
-
A local stack based on Docker Compose and Ansible. It aims to be easy to use but also stay flexible and powerful by not hiding complexity behind yet another abstraction layer.
25
-
26
22
## Key features
27
23
- Allows several projects (or the host) to re-use the same ports
28
24
- Allows mixing any Docker images with ce-dev specific ones
@@ -36,12 +32,111 @@ A local stack based on Docker Compose and Ansible. It aims to be easy to use but
36
32
37
33
## Do you want to contribute?
38
34
39
-
* Clone this repository in your computer.
40
-
* Once you make your changes, run 'yarn' in the root folder
41
-
This will clean and create the {root}/lib folder, with the compiled TS files to JS.
42
-
* Use oclif pack to generate new releases for the different Systems
35
+
### Preparation
36
+
37
+
* Install Node.js in your local machine https://nodejs.org/en/download/package-manager
38
+
* Clone this repo in your local machine.
39
+
* Change the branch (2.x, 2.x-devel, etc...) to work on it.
40
+
* Run ```npm install```
41
+
42
+
With these steps you will have all the packages installed.
43
+
44
+
### How to compile
45
+
46
+
CE-Dev is made with typescript, you need to compile the code to js to make the different distributions.
47
+
Once you make your changes in the source dode ({root}/src folder), you need to compile it. To compile you can
48
+
execute the following commands:
49
+
50
+
```
51
+
yarn clean
52
+
yarn build
53
+
```
54
+
55
+
This will clean and compile the new js files. A new folder {root}/lib is generated
56
+
with all the js file. If you only need to test your changes with your current projects you have, you can execute
57
+
the commands directly using the run.js file. In this way you don't need to break your current ce-dev installation
58
+
(located in /opt/ce-dev)
59
+
Example:
60
+
61
+
```angular2html
62
+
{absolute_path}/bin/run.js --help
63
+
```
64
+
65
+
#### Generating new docker images
66
+
In case you need to test new docker images (example, when a new major version will be released) you need to build these
67
+
images locally. To see the ce-dev version for this branch: you can check the value in this file
68
+
```angular2html
69
+
src/app-settings.ts
70
+
```
71
+
72
+
Currently having ```ceDevVersion : 2```
73
+
74
+
it means you would need to have the local docker images with tag 2.x
75
+
76
+
```angular2html
77
+
dioni@dionice:~/projects/wrap$ docker image ls
78
+
[sudo] contraseña para dioni:
79
+
REPOSITORY TAG IMAGE ID CREATED SIZE
80
+
codeenigma/drupal10-db 2.x 5cae51ec65c0 3 days ago 409MB
81
+
codeenigma/drupal10-web 2.x 83cc832fb73d 3 days ago 1.47GB
82
+
codeenigma/blank-blank 2.x 5157934972ad 3 days ago 1.26GB
83
+
codeenigma/ce-dev 2.x 8753195771fc 3 days ago 691MB
84
+
codeenigma/ce-dev-controller 2.x 5aed115a5e74 3 days ago 1.83GB
85
+
```
86
+
87
+
if you are testing the devel version, the tag will be 2.x-devel.
88
+
89
+
If you don't have the local images, you can follow these steps:
90
+
91
+
1. Delete your current ce_dev_controller...yes stop and delete it, no worries!
92
+
It can be re-created starting a project with your installed ce-dev version
93
+
2. Execute the following commands to create the docker images (you may need to add +x to the run.js file).
94
+
95
+
```angular2html
96
+
/bin/sh docker-images/export.sh --version 2.x --image-name ce-dev --dockerfile-path base
0 commit comments