Go to the documentation of this file.
22 #ifndef DOCKER_LAUNCHER_H
23 #define DOCKER_LAUNCHER_H
25 #include "nrp_general_library/config/cmake_constants.h"
29 #include <boost/python.hpp>
31 namespace bpy = boost::python;
42 const std::vector<std::string> &envParams,
43 const std::vector<std::string> &startParams,
bool appendParentEnv =
true,
44 int logFD = -1)
override;
55 bpy::object _dockerHandle;
59 bool _printLogs =
true;
61 std::string getDockerLogs();
64 #endif // DOCKER_LAUNCHER_H
pid_t stopProcess(unsigned int killWait) override
Stop a running engine process.
Definition: docker_launcher.cpp:85
pid_t launchProcess(const nlohmann::json &launcherConfig, const std::string &procCmd, const std::vector< std::string > &envParams, const std::vector< std::string > &startParams, bool appendParentEnv=true, int logFD=-1) override
Fork a new process for the given engine. Will read environment variables and start params from engine...
Definition: docker_launcher.cpp:38
Definition: docker_launcher.h:35
Class for launch commands. Must be specialized further.
Definition: launch_command.h:93
const char LAUNCH_DOCKER_COMMAND[]
Definition: docker_launcher.h:33
~DockerLauncher() override
Definition: docker_launcher.cpp:30
ENGINE_RUNNING_STATUS
Engine Process status.
Definition: launch_command.h:39
ENGINE_RUNNING_STATUS getProcessStatus() override
Get the current engine process status. If status cannot be retrieved, return ENGINE_RUNNING_STATUS::U...
Definition: docker_launcher.cpp:109
nlohmann::json json
Definition: engine_json_server.cpp:31