Skip to content

Commit 1967b4d

Browse files
Costas Papastathisgithub-actions[bot]
Costas Papastathis
authored andcommitted
excluding init wrapper from rhel7
1 parent b6787b4 commit 1967b4d

File tree

2 files changed

+25
-14
lines changed

2 files changed

+25
-14
lines changed

14/Dockerfile.rhel7

+1-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ RUN yum install -y yum-utils && \
6666
yum -y clean all --enablerepo='*'
6767

6868
# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
69-
COPY ./s2i/bin/ /usr/libexec/s2i
70-
RUN chmod +x /usr/libexec/s2i/init-wrapper
69+
COPY ./s2i/bin/ $STI_SCRIPTS_PATH
7170

7271
# Copy extra files to the image.
7372
COPY ./root/ /

test/test-lib-nodejs.sh

+24-12
Original file line numberDiff line numberDiff line change
@@ -490,33 +490,45 @@ function test_dev_mode_true_development() {
490490
}
491491

492492
function test_node_cmd_production_init_wrapper_false() {
493-
# NODE_ENV=production INIT_WRAPPER=false NODE_CMD="node server.js"
494-
test_node_cmd app production false "node server.js"
493+
if [ "$OS" != "rhel7" ]; then
494+
# NODE_ENV=production INIT_WRAPPER=false NODE_CMD="node server.js"
495+
test_node_cmd app production false "node server.js"
496+
fi
495497
}
496498

497499
function test_node_cmd_development_init_wrapper_true() {
498-
# NODE_ENV=development INIT_WRAPPER=true NODE_CMD="node server.js"
499-
test_node_cmd app development true "node server.js"
500+
if [ "$OS" != "rhel7" ]; then
501+
# NODE_ENV=development INIT_WRAPPER=true NODE_CMD="node server.js"
502+
test_node_cmd app development true "node server.js"
503+
fi
500504
}
501505

502506
function test_node_cmd_production_init_wrapper_true() {
503-
# NODE_ENV=production INIT_WRAPPER=true NODE_CMD="node server.js"
504-
test_node_cmd app production true "node server.js"
507+
if [ "$OS" != "rhel7" ]; then
508+
# NODE_ENV=production INIT_WRAPPER=true NODE_CMD="node server.js"
509+
test_node_cmd app production true "node server.js"
510+
fi
505511
}
506512

507513
function test_node_cmd_development_init_wrapper_false() {
508-
# NODE_ENV=development INIT_WRAPPER=false NODE_CMD="node server.js"
509-
test_node_cmd app development false "node server.js"
514+
if [ "$OS" != "rhel7" ]; then
515+
# NODE_ENV=development INIT_WRAPPER=false NODE_CMD="node server.js"
516+
test_node_cmd app development false "node server.js"
517+
fi
510518
}
511519

512520
function test_init_wrapper_true_development() {
513-
# NODE_ENV=development INIT_WRAPPER=true
514-
test_node_cmd app development true
521+
if [ "$OS" != "rhel7" ]; then
522+
# NODE_ENV=development INIT_WRAPPER=true
523+
test_node_cmd app development true
524+
fi
515525
}
516526

517527
function test_init_wrapper_false_development() {
518-
# NODE_ENV=development INIT_WRAPPER=true
519-
test_node_cmd app development false
528+
if [ "$OS" != "rhel7" ]; then
529+
# NODE_ENV=development INIT_WRAPPER=true
530+
test_node_cmd app development false
531+
fi
520532
}
521533

522534
function test_dev_mode_false_development() {

0 commit comments

Comments
 (0)