Giter Club home page Giter Club logo

Comments (7)

d0x2f avatar d0x2f commented on June 2, 2024 3

What's happening is the apt-get upgrade part is running on your local machine.

change

docker run \
  -v cargo-cache:/root/.cargo/registry \
  -v "$PWD:/volume" \
  --rm \
  -it clux/muslrust \
  apt-get update && apt-get upgrade

to

docker run \
  -v cargo-cache:/root/.cargo/registry \
  -v "$PWD:/volume" \
  --rm \
  -it clux/muslrust \
  /bin/sh -c 'apt-get update && apt-get upgrade'

from muslrust.

clux avatar clux commented on June 2, 2024 1

Thanks @d0x2f .
@murtyjones you might find it easier to make an actual Dockerfile and use FROM clux/muslrust:stable as the first line. See this builder pattern

from muslrust.

d0x2f avatar d0x2f commented on June 2, 2024 1

You need to put RUN commands on the same line or escape the new line:

change

RUN apt-get update &&
apt-get -y install jq

to

RUN apt-get update && apt-get -y install jq

Also the grafana image may not have apt-get available.
anyway, your question has nothing to do with muslrust, this isn't the right place to ask for help.

from muslrust.

murtyjones avatar murtyjones commented on June 2, 2024

(What I'm ultimately trying to do is extend this image to include Python 3, so if there's a better way of doing that that avoids this issue altogether please let me know!)

from muslrust.

sivanarayana494 avatar sivanarayana494 commented on June 2, 2024

Team I'm try to run below command but i'm getting the error.

FROM grafana/grafana:7.1.0

USER root
RUN apt-get update &&
apt-get -y install jq

USER grafana
COPY ./dashboards/ /dashboards/
COPY ./datasources/ /datasources/
COPY ./scripted_dashboards/ /usr/share/grafana/public/dashboards/

COPY ./run1.sh /run1.sh

ENTRYPOINT ["bash","-x","/run1.sh"]

Getting: /bin/sh: apt-get: not found
ERROR: Service 'grafana' failed to build: The command '/bin/sh -c apt-get update && apt-get -y install jq' returned a non-zero code: 127

Please help me on this

from muslrust.

sivanarayana494 avatar sivanarayana494 commented on June 2, 2024

from muslrust.

d0x2f avatar d0x2f commented on June 2, 2024

grafana is built on alpine linux, so it uses the 'apk' pakage manager, try

USER root
RUN apk add --no-cache jq
USER grafana

from muslrust.

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.