Skip to content

Commit

Permalink
wip: nixify
Browse files Browse the repository at this point in the history
  • Loading branch information
pshirshov committed Oct 30, 2024
1 parent 0c49f2b commit 9950a6c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function nixify() {
exec nix develop \
--ignore-environment \
--keep HOME \
--keep DOCKER_HOST \
--keep CI_BRANCH \
--keep CI_COMMIT \
--keep CI_BRANCH_TAG \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,17 @@ class DockerSupportModule[F[_]: TagK](configModule: ModuleBase) extends ModuleDe
make[DefaultDockerClientConfig].from {
(clientConfig: Docker.ClientConfig) =>
/** We do not need to use global registry here since it would be overridden in CMD requests. */
val remote = clientConfig.remote.filter(_ => clientConfig.useRemote)
val remote = clientConfig.remote
.filter(_ => clientConfig.useRemote)
Value(DefaultDockerClientConfig.createDefaultConfigBuilder())
.mut(remote)((b, c) => b.withDockerHost(c.host).withDockerTlsVerify(c.tlsVerify).withDockerCertPath(c.certPath).withDockerConfig(c.config))
.mut(remote)(
(builder, remoteConfig) =>
builder
.withDockerHost(remoteConfig.host)
.withDockerTlsVerify(remoteConfig.tlsVerify)
.withDockerCertPath(remoteConfig.certPath)
.withDockerConfig(remoteConfig.config)
)
.get.build()
}

Expand Down

0 comments on commit 9950a6c

Please sign in to comment.