Skip to content

Commit

Permalink
excluding init wrapper from rhel7
Browse files Browse the repository at this point in the history
  • Loading branch information
Costas Papastathis committed Jun 10, 2024
1 parent c5ad46d commit b29a4e1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
3 changes: 1 addition & 2 deletions 14/Dockerfile.rhel7
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ RUN yum install -y yum-utils && \
yum -y clean all --enablerepo='*'

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

# Copy extra files to the image.
COPY ./root/ /
Expand Down
36 changes: 24 additions & 12 deletions test/test-lib-nodejs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -517,33 +517,45 @@ function test_dev_mode_true_development() {
}

function test_node_cmd_production_init_wrapper_false() {
# NODE_ENV=production INIT_WRAPPER=false NODE_CMD="node server.js"
test_node_cmd app production false "node server.js"
if [ "$OS" != "rhel7" ]; then
# NODE_ENV=production INIT_WRAPPER=false NODE_CMD="node server.js"
test_node_cmd app production false "node server.js"
fi
}

function test_node_cmd_development_init_wrapper_true() {
# NODE_ENV=development INIT_WRAPPER=true NODE_CMD="node server.js"
test_node_cmd app development true "node server.js"
if [ "$OS" != "rhel7" ]; then
# NODE_ENV=development INIT_WRAPPER=true NODE_CMD="node server.js"
test_node_cmd app development true "node server.js"
fi
}

function test_node_cmd_production_init_wrapper_true() {
# NODE_ENV=production INIT_WRAPPER=true NODE_CMD="node server.js"
test_node_cmd app production true "node server.js"
if [ "$OS" != "rhel7" ]; then
# NODE_ENV=production INIT_WRAPPER=true NODE_CMD="node server.js"
test_node_cmd app production true "node server.js"
fi
}

function test_node_cmd_development_init_wrapper_false() {
# NODE_ENV=development INIT_WRAPPER=false NODE_CMD="node server.js"
test_node_cmd app development false "node server.js"
if [ "$OS" != "rhel7" ]; then
# NODE_ENV=development INIT_WRAPPER=false NODE_CMD="node server.js"
test_node_cmd app development false "node server.js"
fi
}

function test_init_wrapper_true_development() {
# NODE_ENV=development INIT_WRAPPER=true
test_node_cmd app development true
if [ "$OS" != "rhel7" ]; then
# NODE_ENV=development INIT_WRAPPER=true
test_node_cmd app development true
fi
}

function test_init_wrapper_false_development() {
# NODE_ENV=development INIT_WRAPPER=true
test_node_cmd app development false
if [ "$OS" != "rhel7" ]; then
# NODE_ENV=development INIT_WRAPPER=true
test_node_cmd app development false
fi
}

function test_dev_mode_false_development() {
Expand Down

0 comments on commit b29a4e1

Please sign in to comment.