forked from cloudfoundry-community/bosh2-errand-resource
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reusing exising image with sha1 check
- Loading branch information
Showing
1 changed file
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,30 @@ | ||
FROM concourse/buildroot:base | ||
MAINTAINER https://github.com/cloudfoundry-community/bosh2-errand-resource | ||
FROM cfcommunity/bosh2-errand-resource:v0.1.2 | ||
ENV EXPECTED_SHA1 "7b89fb83064f40bd2e8adfc96c88f4b0b2bd6f34 check \ | ||
278fafe63fbf8af276d65640f4bafc94579cd742 in \ | ||
957d664beb1b976351c4db192abf1f6d08189fea out \ | ||
" | ||
|
||
ADD check /opt/resource/check | ||
ADD in /opt/resource/in | ||
ADD out /opt/resource/out | ||
RUN cd /opt/resource && export CURRENT_SHA=$(sha256sum *) && echo "Computed SHA256: " && printenv CURRENT_SHA \ | ||
printenv CURRENT_SHA1 |sha256sum -c - | ||
|
||
RUN chmod +x /opt/resource/* | ||
#FROM concourse/buildroot:base | ||
#MAINTAINER https://github.com/cloudfoundry-community/bosh2-errand-resource | ||
# | ||
#ADD check /opt/resource/check | ||
#ADD in /opt/resource/in | ||
#ADD out /opt/resource/out | ||
# | ||
#RUN chmod +x /opt/resource/* | ||
|
||
|
||
|
||
#FROM golang:1.21.6 AS builder | ||
#ENV BUILT_BINARIES_DIR=/go/src/github.com/cloudfoundry-community/bosh2-errand-resource/build | ||
# | ||
#ADD . /go/src/github.com/cloudfoundry-community/bosh2-errand-resource | ||
#WORKDIR /go/src/github.com/cloudfoundry-community/bosh2-errand-resource | ||
#RUN ./ci/tasks/build.sh | ||
# | ||
#FROM alpine:3.19.1 AS resource | ||
#COPY --from=builder /go/src/github.com/cloudfoundry-community/bosh2-errand-resource/build /opt/resource | ||
#RUN chmod +x /opt/resource/* |