Skip to content

Commit

Permalink
Distgen generated content
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzymadness committed Feb 16, 2023
1 parent edfe638 commit 56c9a98
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 35 deletions.
14 changes: 9 additions & 5 deletions 2.7/test/run
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,15 @@ test_from_dockerfile_minimal(){
# ubi8/python-39-minimal / ubi8/python-39
FULL_IMAGE_NAME=${IMAGE_NAME/-minimal/}

# mod_wsgi in micropipenv-requirements-test-app
# TODO: Find a better way how to specify full/minimal images that should work together
sed "s@#IMAGE_NAME#@${IMAGE_NAME}@;s@#FULL_IMAGE_NAME#@${FULL_IMAGE_NAME}@" $test_dir/from-dockerfile/mod_wsgi.Dockerfile.tpl > $test_dir/from-dockerfile/Dockerfile
ct_test_app_dockerfile $test_dir/from-dockerfile/Dockerfile $test_dir/micropipenv-requirements-test-app 'Hello World from mod_wsgi hosted WSGI application!' app-src
check_result $?
if ct_pull_image "$FULL_IMAGE_NAME"; then
# mod_wsgi in micropipenv-requirements-test-app
sed "s@#IMAGE_NAME#@${IMAGE_NAME}@;s@#FULL_IMAGE_NAME#@${FULL_IMAGE_NAME}@" $test_dir/from-dockerfile/mod_wsgi.Dockerfile.tpl > $test_dir/from-dockerfile/Dockerfile
ct_test_app_dockerfile $test_dir/from-dockerfile/Dockerfile $test_dir/micropipenv-requirements-test-app 'Hello World from mod_wsgi hosted WSGI application!' app-src
check_result $?
else
echo "[SKIP] Multistage build from Dockerfile - $FULL_IMAGE_NAME does not exists."
fi

}

