Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from spinnaker:master #52

Open
wants to merge 94 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
36968c2
fix(npe): Fixes an NPE when no overrides are set (#1019)
jasonmcintosh Sep 29, 2023
7db3fce
chore(deps): bump docker/setup-buildx-action from 2 to 3 (#1021)
dependabot[bot] Oct 1, 2023
931bb2e
chore(deps): bump docker/login-action from 2 to 3 (#1022)
dependabot[bot] Oct 1, 2023
c589467
chore(deps): bump docker/setup-qemu-action from 2 to 3 (#1023)
dependabot[bot] Oct 1, 2023
dca133c
chore(deps): bump actions/checkout from 3 to 4 (#1025)
dependabot[bot] Oct 1, 2023
bfc6789
chore(deps): bump docker/build-push-action from 4 to 5 (#1024)
dependabot[bot] Oct 1, 2023
40a4f44
chore(dependencies): Autobump korkVersion (#1026)
spinnakerbot Oct 3, 2023
028ff01
chore(dependencies): Autobump korkVersion (#1027)
spinnakerbot Oct 4, 2023
4a12958
feat(helm/bake): Add additional input fields where we can fill in det…
ciurescuraul Oct 9, 2023
0506436
chore(dependencies): Autobump korkVersion (#1033)
spinnakerbot Oct 17, 2023
6976265
refactor(test): add runtime jupiter engine and remove vintage engine …
j-sandy Oct 17, 2023
c2d210f
chore(dependencies): Autobump korkVersion (#1035)
spinnakerbot Oct 20, 2023
e8ffd89
chore(dependencies): Autobump korkVersion (#1036)
spinnakerbot Oct 30, 2023
0c0c97e
chore(dependencies): Autobump korkVersion (#1037)
spinnakerbot Nov 2, 2023
c3f3572
chore(dependencies): Autobump korkVersion (#1038)
spinnakerbot Nov 10, 2023
d9b755f
chore(dependencies): Autobump korkVersion (#1039)
spinnakerbot Nov 13, 2023
ea551b9
chore(dependencies): Autobump korkVersion (#1040)
spinnakerbot Nov 14, 2023
59132a5
chore(dependencies): Autobump korkVersion (#1041)
spinnakerbot Nov 20, 2023
a9eec22
chore(dependencies): Autobump korkVersion (#1042)
spinnakerbot Nov 20, 2023
b18bc06
chore(dependencies): Autobump korkVersion (#1043)
spinnakerbot Nov 21, 2023
efd0602
chore(dependencies): Autobump korkVersion (#1044)
spinnakerbot Nov 22, 2023
144b433
chore(artifacts): always configure artifact store-related beans (#1045)
dbyron-sf Nov 26, 2023
ecdc0ff
chore(dependencies): Autobump korkVersion (#1046)
spinnakerbot Nov 28, 2023
cdd535b
feat(java17): use JRE17, run tests on JRE17, compile with JDK11 (#1047)
mattgogerly Nov 28, 2023
a00298f
chore(dependencies): Autobump spinnakerGradleVersion (#1048)
spinnakerbot Dec 1, 2023
3c63ab4
chore(deps): bump google-github-actions/auth from 1 to 2 (#1050)
dependabot[bot] Dec 1, 2023
6147e3f
chore(deps): bump actions/setup-java from 3 to 4 (#1049)
dependabot[bot] Dec 1, 2023
9d2add1
chore(dependencies): Autobump korkVersion (#1052)
spinnakerbot Dec 5, 2023
526da75
fix(manifests/test): add missing @Test annotation (#1053)
dbyron-sf Dec 6, 2023
f6085bd
chore(web/test): disable BakePoller in V2BakeryControllerTest (#1054)
dbyron-sf Dec 7, 2023
1ff766b
chore(deps): bump docker/build-push-action from 4 to 5 (#1051)
dependabot[bot] Dec 7, 2023
b3d1e81
chore(deps): bump github/codeql-action from 2 to 3 (#1055)
dependabot[bot] Jan 1, 2024
64277ea
chore(deps): bump google-github-actions/upload-cloud-storage from 1 t…
dependabot[bot] Jan 1, 2024
2d78988
chore(dependencies): Autobump korkVersion (#1057)
spinnakerbot Jan 2, 2024
5e70d8b
chore(dependencies): Autobump korkVersion (#1058)
spinnakerbot Jan 4, 2024
845c8f5
chore(dependencies): Autobump korkVersion (#1059)
spinnakerbot Jan 5, 2024
be3e792
chore(dependencies): Autobump korkVersion (#1061)
spinnakerbot Feb 2, 2024
10e0d83
chore(dependencies): Autobump korkVersion (#1064)
spinnakerbot Feb 5, 2024
e9c58fb
feat(artifact): Introduces the expansion of artifact store references…
xibz Feb 5, 2024
9cffd97
chore(dependencies): Autobump korkVersion (#1065)
spinnakerbot Feb 7, 2024
c0e6d3b
feat(aws): Upgrade packer and add SSM support (Amazon) (#1066)
jervi Feb 9, 2024
f1c2532
chore(dependencies): Autobump korkVersion (#1067)
spinnakerbot Feb 19, 2024
b85314f
chore(dependencies): Autobump korkVersion (#1068)
spinnakerbot Feb 20, 2024
2eb8bee
centralize lombok dependencies in build.gradle and use enforcedPlatfo…
dbyron-sf Feb 21, 2024
cd59509
chore(dependencies): Autobump korkVersion (#1070)
spinnakerbot Feb 22, 2024
3e00277
chore(dependencies): Autobump korkVersion (#1071)
spinnakerbot Feb 23, 2024
206aa7c
chore(dependencies): Autobump korkVersion (#1074)
spinnakerbot Feb 27, 2024
7107218
test(core): add tests to verify the rosco startup with various cloud …
j-sandy Feb 27, 2024
e3830a0
chore(dependencies): Autobump korkVersion (#1076)
spinnakerbot Mar 3, 2024
06b8e7c
chore(dependencies): Autobump korkVersion (#1078)
spinnakerbot Mar 12, 2024
2228ab3
chore(dependencies): Autobump korkVersion (#1079)
spinnakerbot Mar 12, 2024
d6c4077
chore(dependencies): Autobump korkVersion (#1080)
spinnakerbot Mar 21, 2024
fe10532
feat(integration): add rosco-integration module to exercise the just-…
dbyron-sf Mar 25, 2024
f16c1f8
fix(integration): use test configurations for dependencies (#1082)
dbyron-sf Mar 26, 2024
0514db3
chore(deps): bump softprops/action-gh-release from 1 to 2 (#1083)
dependabot[bot] Apr 1, 2024
648984a
chore(dependencies): Autobump korkVersion (#1084)
spinnakerbot Apr 2, 2024
eb4f1c8
chore(dependencies): Autobump korkVersion (#1085)
spinnakerbot Apr 2, 2024
456a2f7
chore(dependencies): Autobump korkVersion (#1086)
spinnakerbot Apr 6, 2024
35d0735
fix(install): Removed install_aws_cli2 function from Debian post inst…
ashleykleynhans Apr 18, 2024
c02d3cf
chore(dependencies): Autobump korkVersion (#1090)
spinnakerbot Apr 27, 2024
f349194
chore(dependencies): Autobump korkVersion (#1091)
spinnakerbot Apr 28, 2024
1b00ab8
chore(dependencies): Autobump korkVersion (#1092)
spinnakerbot May 10, 2024
1b5b47d
chore(dependencies): Autobump korkVersion (#1093)
spinnakerbot Jun 6, 2024
b731839
chore(dependencies): Autobump korkVersion (#1094)
spinnakerbot Jun 7, 2024
bad71fc
chore(dependencies): Autobump korkVersion (#1095)
spinnakerbot Jun 12, 2024
00c1b33
chore(build): enable cross compilation plugin for Java 17 (#1096)
mattgogerly Jun 12, 2024
12b0d5b
chore(deps): bump docker/build-push-action from 5 to 6 (#1097)
dependabot[bot] Jul 1, 2024
422b75b
chore(dependencies): Autobump korkVersion (#1098)
spinnakerbot Jul 1, 2024
cc006a6
chore(dependencies): Autobump korkVersion (#1099)
spinnakerbot Jul 2, 2024
801973e
chore(dependencies): Autobump korkVersion (#1100)
spinnakerbot Jul 2, 2024
cb64b94
chore(dependencies): Autobump korkVersion (#1101)
spinnakerbot Jul 12, 2024
d5c1362
refactor(test): fix scope of init method while upgrading junit to 5.9…
j-sandy Jul 17, 2024
7cf4397
chore(dependencies): Autobump korkVersion (#1103)
spinnakerbot Jul 17, 2024
9add185
chore(dependencies): Autobump korkVersion (#1104)
spinnakerbot Jul 30, 2024
28269ad
chore(dependencies): Autobump korkVersion (#1105)
spinnakerbot Aug 6, 2024
eb42b5f
chore(dependencies): Autobump korkVersion (#1108)
spinnakerbot Sep 23, 2024
03c32ce
chore(dependencies): Autobump korkVersion (#1109)
spinnakerbot Sep 25, 2024
3812e1a
chore(dependencies): Autobump korkVersion (#1110)
spinnakerbot Sep 26, 2024
ae46fe3
chore(dependencies): Autobump korkVersion (#1111)
spinnakerbot Oct 3, 2024
3e497d0
chore(dependencies): Autobump korkVersion (#1112)
spinnakerbot Oct 15, 2024
f642c30
chore(dependencies): Autobump korkVersion (#1113)
spinnakerbot Nov 5, 2024
1c338ea
fix(install): fix packer version check in post install script. (#1115)
himanhsugusain Nov 13, 2024
953548e
chore(java): Full Java 17 support only (#1116)
jasonmcintosh Nov 15, 2024
41f4677
chore(dependencies): Autobump korkVersion (#1117)
spinnakerbot Nov 15, 2024
46bc0e3
chore(dependencies): Autobump korkVersion (#1118)
spinnakerbot Nov 16, 2024
2130b14
chore(upgrades): Update OS to latest supported releases (#1119)
jasonmcintosh Nov 19, 2024
34a6f29
fix(install): Fixed packer version check for packer installation (#1121)
ashleykleynhans Nov 22, 2024
0ff5ffe
fix(gceBakeHandler): Updating Image name pattern to match googlecompu…
christosarvanitis Nov 25, 2024
c863b70
fix(openapi): Rewrite Swagger to OpenAPI annotations (#1126)
christosarvanitis Nov 27, 2024
2a1d914
chore(dependencies): Autobump korkVersion (#1131)
spinnakerbot Jan 9, 2025
9032907
fix(core): prevent null outputContent (#1134)
dbyron-sf Jan 23, 2025
b65df06
chore(dependencies): Autobump korkVersion (#1136)
spinnakerbot Jan 28, 2025
c0bde18
fix(helm): teach rosco to write helm overrides to a file (#1135)
dbyron-sf Feb 4, 2025
f54967e
chore(dependencies): Autobump korkVersion (#1137)
spinnakerbot Feb 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 22 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,17 @@ jobs:
if: startsWith(github.repository, 'spinnaker/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- uses: actions/setup-java@v3
uses: docker/setup-buildx-action@v3
- uses: actions/setup-java@v4
with:
java-version: 11
java-version: |
17
distribution: 'zulu'
cache: 'gradle'
- name: Prepare build variables
Expand All @@ -37,10 +38,23 @@ jobs:
env:
ORG_GRADLE_PROJECT_version: ${{ steps.build_variables.outputs.VERSION }}
run: ./gradlew build --stacktrace ${{ steps.build_variables.outputs.REPO }}-web:installDist
- name: Build local slim container image for testing
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.slim
load: true
platforms: local
tags: |
"${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-unvalidated"
- name: Test local slim container image
env:
FULL_DOCKER_IMAGE_NAME: "${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-unvalidated"
run: ./gradlew rosco-integration:test
- name: Login to GAR
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: docker/login-action@v2
uses: docker/login-action@v3
# use service account flow defined at: https://github.com/docker/login-action#service-account-based-authentication-1
with:
registry: us-docker.pkg.dev
Expand All @@ -49,7 +63,7 @@ jobs:
- name: Build and publish slim container image
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.slim
Expand All @@ -63,7 +77,7 @@ jobs:
- name: Build and publish ubuntu container image
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.ubuntu
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -48,7 +48,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -62,4 +62,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
28 changes: 21 additions & 7 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- uses: actions/setup-java@v3
uses: docker/setup-buildx-action@v3
- uses: actions/setup-java@v4
with:
java-version: 11
java-version: |
17
distribution: 'zulu'
cache: 'gradle'
- name: Prepare build variables
Expand All @@ -32,7 +33,7 @@ jobs:
ORG_GRADLE_PROJECT_version: ${{ steps.build_variables.outputs.VERSION }}
run: ./gradlew build ${{ steps.build_variables.outputs.REPO }}-web:installDist
- name: Build slim container image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
Expand All @@ -43,11 +44,24 @@ jobs:
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:latest-slim"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-slim"
- name: Build ubuntu container image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
file: Dockerfile.ubuntu
tags: |
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:latest-ubuntu"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-ubuntu"
- name: Build local slim container image for testing
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.slim
load: true
platforms: local
tags: |
"${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}"
- name: Test local slim container image
env:
FULL_DOCKER_IMAGE_NAME: "${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}"
run: ./gradlew rosco-integration:test
23 changes: 12 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,19 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
java-version: 11
java-version: |
17
distribution: 'zulu'
cache: 'gradle'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Assemble release info
id: release_info
env:
Expand Down Expand Up @@ -67,15 +68,15 @@ jobs:
- name: Login to Google Cloud
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: 'google-github-actions/auth@v1'
uses: 'google-github-actions/auth@v2'
# use service account flow defined at: https://github.com/google-github-actions/upload-cloud-storage#authenticating-via-service-account-key-json
with:
credentials_json: '${{ secrets.GAR_JSON_KEY }}'
- name: Upload halconfig profiles to GCS
# https://console.cloud.google.com/storage/browser/halconfig
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: 'google-github-actions/upload-cloud-storage@v1'
uses: 'google-github-actions/upload-cloud-storage@v2'
with:
path: 'halconfig/'
glob: '*' # exclude directories as we tar.gz it first above
Expand All @@ -84,7 +85,7 @@ jobs:
- name: Login to GAR
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: docker/login-action@v2
uses: docker/login-action@v3
# use service account flow defined at: https://github.com/docker/login-action#service-account-based-authentication-1
with:
registry: us-docker.pkg.dev
Expand All @@ -93,7 +94,7 @@ jobs:
- name: Build and publish slim container image
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.slim
Expand All @@ -106,7 +107,7 @@ jobs:
- name: Build and publish ubuntu container image
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.ubuntu
Expand All @@ -117,7 +118,7 @@ jobs:
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.release_info.outputs.RELEASE_VERSION }}-${{ steps.build_variables.outputs.VERSION }}-unvalidated-ubuntu"
- name: Create release
if: steps.release_info.outputs.SKIP_RELEASE == 'false'
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
body: |
${{ steps.release_info.outputs.CHANGELOG }}
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile.compile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM alpine:3.16
FROM alpine:3.20
RUN apk add --update \
openjdk11 \
openjdk17 \
&& rm -rf /var/cache/apk
LABEL maintainer="[email protected]"
ENV GRADLE_USER_HOME /workspace/.gradle
ENV GRADLE_OPTS -Xmx4g
CMD ./gradlew --no-daemon rosco-web:installDist -x test
CMD ./gradlew -PenableCrossCompilerPlugin=true --no-daemon rosco-web:installDist -x test
20 changes: 16 additions & 4 deletions Dockerfile.slim
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
FROM alpine:3.16
FROM alpine:3.20
LABEL maintainer="[email protected]"

ENV KUSTOMIZE_VERSION=3.8.6
ENV KUSTOMIZE4_VERSION=4.5.5
ENV PACKER_VERSION=1.8.1
ENV PACKER_VERSION=1.10.1
ENV HELMFILE_VERSION=0.153.1


ARG TARGETARCH
ARG PACKER_PLUGINS="amazon azure googlecompute"

WORKDIR /packer

RUN apk --no-cache add --update bash wget curl openssl openjdk11-jre git openssh-client && \
RUN apk --no-cache add --update bash wget curl openssl openjdk17-jre git openssh-client && \
wget https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_${TARGETARCH}.zip && \
unzip packer_${PACKER_VERSION}_linux_${TARGETARCH}.zip && \
rm packer_${PACKER_VERSION}_linux_${TARGETARCH}.zip
Expand Down Expand Up @@ -56,5 +57,16 @@ COPY rosco-web/config /opt/rosco
COPY halconfig/packer /opt/rosco/config/packer
RUN mkdir -p /opt/rosco/plugins && chown -R spinnaker:nogroup /opt/rosco/plugins
USER spinnaker
CMD ["/opt/rosco/bin/rosco"]

# Install packer plugins (must be run as spinnaker user). To provide a github token (optional), run docker build with something like "--secret id=github_token,env=PACKER_GITHUB_API_TOKEN"
RUN for plugin in $PACKER_PLUGINS ; do \
if [ -f /run/secrets/github_token ]; then \
PACKER_GITHUB_API_TOKEN=$(cat /run/secrets/github_token) packer plugins install "github.com/hashicorp/$plugin"; \
else \
packer plugins install "github.com/hashicorp/$plugin"; \
fi; \
done

HEALTHCHECK CMD curl http://localhost:8087/health | grep UP || exit 1

CMD ["/opt/rosco/bin/rosco"]
33 changes: 30 additions & 3 deletions Dockerfile.ubuntu
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
FROM ubuntu:bionic
FROM ubuntu:jammy
LABEL maintainer="[email protected]"

ENV KUSTOMIZE_VERSION=3.8.6
ENV KUSTOMIZE4_VERSION=4.5.5
ENV PACKER_VERSION=1.8.1
ENV PACKER_VERSION=1.10.1
ENV HELMFILE_VERSION=0.153.1

ARG TARGETARCH
ARG PACKER_PLUGINS="amazon azure googlecompute"

WORKDIR /packer

RUN apt-get update && apt-get -y install openjdk-11-jre-headless wget unzip curl git openssh-client && \
RUN apt-get update && apt-get -y install openjdk-17-jre-headless wget unzip curl git openssh-client && \
wget https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_${TARGETARCH}.zip && \
unzip packer_${PACKER_VERSION}_linux_${TARGETARCH}.zip && \
rm packer_${PACKER_VERSION}_linux_${TARGETARCH}.zip
Expand Down Expand Up @@ -48,10 +49,36 @@ RUN mkdir helmfile && \
mv ./helmfile/helmfile /usr/local/bin/helmfile && \
rm -rf ./helmfile

# Install AWS CLI 2 and the session manager plugin
RUN if [ "${TARGETARCH}" = "arm64" ]; then \
curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip" && \
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_arm64/session-manager-plugin.deb" -o "session-manager-plugin.deb"; \
else \
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb"; \
fi && \
unzip awscliv2.zip && \
./aws/install && \
rm -rf ./awscliv2.zip ./aws && \
dpkg -i session-manager-plugin.deb && \
rm session-manager-plugin.deb

RUN adduser --system --uid 10111 --group spinnaker
COPY rosco-web/build/install/rosco /opt/rosco
COPY rosco-web/config /opt/rosco
COPY halconfig/packer /opt/rosco/config/packer
RUN mkdir -p /opt/rosco/plugins && chown -R spinnaker:nogroup /opt/rosco/plugins
USER spinnaker

# Install packer plugins (must be run as spinnaker user). To provide a github token (optional), run docker build with something like "--secret id=github_token,env=PACKER_GITHUB_API_TOKEN"
RUN for plugin in $PACKER_PLUGINS ; do \
if [ -f /run/secrets/github_token ]; then \
PACKER_GITHUB_API_TOKEN=$(cat /run/secrets/github_token) packer plugins install "github.com/hashicorp/$plugin"; \
else \
packer plugins install "github.com/hashicorp/$plugin"; \
fi; \
done

HEALTHCHECK CMD curl http://localhost:8087/health | grep UP || exit 1

CMD ["/opt/rosco/bin/rosco"]
13 changes: 10 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,18 @@ subprojects {
dependencies {
implementation enforcedPlatform("io.spinnaker.kork:kork-bom:$korkVersion")

annotationProcessor platform("io.spinnaker.kork:kork-bom:$korkVersion")
compileOnly "org.projectlombok:lombok"

annotationProcessor enforcedPlatform("io.spinnaker.kork:kork-bom:$korkVersion")
annotationProcessor "org.projectlombok:lombok"
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
testAnnotationProcessor platform("io.spinnaker.kork:kork-bom:$korkVersion")

testCompileOnly "org.projectlombok:lombok"

testAnnotationProcessor enforcedPlatform("io.spinnaker.kork:kork-bom:$korkVersion")
testAnnotationProcessor "org.projectlombok:lombok"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine"

testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
}

test {
Expand All @@ -44,6 +50,7 @@ subprojects {
jvmArgs '-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8187'
}
}

}

defaultTasks ':rosco-web:run'
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
korkVersion=7.191.0
korkVersion=7.250.0
org.gradle.parallel=true
spinnakerGradleVersion=8.31.0
targetJava11=true
spinnakerGradleVersion=8.32.1
targetJava17=true

# To enable a composite reference to a project, set the
# project property `'<projectName>Composite=true'`.
Expand Down
Loading