Skip to content

Commit

Permalink
refactor: rename binary to cartesi-rollups-node
Browse files Browse the repository at this point in the history
  • Loading branch information
torives committed Oct 4, 2023
1 parent 1dde711 commit b359f5d
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ARG BASE_PATH=/opt/cartesi
ARG RUST_BUILD_PATH=${BASE_PATH}/src/rollups-node/offchain
ARG DEPLOYMENT_PATH=${BASE_PATH}/share/deployments
ARG GO_BASE_PATH=/go
ARG GO_BUILD_PATH=${GO_BASE_PATH}/rollups-node
ARG GO_BUILD_PATH=${GO_BASE_PATH}/cartesi-rollups-node
ARG GO_BIN_PATH=${GO_BASE_PATH}/bin
ARG RUNTIME_DIR=/var/opt/cartesi

Expand Down Expand Up @@ -78,7 +78,7 @@ FROM golang:${GO_VERSION}-bookworm as go-builder
ARG GO_BUILD_PATH
WORKDIR ${GO_BUILD_PATH}
COPY . .
RUN go install -ldflags "-s -w" ./cmd/cartesi-node
RUN go install -ldflags "-s -w" ./cmd/cartesi-rollups-node

#
# Runtime
Expand Down Expand Up @@ -106,7 +106,7 @@ ENV PATH="${BASE_PATH}/bin:${PATH}"

# Copy Go binary
ARG GO_BIN_PATH
COPY --from=go-builder ${GO_BIN_PATH}/cartesi-node .
COPY --from=go-builder ${GO_BIN_PATH}/cartesi-rollups-node .

# Setup runtime dir
ARG RUNTIME_DIR
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package main
import "github.com/spf13/cobra"

var noBackend = &cobra.Command{
Use: "no-backend",
Short: "Starts the node in no-backend mode",
Use: "nobackend",
Short: "Starts the node in nobackend mode",
DisableFlagsInUseLine: true,
Run: func(cmd *cobra.Command, args []string) {
println("TODO")
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package main
import "github.com/spf13/cobra"

var rootCmd = &cobra.Command{
Use: "cartesi-node",
Use: "cartesi-rollups-node",
CompletionOptions: cobra.CompletionOptions{HiddenDefaultCmd: true},
DisableFlagsInUseLine: true,
}
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// (c) Cartesi and individual authors (see AUTHORS)
// SPDX-License-Identifier: Apache-2.0 (see LICENSE)

package services

import (
Expand All @@ -19,13 +22,12 @@ func TestGraphQLService(t *testing.T) {
exit := make(chan error)

go func() {
<-time.After(100 * time.Millisecond)
if err := service.Start(ctx); err != nil {
exit <- err
}
}()

<-time.After(200 * time.Millisecond)
<-time.After(100 * time.Millisecond)
cancel()

err := <-exit
Expand All @@ -40,7 +42,6 @@ func TestGraphQLService(t *testing.T) {
func setupEnvVars() {
abs, _ := filepath.Abs("../../../offchain/target/debug")
os.Setenv("PATH", abs)
os.Setenv("POSTGRES_PASSWORD", "pw")
}

func assertExitErrorWasCausedBy(err *exec.ExitError, signal syscall.Signal) bool {
Expand Down

0 comments on commit b359f5d

Please sign in to comment.