Skip to content

Commit

Permalink
Fix issue #430 to allow running Mackoon container without SELinux
Browse files Browse the repository at this point in the history
SELinux causes EACCES: permission denied error to access /data
folder in a container when it's not disabled. For running tests
it's ok to run it with selinux disabled.
  • Loading branch information
mpryc committed Apr 26, 2022
1 parent e75a20e commit 81905fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/run-mackoon-tests
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ fi

# Run Mockoon container
echo "Running mockoon container"
RUNNING_ID=$("${CONTAINER_ENGINE}" run --name="${TEST_CONTAINER_NAME}" -d -v "${MOCK_JSON}":/data -p "${MOCKOON_PORT}":"${MOCKOON_PORT}" "${MOCKOON_CONTAINER}" -d /data)
RUNNING_ID=$("${CONTAINER_ENGINE}" run --name="${TEST_CONTAINER_NAME}" -d -v "${MOCK_JSON}":/data --security-opt label=disable -p "${MOCKOON_PORT}":"${MOCKOON_PORT}" "${MOCKOON_CONTAINER}" -d /data)

if [ "${RUNNING_ID}" == "" ]; then
echo "Mockoon is not working as expected."
Expand Down

0 comments on commit 81905fd

Please sign in to comment.