forked from forbole/callisto
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b52687
commit a3cd22b
Showing
3 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM --platform=$TARGETPLATFORM hasura/graphql-engine:v2.35.0.cli-migrations-v3 | ||
COPY hasura hasura | ||
WORKDIR hasura |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package hasura | ||
|
||
import ( | ||
"context" | ||
_ "embed" | ||
|
||
"github.com/CoreumFoundation/coreum-tools/pkg/build" | ||
"github.com/CoreumFoundation/crust/build/config" | ||
"github.com/CoreumFoundation/crust/build/docker" | ||
) | ||
|
||
var ( | ||
//go:embed Dockerfile | ||
dockerfile []byte | ||
) | ||
|
||
// BuildDockerImage builds docker image of the faucet. | ||
func BuildDockerImage(ctx context.Context, deps build.DepsFunc) error { | ||
return docker.BuildImage(ctx, docker.BuildImageConfig{ | ||
ContextDir: ".", // TODO (wojciech): Later on, move `hasura` dir here | ||
ImageName: "hasura", | ||
Dockerfile: dockerfile, | ||
Versions: []string{config.ZNetVersion}, | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters