Skip to content

Commit

Permalink
fix: e2e docker
Browse files Browse the repository at this point in the history
  • Loading branch information
sangjanai committed Dec 3, 2024
1 parent 0f29b21 commit fb71045
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ echo "enableCors: true" >> /root/.cortexrc

# Install the engine
cortex engines install llama-cpp -s /opt/cortex.llamacpp
cortex engines list

# Start the cortex server
cortex start
cortex engines list

# Keep the container running by tailing the log files
tail -f /root/cortexcpp/logs/cortex.log &
Expand Down
4 changes: 4 additions & 0 deletions engine/cli/commands/server_start_cmd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ bool TryConnectToServer(const std::string& host, int port) {

bool ServerStartCmd::Exec(const std::string& host, int port,
const std::optional<std::string>& log_level) {
if (IsServerAlive(host, port)) {
CLI_LOG("The server has already started");
return true;
}
std::string log_level_;
if (!log_level.has_value()) {
log_level_ = "INFO";
Expand Down

0 comments on commit fb71045

Please sign in to comment.