Comments (7)
My apologies this has changed a little and I never explained how!
We build for both 20 and 22; and so one can provide a build-time parameter to choose the base image:
$ docker build --build-arg image=22.04 -t clangbuilder .
worked for me. Your change to the Dockerfile ought to be equivalent, and on a fresh new computer this worked for me. I will update the README.
Can you post the full output of your build and we can try and diagnose the problem?
from clang-builder.
Thanks for the update and the output in my local environment is:
$docker build --build-arg image=22.04 -t clangbuilder .
Sending build context to Docker daemon 95.26MB
Step 1 : ARG image
Please provide a source image with `from` prior to commit
It looks like my docker version is not good and it doesn't handle the argument --build-arg
well.
My docker version is:
$docker --version
Docker version 20.10.6, build 370c289
So I would try to look at how to update my docker.
from clang-builder.
That's the same docker version as I haev...curious :(
from clang-builder.
This is what it looks like when I run locally:
mgodbolt-laptop:/t/clang-builder (main|✔) $ git status
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
mgodbolt-laptop:/t/clang-builder (main|✔) $ docker --version
Docker version 20.10.16, build aa7e414
mgodbolt-laptop:/t/clang-builder (main|✔) $ docker build --build-arg image=22.04 -t clangbuilder .
Sending build context to Docker daemon 270.8kB
Step 1/13 : ARG image
Step 2/13 : FROM ubuntu:${image}
---> 01f29b872827
Step 3/13 : LABEL MAINTAINER Matt Godbolt <[email protected]>
---> Using cache
---> edc037f4aae1
...and so on as it builds...
from clang-builder.
how are you launching docker
- what is $docker
? is it a script of some sort? or is the $
your prompt?
from clang-builder.
From your build:
Sending build context to Docker daemon 95.26MB
This is also very suspicious - there isn't 95MB of data in the repository...I can't imagine what's going on
from clang-builder.
how are you launching
docker
- what is$docker
? is it a script of some sort? or is the$
your prompt?
Yeah, the $
marker is the start of the command line. (Maybe the prompt
in your words).
This is also very suspicious - there isn't 95MB of data in the repository... I can't imagine what's going on
Yeah, I guess there may be some troubles in my local settings. Since I make it after I change to a brand new machine. I guess it may not make sense to require the docker users to handle such issues. So I'd like to close the issue. Thanks!
from clang-builder.
Related Issues (8)
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 clang-builder.