adding a btcctl container and renaming the btcd Dockerfile.
This commit is contained in:
@@ -34,36 +34,13 @@ var (
|
|||||||
func strPtr(str string) *string { return &str }
|
func strPtr(str string) *string { return &str }
|
||||||
|
|
||||||
var buildConfigurations = []docker.BuildConfiguration{
|
var buildConfigurations = []docker.BuildConfiguration{
|
||||||
//docker.BuildConfiguration{
|
|
||||||
// Name: defaultRepositoryName + "/" + "btcd",
|
|
||||||
// ContextFilePath: "/tmp/btcd.tar",
|
|
||||||
// BuildOpts: types.ImageBuildOptions{
|
|
||||||
// Dockerfile: "docker/btcd/Dockerfile",
|
|
||||||
// Tags: []string{
|
|
||||||
// "v0.23.4",
|
|
||||||
// "latest",
|
|
||||||
// },
|
|
||||||
// BuildArgs: map[string]*string{
|
|
||||||
// "base_image": strPtr(defaultBuildContainer),
|
|
||||||
// "target_image": strPtr("indralabs/scratch:latest"),
|
|
||||||
// // This argument is the tag fetched by git
|
|
||||||
// // It MUST be updated alongside the tag above
|
|
||||||
// "git_repository": strPtr("github.com/btcsuite/btcd"),
|
|
||||||
// "git_tag": strPtr("v0.23.4"),
|
|
||||||
// },
|
|
||||||
// SuppressOutput: false,
|
|
||||||
// Remove: true,
|
|
||||||
// ForceRemove: true,
|
|
||||||
// PullParent: true,
|
|
||||||
// },
|
|
||||||
//},
|
|
||||||
docker.BuildConfiguration{
|
docker.BuildConfiguration{
|
||||||
Name: defaultRepositoryName + "/" + "lnd",
|
Name: defaultRepositoryName + "/" + "btcd",
|
||||||
ContextFilePath: "/tmp/lnd.tar",
|
ContextFilePath: "/tmp/btcd.tar",
|
||||||
BuildOpts: types.ImageBuildOptions{
|
BuildOpts: types.ImageBuildOptions{
|
||||||
Dockerfile: "docker/lnd/Dockerfile",
|
Dockerfile: "docker/btcd/btcd.Dockerfile",
|
||||||
Tags: []string{
|
Tags: []string{
|
||||||
"v0.15.5-beta",
|
"v0.23.4",
|
||||||
"latest",
|
"latest",
|
||||||
},
|
},
|
||||||
BuildArgs: map[string]*string{
|
BuildArgs: map[string]*string{
|
||||||
@@ -71,8 +48,8 @@ var buildConfigurations = []docker.BuildConfiguration{
|
|||||||
"target_image": strPtr("indralabs/scratch:latest"),
|
"target_image": strPtr("indralabs/scratch:latest"),
|
||||||
// This argument is the tag fetched by git
|
// This argument is the tag fetched by git
|
||||||
// It MUST be updated alongside the tag above
|
// It MUST be updated alongside the tag above
|
||||||
"git_repository": strPtr("github.com/lightningnetwork/lnd"),
|
"git_repository": strPtr("github.com/btcsuite/btcd"),
|
||||||
"git_tag": strPtr("v0.15.5-beta"),
|
"git_tag": strPtr("v0.23.4"),
|
||||||
},
|
},
|
||||||
SuppressOutput: false,
|
SuppressOutput: false,
|
||||||
Remove: true,
|
Remove: true,
|
||||||
@@ -80,6 +57,48 @@ var buildConfigurations = []docker.BuildConfiguration{
|
|||||||
PullParent: true,
|
PullParent: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
docker.BuildConfiguration{
|
||||||
|
Name: defaultRepositoryName + "/" + "btcctl",
|
||||||
|
ContextFilePath: "/tmp/btcctl.tar",
|
||||||
|
BuildOpts: types.ImageBuildOptions{
|
||||||
|
Dockerfile: "docker/btcd/btcctl.Dockerfile",
|
||||||
|
Tags: []string{
|
||||||
|
"v0.23.4",
|
||||||
|
"latest",
|
||||||
|
},
|
||||||
|
BuildArgs: map[string]*string{
|
||||||
|
"semver": strPtr("v0.23.4"),
|
||||||
|
},
|
||||||
|
SuppressOutput: false,
|
||||||
|
Remove: true,
|
||||||
|
ForceRemove: true,
|
||||||
|
PullParent: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
//docker.BuildConfiguration{
|
||||||
|
// Name: defaultRepositoryName + "/" + "lnd",
|
||||||
|
// ContextFilePath: "/tmp/lnd.tar",
|
||||||
|
// BuildOpts: types.ImageBuildOptions{
|
||||||
|
// Dockerfile: "docker/lnd/Dockerfile",
|
||||||
|
// Tags: []string{
|
||||||
|
// "v0.15.5-beta",
|
||||||
|
// "latest",
|
||||||
|
// },
|
||||||
|
// BuildArgs: map[string]*string{
|
||||||
|
// "base_image": strPtr(defaultBuildContainer),
|
||||||
|
// "target_image": strPtr("indralabs/scratch:latest"),
|
||||||
|
// // This argument is the tag fetched by git
|
||||||
|
// // It MUST be updated alongside the tag above
|
||||||
|
// "git_repository": strPtr("github.com/lightningnetwork/lnd"),
|
||||||
|
// "git_tag": strPtr("v0.15.5-beta"),
|
||||||
|
// },
|
||||||
|
// SuppressOutput: false,
|
||||||
|
// Remove: true,
|
||||||
|
// ForceRemove: true,
|
||||||
|
// PullParent: true,
|
||||||
|
// },
|
||||||
|
//},
|
||||||
//docker.BuildConfiguration{
|
//docker.BuildConfiguration{
|
||||||
// Name: defaultRepositoryName + "/" + "indra",
|
// Name: defaultRepositoryName + "/" + "indra",
|
||||||
// ContextFilePath: "/tmp/indra-" + indra.SemVer + ".tar",
|
// ContextFilePath: "/tmp/indra-" + indra.SemVer + ".tar",
|
||||||
|
|||||||
6
docker/btcd/btcctl.Dockerfile
Normal file
6
docker/btcd/btcctl.Dockerfile
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
ARG semver=master
|
||||||
|
|
||||||
|
FROM indralabs/btcd:${semver}
|
||||||
|
|
||||||
|
ENTRYPOINT ["/bin/btcctl", "--configfile=/etc/btcd/btcd.conf", "--rpccert=/etc/btcd/keys/rpc.cert"]
|
||||||
Reference in New Issue
Block a user