File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -79,9 +79,10 @@ export default class BuildCmd extends BaseCmd {
79
79
if ( this . composeConfig [ 'x-ce_dev' ] ) {
80
80
containerName = this . composeConfig [ 'x-ce_dev' ] . project_name + '-' + name
81
81
}
82
+
82
83
let version = AppSettings . ceDevVersion + '.x'
83
84
if ( this . developmentMode ) {
84
- version + = '- devel'
85
+ version = 'devel-' + version
85
86
}
86
87
87
88
ux . action . start ( 'Committing container ' + containerName + ' as a new image.' )
@@ -98,8 +99,9 @@ export default class BuildCmd extends BaseCmd {
98
99
private generateCompose ( ) : void {
99
100
let version = AppSettings . ceDevVersion + '.x'
100
101
if ( this . developmentMode ) {
101
- version + = '- devel'
102
+ version = 'devel-' + version
102
103
}
104
+
103
105
ux . action . start ( 'Generating new compose file ' + this . composeDest + '.' )
104
106
for ( const [ name , service ] of Object . entries ( this . composeConfig . services ) ) {
105
107
const containerName = this . composeConfig [ 'x-ce_dev' ] . project_name + '-' + name
Original file line number Diff line number Diff line change @@ -50,8 +50,9 @@ export default class PushCmd extends DockerImagesCmd {
50
50
private push ( ) : void {
51
51
let version = AppSettings . ceDevVersion + '.x'
52
52
if ( this . developmentMode ) {
53
- version + = '- devel'
53
+ version = 'devel-' + version
54
54
}
55
+
55
56
for ( const name of Object . keys ( this . composeConfig . services ) ) {
56
57
const containerName = this . composeConfig [ 'x-ce_dev' ] . project_name + '-' + name
57
58
ux . action . start ( 'Pushing image ' + containerName )
Original file line number Diff line number Diff line change @@ -250,8 +250,9 @@ export default class ControllerManager {
250
250
// If in development mode, we use devel version.
251
251
let version = AppSettings . ceDevVersion + '.x' ;
252
252
if ( this . developmentMode ) {
253
- version + = '- devel' ;
253
+ version = 'devel-' + version
254
254
}
255
+
255
256
execSync ( this . dockerBin + ' pull codeenigma/ce-dev-controller:' + version , {
256
257
stdio : 'inherit' ,
257
258
} )
@@ -261,8 +262,9 @@ export default class ControllerManager {
261
262
const ipManager = new IPManager ( this . config , this . dockerBin )
262
263
let version = AppSettings . ceDevVersion + '.x'
263
264
if ( this . developmentMode ) {
264
- version + = '- devel'
265
+ version = 'devel-' + version
265
266
}
267
+
266
268
return {
267
269
networks : {
268
270
ce_dev : {
You can’t perform that action at this time.
0 commit comments