Fixed several build issues (#436)

This commit is contained in:
Dulana Peiris
2025-09-02 03:59:49 +05:30
committed by GitHub
parent 79506de211
commit 2d346cee06
4 changed files with 8 additions and 6 deletions

View File

@@ -32,10 +32,11 @@ fi
# Download the frozen image download file if not exists
if [ ! -f "$docker_bin/download-frozen-image-v2.sh" ]; then
! wget https://raw.githubusercontent.com/moby/moby/master/contrib/download-frozen-image-v2.sh --directory-prefix $docker_bin &&
echo "Error downloading download-frozen-image-v2" && exit 1
chmod +x $docker_bin/download-frozen-image-v2.sh
chown -R $(id -u):$(id -g) $docker_bin/download-frozen-image-v2.sh
mkdir -p "$docker_bin"
wget https://raw.githubusercontent.com/moby/moby/master/contrib/download-frozen-image-v2.sh -O "$docker_bin/download-frozen-image-v2.sh" ||
{ echo "Error downloading download-frozen-image-v2"; exit 1; }
chmod +x "$docker_bin/download-frozen-image-v2.sh"
chown -R $(id -u):$(id -g) "$docker_bin/download-frozen-image-v2.sh"
fi
exit 0

View File

@@ -115,6 +115,7 @@ namespace conf
std::string config_file; // Full path to the config file.
std::string log_dir; // Log directory full path.
std::string data_dir; // Data directory full path.
std::string dns_evernode_sh;
};
// Global context struct exposed to the application.

View File

@@ -165,7 +165,7 @@ namespace hp
// return -1;
// }
const std::string image_name = image;
std::string image_name = image;
ports instance_ports;
if (!vacant_ports.empty())
@@ -198,7 +198,7 @@ namespace hp
auto pos = image_name.find("--");
if (pos != std::string::npos) {
image_name = image_name.substr(0, pos);
image_name = image_name.substr(0, pos);
}
if (create_contract(username, owner_pubkey, contract_id, contract_dir, instance_ports, info) == -1 ||