Comments (7)
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.
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.
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.
(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.
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.
from muslrust.
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)
- Please rebuild "stable" less often or add a "LTS" version HOT 3
- What do you think about using tags like official Rust Docker image? HOT 1
- feature request: add protoc into the image HOT 3
- Add zlib-ng? HOT 4
- Changes needed to get rust-rdkafka built
- must-ar not executing successfully while building ring HOT 6
- Add test for latest tonic HOT 3
- Make builder cancellable with Ctrl-C? HOT 1
- Failed to find tool. Is `musl-g++` installed? HOT 1
- failed to compile diesel_cli in clux/muslrust image HOT 1
- WORKDIR defaults to /volume -- is this desired? HOT 1
- It would be awesome to use mold to build HOT 2
- What do you think about this anti-musl post? HOT 6
- How to disable `cc1: all warnings being treated as errors` HOT 1
- DNS errors in binaries built with muslrust when run in rootless Docker HOT 1
- Linker errors when building binaries (failed to set dynamic section sizes: bad value) HOT 5
- Unable to build prost due to old version of cmake on ubuntu:xenial HOT 3
- Build and fetch errors with clux/muslrust:1.60.0 HOT 18
- explore possibility of removing older C libraries
- explore building an arm64 variant HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from muslrust.