-
Notifications
You must be signed in to change notification settings - Fork 596
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #949 from haroonc/update-os
Update OS packages to patch builders.
- Loading branch information
Showing
11 changed files
with
35 additions
and
8 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
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,3 +1,10 @@ | ||
FROM gcr.io/gcp-runtimes/ubuntu_20_0_4 | ||
RUN apt-get update && apt-get dist-upgrade -y && \ | ||
rm -rf \ | ||
/var/cache/debconf/* \ | ||
/var/lib/apt/lists/* \ | ||
/var/log/* \ | ||
/tmp/* \ | ||
/var/tmp/* | ||
COPY notice.sh /usr/bin | ||
ENTRYPOINT ["/usr/bin/notice.sh"] |
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
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
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
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
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
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
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,3 +1,13 @@ | ||
ARG MAVEN_VERSION=latest | ||
FROM maven:${MAVEN_VERSION} | ||
# Upstream maven images for JDK >= 16 are Oracle Linux (ol) based | ||
# and others are based on Debian base image | ||
RUN v=$(awk </etc/os-release -F = '$1 ~ /VERSION_ID/ {gsub(/"/,"",$2);print set $2}') && \ | ||
dist=$(awk </etc/os-release -F = '$1 ~ /^ID_LIKE/ {gsub(/"/,"",$2);print set $2}') && \ | ||
if [ "$dist" = "debian" ] && [ "$v" -gt 9 ] ; \ | ||
then apt-get update -qqy && apt-get dist-upgrade -yq ; \ | ||
elif [ "$dist" = "fedora" ] ; \ | ||
then microdnf clean all && microdnf update --refresh --nodocs && microdnf clean all ; \ | ||
fi | ||
|
||
ENTRYPOINT ["mvn"] |
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,4 +1,5 @@ | ||
FROM python:3.10.7-slim-bullseye | ||
RUN apt-get update -qqy && apt-get dist-upgrade -yq | ||
RUN /bin/sh -c set -eux; pip install twine==4.0.1 | ||
RUN /bin/sh -c set -eux; pip install keyrings.google-artifactregistry-auth==1.1.1 | ||
ENTRYPOINT ["python3", "-m", "twine"] |
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,7 +1,7 @@ | ||
FROM gcr.io/gcp-runtimes/ubuntu_20_0_4 | ||
|
||
RUN apt-get update && \ | ||
apt-get -y install wget ca-certificates | ||
RUN apt-get update -qqy && apt-get dist-upgrade -yq && \ | ||
apt-get -y install wget ca-certificates | ||
|
||
COPY notice.sh /usr/bin | ||
ENTRYPOINT ["/usr/bin/notice.sh"] |