test_application_with_user() {
Expand Down
14 changes: 9 additions & 5 deletions 3.10/test/run
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,15 @@ test_from_dockerfile_minimal(){
# ubi8/python-39-minimal / ubi8/python-39
FULL_IMAGE_NAME=${IMAGE_NAME/-minimal/}

# mod_wsgi in micropipenv-requirements-test-app
# TODO: Find a better way how to specify full/minimal images that should work together
sed "s@#IMAGE_NAME#@${IMAGE_NAME}@;s@#FULL_IMAGE_NAME#@${FULL_IMAGE_NAME}@" $test_dir/from-dockerfile/mod_wsgi.Dockerfile.tpl > $test_dir/from-dockerfile/Dockerfile
ct_test_app_dockerfile $test_dir/from-dockerfile/Dockerfile $test_dir/micropipenv-requirements-test-app 'Hello World from mod_wsgi hosted WSGI application!' app-src
check_result $?
if ct_pull_image "$FULL_IMAGE_NAME"; then
# mod_wsgi in micropipenv-requirements-test-app
sed "s@#IMAGE_NAME#@${IMAGE_NAME}@;s@#FULL_IMAGE_NAME#@${FULL_IMAGE_NAME}@" $test_dir/from-dockerfile/mod_wsgi.Dockerfile.tpl > $test_dir/from-dockerfile/Dockerfile
ct_test_app_dockerfile $test_dir/from-dockerfile/Dockerfile $test_dir/micropipenv-requirements-test-app 'Hello World from mod_wsgi hosted WSGI application!' app-src
check_result $?
else
echo "[SKIP] Multistage build from Dockerfile - $FULL_IMAGE_NAME does not exists."
fi

}

test_application_with_user() {
Expand Down
14 changes: 9 additions & 5 deletions 3.11/test/run
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,15 @@ test_from_dockerfile_minimal(){
# ubi8/python-39-minimal / ubi8/python-39
FULL_IMAGE_NAME=${IMAGE_NAME/-minimal/}

# mod_wsgi in micropipenv-requirements-test-app
# TODO: Find a better way how to specify full/minimal images that should work together
sed "s@#IMAGE_NAME#@${IMAGE_NAME}@;s@#FULL_IMAGE_NAME#@${FULL_IMAGE_NAME}@" $test_dir/from-dockerfile/mod_wsgi.Dockerfile.tpl > $test_dir/from-dockerfile/Dockerfile
ct_test_app_dockerfile $test_dir/from-dockerfile/Dockerfile $test_dir/micropipenv-requirements-test-app 'Hello World from mod_wsgi hosted WSGI application!' app-src
check_result $?
if ct_pull_image "$FULL_IMAGE_NAME"; then
# mod_wsgi in micropipenv-requirements-test-app
sed "s@#IMAGE_NAME#@${IMAGE_NAME}@;s@#FULL_IMAGE_NAME#@${FULL_IMAGE_NAME}@" $test_dir/from-dockerfile/mod_wsgi.Dockerfile.tpl > $test_dir/from-dockerfile/Dockerfile
ct_test_app_dockerfile $test_dir/from-dockerfile/Dockerfile $test_dir/micropipenv-requirements-test-app 'Hello World from mod_wsgi hosted WSGI application!' app-src
check_result $?
else
echo "[SKIP] Multistage build from Dockerfile - $FULL_IMAGE_NAME does not exists."
fi

}

test_application_with_user() {
Expand Down
14 changes: 9 additions & 5 deletions 3.6/test/run
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,15 @@ test_from_dockerfile_minimal(){
# ubi8/python-39-minimal / ubi8/python-39
FULL_IMAGE_NAME=${IMAGE_NAME/-minimal/}

# mod_wsgi in micropipenv-requirements-test-app
# TODO: Find a better way how to specify full/minimal images that should work together
sed "s@#IMAGE_NAME#@${IMAGE_NAME}@;s@#FULL_IMAGE_NAME#@${FULL_IMAGE_NAME}@" $test_dir/from-dockerfile/mod_wsgi.Dockerfile.tpl > $test_dir/from-dockerfile/Dockerfile
ct_test_app_dockerfile $test_dir/from-dockerfile/Dockerfile $test_dir/micropipenv-requirements-test-app 'Hello World from mod_wsgi hosted WSGI application!' app-src
check_result $?
if ct_pull_image "$FULL_IMAGE_NAME"; then
# mod_wsgi in micropipenv-requirements-test-app
sed "s@#IMAGE_NAME#@${IMAGE_NAME}@;s@#FULL_IMAGE_NAME#@${FULL_IMAGE_NAME}@" $test_dir/from-dockerfile/mod_wsgi.Dockerfile.tpl > $test_dir/from-dockerfile/Dockerfile
ct_test_app_dockerfile $test_dir/from-dockerfile/Dockerfile $test_dir/micropipenv-requirements-test-app 'Hello World from mod_wsgi hosted WSGI application!' app-src
check_result $?
else
echo "[SKIP] Multistage build from Dockerfile - $FULL_IMAGE_NAME does not exists."
fi

}

test_application_with_user() {
Expand Down
14 changes: 9 additions & 5 deletions 3.8/test/run
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,15 @@ test_from_dockerfile_minimal(){
# ubi8/python-39-minimal / ubi8/python-39
FULL_IMAGE_NAME=${IMAGE_NAME/-minimal/}

# mod_wsgi in micropipenv-requirements-test-app
# TODO: Find a better way how to specify full/minimal images that should work together
sed "s@#IMAGE_NAME#@${IMAGE_NAME}@;s@#FULL_IMAGE_NAME#@${FULL_IMAGE_NAME}@" $test_dir/from-dockerfile/mod_wsgi.Dockerfile.tpl > $test_dir/from-dockerfile/Dockerfile
ct_test_app_dockerfile $test_dir/from-dockerfile/Dockerfile $test_dir/micropipenv-requirements-test-app 'Hello World from mod_wsgi hosted WSGI application!' app-src
check_result $?
if ct_pull_image "$FULL_IMAGE_NAME"; then
# mod_wsgi in micropipenv-requirements-test-app
sed "s@#IMAGE_NAME#@${IMAGE_NAME}@;s@#FULL_IMAGE_NAME#@${FULL_IMAGE_NAME}@" $test_dir/from-dockerfile/mod_wsgi.Dockerfile.tpl > $test_dir/from-dockerfile/Dockerfile
ct_test_app_dockerfile $test_dir/from-dockerfile/Dockerfile $test_dir/micropipenv-requirements-test-app 'Hello World from mod_wsgi hosted WSGI application!' app-src
check_result $?
else
echo "[SKIP] Multistage build from Dockerfile - $FULL_IMAGE_NAME does not exists."
fi

}

test_application_with_user() {
Expand Down
14 changes: 9 additions & 5 deletions 3.9-minimal/test/run
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,15 @@ test_from_dockerfile_minimal(){
# ubi8/python-39-minimal / ubi8/python-39
FULL_IMAGE_NAME=${IMAGE_NAME/-minimal/}

# mod_wsgi in micropipenv-requirements-test-app
# TODO: Find a better way how to specify full/minimal images that should work together
sed "s@#IMAGE_NAME#@${IMAGE_NAME}@;s@#FULL_IMAGE_NAME#@${FULL_IMAGE_NAME}@" $test_dir/from-dockerfile/mod_wsgi.Dockerfile.tpl > $test_dir/from-dockerfile/Dockerfile
ct_test_app_dockerfile $test_dir/from-dockerfile/Dockerfile $test_dir/micropipenv-requirements-test-app 'Hello World from mod_wsgi hosted WSGI application!' app-src
check_result $?
if ct_pull_image "$FULL_IMAGE_NAME"; then
# mod_wsgi in micropipenv-requirements-test-app
sed "s@#IMAGE_NAME#@${IMAGE_NAME}@;s@#FULL_IMAGE_NAME#@${FULL_IMAGE_NAME}@" $test_dir/from-dockerfile/mod_wsgi.Dockerfile.tpl > $test_dir/from-dockerfile/Dockerfile
ct_test_app_dockerfile $test_dir/from-dockerfile/Dockerfile $test_dir/micropipenv-requirements-test-app 'Hello World from mod_wsgi hosted WSGI application!' app-src
check_result $?
else
echo "[SKIP] Multistage build from Dockerfile - $FULL_IMAGE_NAME does not exists."
fi

}

test_application_with_user() {
Expand Down
14 changes: 9 additions & 5 deletions 3.9/test/run
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,15 @@ test_from_dockerfile_minimal(){
# ubi8/python-39-minimal / ubi8/python-39
FULL_IMAGE_NAME=${IMAGE_NAME/-minimal/}

# mod_wsgi in micropipenv-requirements-test-app
# TODO: Find a better way how to specify full/minimal images that should work together
sed "s@#IMAGE_NAME#@${IMAGE_NAME}@;s@#FULL_IMAGE_NAME#@${FULL_IMAGE_NAME}@" $test_dir/from-dockerfile/mod_wsgi.Dockerfile.tpl > $test_dir/from-dockerfile/Dockerfile
ct_test_app_dockerfile $test_dir/from-dockerfile/Dockerfile $test_dir/micropipenv-requirements-test-app 'Hello World from mod_wsgi hosted WSGI application!' app-src
check_result $?
if ct_pull_image "$FULL_IMAGE_NAME"; then
# mod_wsgi in micropipenv-requirements-test-app
sed "s@#IMAGE_NAME#@${IMAGE_NAME}@;s@#FULL_IMAGE_NAME#@${FULL_IMAGE_NAME}@" $test_dir/from-dockerfile/mod_wsgi.Dockerfile.tpl > $test_dir/from-dockerfile/Dockerfile
ct_test_app_dockerfile $test_dir/from-dockerfile/Dockerfile $test_dir/micropipenv-requirements-test-app 'Hello World from mod_wsgi hosted WSGI application!' app-src
check_result $?
else
echo "[SKIP] Multistage build from Dockerfile - $FULL_IMAGE_NAME does not exists."
fi

}

test_application_with_user() {
Expand Down

0 comments on commit 56c9a98

Please # to comment.