Skip to content

neptoon.utils

docker_utils

Functions:

is_running_in_docker

is_running_in_docker()

Checks whether the current kernel is running in a docker container.

Returns:

Type Description
bool

Whether in docker container

return_file_path_with_suffix

return_file_path_with_suffix(base_path)

This is specifically used internally during docker runs. Input data is appended as /workingdir/inputdata. This could be a .csv .zip .tar or folder. This will check and return name with correct suffix.

Parameters:

Name Type Description Default
base_path str

The path to check

required

Returns:

Type Description
str

path with suffix