Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 6c84a2b

Browse files
authored
Merge pull request #443 from silvin-lubecki/add-cnab-core-commands
Introduce CNAB core commands All outstanding issues will be done on followups. We also need to rebase every other PRs targeting the CNAB branch
2 parents e69b627 + 196387f commit 6c84a2b

877 files changed

Lines changed: 125844 additions & 17996 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
* text=auto
2-
*.sh text eol=lf
3-
*.go text eol=lf
2+
* text eol=lf
3+
*.png binary
44
*.exe binary
5+
*.ico binary
6+
*.jar binary
57
vendor/** -text

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ RUN curl -Ls https://download.docker.com/linux/static/$DOCKERCLI_CHANNEL/x86_64/
1717

1818
WORKDIR /go/src/github.com/docker/app/
1919

20+
# main dev image
2021
FROM build AS dev
2122
ENV PATH=${PATH}:/go/src/github.com/docker/app/bin/
2223
ARG DEP_VERSION=v0.5.0
@@ -36,4 +37,18 @@ RUN make EXPERIMENTAL=${EXPERIMENTAL} cross
3637
# FIXME(vdemeester) change from docker-app to dev once buildkit is merged in moby/docker
3738
FROM cross AS e2e-cross
3839
ARG EXPERIMENTAL="off"
40+
# Run e2e tests
3941
RUN make EXPERIMENTAL=${EXPERIMENTAL} e2e-cross
42+
43+
# builder of invocation image entrypoint
44+
FROM build AS invocation-build
45+
COPY . .
46+
ARG EXPERIMENTAL="off"
47+
RUN make EXPERIMENTAL=${EXPERIMENTAL} bin/cnab-run
48+
49+
# cnab invocation image
50+
FROM alpine:${ALPINE_VERSION} AS invocation
51+
RUN apk add --no-cache ca-certificates
52+
COPY --from=invocation-build /go/src/github.com/docker/app/bin/cnab-run /cnab/app/run
53+
WORKDIR /cnab/app
54+
CMD /cnab/app/run

0 commit comments

Comments
 (0)