Skip to content

Commit 181140f

Browse files
committed
Update the deploy
1 parent a287545 commit 181140f

4 files changed

Lines changed: 17 additions & 18 deletions

File tree

deployment/clouddeploy/gke-workers/environments/oss-vdb-test/debian-convert.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ spec:
1414
value: oss-vdb-test
1515
- name: OUTPUT_GCS_BUCKET
1616
value: osv-test-debian-osv
17+
args:
18+
- "--upload-to-gcs"
19+
- "--output-bucket ${OUTPUT_GCS_BUCKET}"

deployment/clouddeploy/gke-workers/environments/oss-vdb/debian-convert.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ spec:
1414
value: oss-vdb
1515
- name: OUTPUT_GCS_BUCKET
1616
value: debian-osv
17+
args:
18+
- "--upload-to-gcs"
19+
- "--output-bucket ${OUTPUT_GCS_BUCKET}"

go/cmd/first_package_finder/Dockerfile

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,18 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.24.0-alpine@sha256:2d40d4fc278dad38be0777d5e2a88a2c6dee51b0b29c97a764fc6c6a11ca893c AS GO_BUILD
15+
FROM golang:1.26.0-alpine@sha256:d4c4845f5d60c6a974c6000ce58ae079328d03ab7f721a0734277e69905473e5 AS build
1616

17-
RUN mkdir /src
1817
WORKDIR /src
1918

2019
COPY ./go.mod /src/go.mod
2120
COPY ./go.sum /src/go.sum
22-
RUN go mod download
21+
RUN go mod download && go mod verify
2322

2423
COPY ./ /src/
25-
RUN go build -o first_package_finder_bin ./tools/debian/first_package_finder/
26-
27-
FROM gcr.io/google.com/cloudsdktool/google-cloud-cli:alpine@sha256:d2f3fd4000e4c9c641ab75898da682b771528f60f08f65e0c3a88fcdff2eaf92
24+
RUN CGO_ENABLED=0 go build -o first_package_finder ./cmd/first_package_finder/
2825

2926
WORKDIR /src
30-
COPY --from=GO_BUILD /src/first_package_finder_bin ./first_package_finder_bin
31-
COPY vulnfeeds/tools/debian/run_*.sh ./
27+
COPY --from=GO_BUILD /src/first_package_finder ./first_package_finder
3228

33-
RUN chmod +x ./run_*.sh
29+
ENTRYPOINT ["/first_package_finder"]

vulnfeeds/cmd/converters/dsa-dla-dtsa/Dockerfile

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,19 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.24.0-alpine@sha256:2d40d4fc278dad38be0777d5e2a88a2c6dee51b0b29c97a764fc6c6a11ca893c AS GO_BUILD
15+
FROM golang:1.26.0-alpine@sha256:d4c4845f5d60c6a974c6000ce58ae079328d03ab7f721a0734277e69905473e5 AS build
1616

17-
RUN mkdir /src
1817
WORKDIR /src
1918

2019
COPY ./go.mod /src/go.mod
2120
COPY ./go.sum /src/go.sum
22-
RUN go mod download
21+
RUN go mod download && go mod verify
2322

2423
COPY ./ /src/
25-
RUN go build -o convert_debian_bin ./cmd/converters/dsa-dla-dtsa/
26-
27-
FROM gcr.io/google.com/cloudsdktool/google-cloud-cli:alpine@sha256:d2f3fd4000e4c9c641ab75898da682b771528f60f08f65e0c3a88fcdff2eaf92
24+
RUN CGO_ENABLED=0 go build -o dsa-dla-dtsa ./cmd/converters/dsa-dla-dtsa/main.go
2825

2926
WORKDIR /src
30-
COPY --from=GO_BUILD /src/convert_debian_bin ./convert_debian_bin
31-
COPY cmd/converters/dsa-dla-dtsa/run_convert_debian.sh ./
27+
COPY --from=GO_BUILD /src/dsa-dla-dtsa ./dsa-dla-dtsa
28+
29+
ENTRYPOINT ["/dsa-dla-dtsa"]
3230

33-
RUN chmod +x ./run_convert_debian.sh

0 commit comments

Comments
 (0)