-
Notifications
You must be signed in to change notification settings - Fork 631
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(build): Ubuntu image variant support (#607)
* feat(build): Building a ubuntu image * New tagging format: `version-variant`, example: `1.2.3-slim` * For backward compatibility with the buildtool system and older versions of Halyard, the alpine image variant keeps the original 'naked' version tag i.e. `1.2.3` in addition to the one with the new format. * The BOM format doesn't change, it's up to Halyard to append the right `-variant` for a tag to fetch the right image on the registry. * The Dockerfiles are meant to be used directly for ad-hoc image creation by an end-user and by the existing build system through `cloudbuild.yml`. * Cloudbuild.yaml is now generic and lives in spinnaker/spinnaker buildtool
- Loading branch information
Showing
4 changed files
with
14 additions
and
20 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM gcr.io/spinnaker-marketplace/gradle_cache | ||
MAINTAINER delivery-engineering@netflix.com | ||
ENV GRADLE_USER_HOME /gradle_cache/.gradle | ||
COPY . compiled_sources | ||
WORKDIR compiled_sources | ||
RUN ./gradlew --no-daemon kayenta-web:installDist -x test |
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,13 +1,7 @@ | ||
FROM openjdk:8-jre-alpine | ||
|
||
MAINTAINER delivery-engineering@netflix.com | ||
|
||
COPY ./kayenta-web/build/install/kayenta /opt/kayenta | ||
|
||
COPY --from=compile /compiled_sources/kayenta-web/build/install/kayenta /opt/kayenta | ||
RUN apk --no-cache add --update bash | ||
|
||
RUN adduser -D -S spinnaker | ||
|
||
USER spinnaker | ||
|
||
CMD ["/opt/kayenta/bin/kayenta"] |
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,7 @@ | ||
FROM ubuntu:bionic | ||
MAINTAINER delivery-engineering@netflix.com | ||
COPY --from=compile /compiled_sources/kayenta-web/build/install/kayenta /opt/kayenta | ||
RUN apt-get update && apt-get -y install openjdk-8-jre-headless wget | ||
RUN adduser --disabled-login --system spinnaker | ||
USER spinnaker | ||
CMD ["/opt/kayenta/bin/kayenta"] |
This file was deleted.
Oops, something went wrong.