Giter Club home page Giter Club logo

Comments (7)

jerkyrs avatar jerkyrs commented on May 24, 2024

It seems as though it thinks these dependencies are already in the working directory, they probably should be pulled in using go get via run commands (bolt, proto, grpc)

RUN go get google.golang.org/grpc

from iotex-core.

zjshen14 avatar zjshen14 commented on May 24, 2024

@jerkyrs thanks for reporting the issue. Before building the docker image. try to do the following in your dev environment:

  1. Download and install glide
  2. Rund glide install

from iotex-core.

jerkyrs avatar jerkyrs commented on May 24, 2024

@zjshen14 ok this works but i don't like it.. You should not have to install something into your working directory before you run a Dockerfile, Dockerfile assumes you are running on a stateless server without anything more then Docker itself available.

I dont know if this is feasible because i never tested it but why not use glide inside container, i realize this comes with overhead have having to fetch each time but you can not rely on what is currently installed in the users working directory to facilitate a clean build.

RUN curl https://glide.sh/get | sh

from iotex-core.

zjshen14 avatar zjshen14 commented on May 24, 2024

It's possible to use glide inside container, we didn't do it to shorten the process of building an docker image. This is under the assumption that glide install has been executed so that dependencies will be copied into docker too. However, you have raise a fair point.

from iotex-core.

jerkyrs avatar jerkyrs commented on May 24, 2024

tested commit e380921 , the CMD syntax for starting iotex-server is incorrect

CMD ["iotex-server", "-stderrthreshold=WARNING", "-log_dir=/var/log/iotex/server.log", "-config=/etc/iotex/config.yaml"]

Available options

usage: server -config=[string]
  -config string
        specify configuration file path (default "./config.yaml")
  -log-level string
        Log level (default "info")
  -log-path string
        Log path

Does not start automatically as a result

from iotex-core.

zjshen14 avatar zjshen14 commented on May 24, 2024

Good catch! Will fix this

from iotex-core.

zjshen14 avatar zjshen14 commented on May 24, 2024

This is fixed in the latest master

from iotex-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.