Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to compile in docker #201

Open
PerrywLiu opened this issue Apr 2, 2024 · 1 comment
Open

Failed to compile in docker #201

PerrywLiu opened this issue Apr 2, 2024 · 1 comment

Comments

@PerrywLiu
Copy link

Seems to be the required dependency file, any friends have encountered similar problems? Please help, thank you!

#8 10.16. /pkg/mod/github.com/pebbe/[email protected]/reactor.go:10:4: undefined: State
User Chain API server
#8 10.16 . /pkg/mod/github.com/pebbe/[email protected]/reactor.go:11:9: undefined: State
#8 10.16 ../pkg/mod/github.com/pebbe/[email protected]/reactor.go:23:12: undefined: Poller
#8 10.16
#8 10.16 . • /pkg/mod/github.com/pebbe/[email protected]/utils.go:17:12: undefined: Socket
#8 10.16
#8 10.16../pkg/mod/github.com/pebbe/[email protected]/reactor.go:21:16: undefined: Socket 由两个模抉合井而来:
•./pkg/mod/github.com/pebbe/[email protected]/reactor.go: 61:34: undefined: Socket 。Switcher API Server 提供触发 Stratum 切换的API
#8 10.16../pkg/mod/github.com/pebbe/[email protected]/reactor.go:61:49: undefined: State
。 Init User Coin 初始化zookeeper里的用户币种记录
#8 10.16../pkg/mod/github.com/pebbe/[email protected]/reactor.go: 68:37: undefined: Socket
•./pkg/mod/github.com/pebbe/[email protected]/utils.go:28:12: undefined: Socket
#8 10.16 ../pkg/mod/github.com/pebbe/[email protected]/utils.go:28:12: too many error

@journeytosilius
Copy link

# Dockerfile.base
FROM debian:12 AS base

# Install necessary packages
RUN apt-get update && apt-get install -y \
    build-essential \
    libczmq-dev \
    libzmq5 \
    libczmq4 \
    pkg-config \
    git \
    wget

# Set Go
RUN wget https://golang.org/dl/go1.23.1.linux-amd64.tar.gz && \
    tar -C /usr/local -xzf go1.23.1.linux-amd64.tar.gz && \
    rm go1.23.1.linux-amd64.tar.gz

ENV PATH=$PATH:/usr/local/go/bin
ENV GOPATH=/go
ENV PATH=$PATH:$GOPATH/bin

# Set the working directory
WORKDIR /go/src/github.com/blockinterface/prospect-etl

# Copy the project files
COPY . .

# Configure Git
RUN git config --global url."[email protected]:".insteadOf "https://github.com/"

# Configure SSH for private repositories
COPY docker/.ssh /root/.ssh
RUN chmod 700 /root/.ssh && chmod 600 /root/.ssh/*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants