Skip to content

Commit

Permalink
[nixpacks] install ca-certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Mar 10, 2024
1 parent cb96448 commit 9cae50a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nixpacks/src/dagger/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export async function build(
.pipeline(Job.build)
.container()
.from("pkgxdev/pkgx:latest")
.withExec(["apt-get", "update"])
.withExec(["apt-get", "install", "-y", "ca-certificates"])
.withMountedCache("/root/.pkgx", dag.cacheVolume("pkgx-cache"))
.withExec(["pkgx", "install", "nixpacks", "docker"])
.withExec(["nixpacks", "--version"])
Expand Down Expand Up @@ -99,6 +101,8 @@ export async function dev(
.pipeline(Job.dev)
.container()
.from("pkgxdev/pkgx:latest")
.withExec(["apt-get", "update"])
.withExec(["apt-get", "install", "-y", "ca-certificates"])
.withMountedCache("/root/.pkgx", dag.cacheVolume("pkgx-cache"))
.withExec(["pkgx", "install", "nixpacks", "docker"])
.withExec(["nixpacks", "--version"])
Expand Down
4 changes: 4 additions & 0 deletions nixpacks/src/dagger/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ export const docker = (version = "24.0", cached = false) => {
);
}
return ctr
.withExec(["apk", "update"])
.withExec(["apk", "add", "ca-certificates"])
.withExec(["sh", "-c", "rm -rf /var/cache/apk/*"])
.withExec(["update-ca-certificates"])
.withExec(
[
"dockerd",
Expand Down

0 comments on commit 9cae50a

Please sign in to comment.