Comments (8)
What version of docker are you using? It sounds like you have an older version that's not supporting the image labels (as builder
)
The FROM golang:1.10
refers to a docker image, not your local golang installation.
from helm-app-operator-kit.
Aha, that makes sense. I probably should have inferred from the caps FROM
...
So I'm running Docker, on Mac, @ 1.13.1.
This is intentional for other reasons on my system. Not sure if there is a handy workaround...
from helm-app-operator-kit.
I can give it another shot in a VM w/a current Docker & see where we land.
from helm-app-operator-kit.
@ecordell Updating to the latest docker (1.18).
I can now run the build (though it fails) with:
docker build -t quay.io/benjaminapetersen/myapp-operator --build-arg HELM_CHART=examples/myapp/ --build-arg API_VERSION=app.benjaminapetersen.me/v1alpha1 --build-arg KIND= MyApp .
With the output of:
Sending build context to Docker daemon 337.2MB
Step 1/20 : FROM golang:1.10 as builder
---> d0e7a411e3da
Step 2/20 : ARG HELM_CHART
---> Using cache
---> a601d3a18a00
Step 3/20 : ARG API_VERSION
...
... redacted ....
...
Step 18/20 : RUN mkdir /chart && tar -xzf /chart.tgz --strip-components=1 -C /chart && rm /chart.tgz
---> Running in 6a1f2e491c55
tar: invalid magic
tar: short read
The command '/bin/sh -c mkdir /chart && tar -xzf /chart.tgz --strip-components=1 -C /chart && rm /chart.tgz' returned a non-zero code: 1
Closer!
from helm-app-operator-kit.
"invalid magic" is kind of a fantastic output, btw. 😄
from helm-app-operator-kit.
Yes, this is because you are trying to use a local Chart directory instead of a remotely hosted compressed directory. Docker build has slightly inconsistent behavior of the ADD
command.
If
<src>
is a local tar archive in a recognized compression format (identity, gzip, bzip2 or xz) then it is unpacked as a directory. Resources from remote URLs are not decompressed.
The reason the Dockerfile
was written this way was to let users quickly create an Operator using a pre-made, remotely hosted Helm Chart. Obviously we need more logic here to determine if you are trying to use a local, uncompressed Chart directory.
Do you mind filing a separate issue or making a PR to handle this case?
from helm-app-operator-kit.
Issue coming right up!
from helm-app-operator-kit.
Fixed in #28.
from helm-app-operator-kit.
Related Issues (20)
- Error when using a local Helm chart directory
- Operator pod error when new cr created. HOT 1
- Helm install failed. Forbidden: User system:serviceaccount:ndn-base:default HOT 2
- How to override the values in the chart ? HOT 3
- Chart with multiple dependencies with `requirements.yaml` not deploying all the pods HOT 9
- "chart metadata (Chart.yaml) missing" when deploying custom resource HOT 2
- Read config file to support multiple charts simultaneously HOT 1
- Update helm-app-operator-kit to use controller-runtime HOT 5
- Ensure logging is consistent with operator-sdk
- Release name lacks sufficient uniqueness HOT 1
- Add e2e tests for helm operator HOT 1
- Log what resources are created in K8s HOT 6
- Need to add license headers to the helm-app-operator files. HOT 1
- Need to update log and error message casing to conform to SDK standard. HOT 1
- Publish a Docker Image to Public Registry HOT 2
- Operator only sets status when the reconciler succeeds. HOT 6
- OwnerRefEngine output is non-deterministic HOT 1
- How to raise logs level of operator HOT 1
- Charts with randomly generated fields that are part of pod annotations fail to be installed (e.g. stable/redis) HOT 2
- seperate chart data from generic operator 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 helm-app-operator-kit.