This repository has been archived by the owner on Aug 19, 2024. It is now read-only.
forked from heroku/base-images
-
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.
Merge branch 'multiarch-push' into multiarch-push-robuust
# Conflicts: # .github/workflows/ci.yml # heroku-22-build/setup.sh
- Loading branch information
Showing
40 changed files
with
1,114 additions
and
1,209 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
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,3 @@ | ||
ARG BASE_IMAGE=heroku/heroku:20 | ||
FROM $BASE_IMAGE | ||
COPY setup.sh /tmp/setup.sh | ||
RUN /tmp/setup.sh | ||
RUN --mount=target=/build /build/setup.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
ARG BASE_IMAGE=heroku/heroku:20-build | ||
FROM $BASE_IMAGE | ||
|
||
RUN groupadd heroku --gid 1000 && \ | ||
useradd heroku -u 1000 -g 1000 -s /bin/bash -m | ||
|
||
RUN mkdir /app && \ | ||
chown heroku:heroku /app | ||
RUN groupadd heroku --gid 1000 \ | ||
&& useradd heroku --uid 1000 --gid 1000 --shell /bin/bash --create-home \ | ||
&& mkdir /app \ | ||
&& chown heroku:heroku /app | ||
|
||
# https://github.com/buildpacks/spec/blob/platform/0.13/platform.md#build-image | ||
USER heroku | ||
ENV CNB_USER_ID=1000 | ||
ENV CNB_GROUP_ID=1000 | ||
ENV CNB_STACK_ID "heroku-20" | ||
ENV CNB_TARGET_OS="linux" | ||
ENV CNB_TARGET_ARCH="amd64" | ||
# Note: This image doesn't inherit from the CNB run image variant so we have | ||
# to redeclare the labels present in the CNB run image again here. | ||
LABEL io.buildpacks.base.distro.name="ubuntu" | ||
LABEL io.buildpacks.base.distro.version="20.04" | ||
LABEL io.buildpacks.base.homepage="https://github.com/heroku/base-images" | ||
LABEL io.buildpacks.base.maintainer="Heroku" | ||
|
||
# Stack IDs are deprecated, but we still set these for backwards compatibility: | ||
# https://github.com/buildpacks/spec/blob/platform/0.13/platform.md#iobuildpacksstack-labels | ||
ENV CNB_STACK_ID="heroku-20" | ||
LABEL io.buildpacks.stack.id="heroku-20" | ||
|
||
USER heroku |
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,11 +1,19 @@ | ||
ARG BASE_IMAGE=heroku/heroku:20 | ||
FROM $BASE_IMAGE | ||
|
||
RUN ln -s /workspace /app | ||
RUN groupadd heroku --gid 1000 \ | ||
&& useradd heroku --uid 1000 --gid 1000 --shell /bin/bash --create-home \ | ||
&& ln -s /workspace /app | ||
|
||
RUN groupadd heroku --gid 1000 && \ | ||
useradd heroku -u 1000 -g 1000 -s /bin/bash -m | ||
# https://github.com/buildpacks/spec/blob/platform/0.13/platform.md#run-image | ||
USER heroku | ||
LABEL io.buildpacks.base.distro.name="ubuntu" | ||
LABEL io.buildpacks.base.distro.version="20.04" | ||
LABEL io.buildpacks.base.homepage="https://github.com/heroku/base-images" | ||
LABEL io.buildpacks.base.maintainer="Heroku" | ||
|
||
# Stack IDs are deprecated, but we still set this for backwards compatibility: | ||
# https://github.com/buildpacks/spec/blob/platform/0.13/platform.md#iobuildpacksstack-labels | ||
LABEL io.buildpacks.stack.id="heroku-20" | ||
USER heroku | ||
ENV HOME /app | ||
|
||
ENV HOME=/app |
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,2 @@ | ||
FROM ubuntu:20.04 | ||
ARG TARGETARCH | ||
COPY setup.sh /tmp/setup.sh | ||
RUN /tmp/setup.sh | ||
RUN --mount=target=/build /build/setup.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<policymap> | ||
<policy domain="resource" name="memory" value="256MiB"/> | ||
<policy domain="resource" name="map" value="512MiB"/> | ||
<policy domain="resource" name="width" value="16KP"/> | ||
<policy domain="resource" name="height" value="16KP"/> | ||
<policy domain="resource" name="area" value="128MB"/> | ||
<policy domain="resource" name="disk" value="1GiB"/> | ||
<policy domain="delegate" rights="none" pattern="URL" /> | ||
<policy domain="delegate" rights="none" pattern="HTTPS" /> | ||
<policy domain="delegate" rights="none" pattern="HTTP" /> | ||
<policy domain="path" rights="none" pattern="@*"/> | ||
<policy domain="cache" name="shared-secret" value="passphrase" stealth="true"/> | ||
</policymap> |
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
Oops, something went wrong.