-
Notifications
You must be signed in to change notification settings - Fork 640
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 (#417)
* 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
5 changed files
with
33 additions
and
45 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 rosco-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
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,23 @@ | ||
FROM ubuntu:bionic | ||
MAINTAINER delivery-engineering@netflix.com | ||
COPY --from=compile /compiled_sources/rosco-web/build/install/rosco /opt/rosco | ||
COPY --from=compile /compiled_sources/rosco-web/config /opt/rosco | ||
COPY --from=compile /compiled_sources/rosco-web/config/packer /opt/rosco/config/packer | ||
|
||
WORKDIR /packer | ||
|
||
RUN apt-get update && apt-get -y install openjdk-8-jre-headless wget unzip curl && \ | ||
wget https://releases.hashicorp.com/packer/1.4.2/packer_1.4.2_linux_amd64.zip && \ | ||
unzip packer_1.4.2_linux_amd64.zip && \ | ||
rm packer_1.4.2_linux_amd64.zip | ||
|
||
ENV PATH "/packer:$PATH" | ||
|
||
RUN wget https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get && \ | ||
chmod +x get && \ | ||
./get && \ | ||
rm get | ||
|
||
RUN adduser --disabled-login --system spinnaker | ||
USER spinnaker | ||
CMD ["/opt/rosco/bin/rosco"] |
This file was deleted.
Oops, something went wrong.