Skip to content

Commit

Permalink
fix: add wget to nixpacks builds
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed May 23, 2024
1 parent df9ec71 commit d35cb5d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/Jobs/ApplicationDeploymentJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -1257,6 +1257,15 @@ private function generate_nixpacks_confs()
// Do any modifications here
$this->generate_env_variables();
$merged_envs = $this->env_args->merge(collect(data_get($parsed, 'variables', [])));
$aptPkgs = data_get($parsed, 'phases.setup.aptPkgs');
// add curl and wget if not found in the array
if (!in_array('curl', $aptPkgs)) {
$aptPkgs[] = 'curl';
}
if (!in_array('wget', $aptPkgs)) {
$aptPkgs[] = 'wget';
}
data_set($parsed, 'phases.setup.aptPkgs', $aptPkgs);
data_set($parsed, 'variables', $merged_envs->toArray());
$this->nixpacks_plan = json_encode($parsed, JSON_PRETTY_PRINT);
}
Expand Down

0 comments on commit d35cb5d

Please sign in to comment.