Skip to content

juno镜像问题 #682

Description

@TaylorWx

目前是因为etcd和mysql是独立部署的,并且提前部署过了。所以采用juno和juno agent单机房单独部署。但是juno部署出现了部分问题。希望帮忙看下,给出解决方案,谢谢!
1、现在没有最新的官方镜像可以获取到,我使用的docker pull registry.cn-hangzhou.aliyuncs.com/sophos/ghcr.io.douyu.juno-admin-dev
2、现在页面上会报错

  • tnelPipeline5U#Mx: Error 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT count(*) as count FROM 'test_pipeline_task WHERE pipeline_id = test_pipe' at line
    3、我准备用最新的代码自己构建镜像,但是总是拉取不下来。有没有最新的镜像
    这是我写的dockfile
    COPY go.mod go.sum ./
    RUN go mod download

    复制全部源码

COPY . .

编译 admin 服务(静态编译,便于 Alpine 运行)

RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -o juno-admin ./cmd/admin

第二阶段:运行镜像

FROM alpine:latest

RUN apk --no-cache add ca-certificates tzdata

WORKDIR /root/juno

复制编译好的二进制

COPY --from=builder /build/juno-admin .

配置文件通过 ConfigMap 挂载,无需内置

暴露 Admin 服务的两个端口(50002 为 HTTP API,50004 为 RPC)

EXPOSE 50002 50004

ENTRYPOINT ["./juno-admin"]

设置 Go 模块代理为国内镜像

ENV GOPROXY=https://goproxy.cn,direct

然后执行依赖下载

RUN go mod download
安度不

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions