Skip to content

Commit

Permalink
Merge branch 'OES-1.33.x' into feature/OP-22224-OES-upgrade-1.33.x
Browse files Browse the repository at this point in the history
  • Loading branch information
emanipravallika authored Jun 24, 2024
2 parents cd1008e + 4cc317c commit fc00dda
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 24 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/kayenta-oes-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ jobs:
ORG_GRADLE_PROJECT_version: ${{ steps.build_variables.outputs.VERSION }}
run: |
sed -e 's/NEXUS_URL/${{ secrets.NEXUS_URL }}/' -i settings.gradle
sed -e 's/NEXUS_USERNAME/${{ secrets.NEXUS_USERNAME }}/' -i settings.gradle
sed -e 's/NEXUS_PASSWORD/${{ secrets.NEXUS_PASSWORD }}/' -i settings.gradle
sed -e 's/NEXUS_USERNAME/${{ secrets.NEXUS_USERNAME }}/' -i build.gradle
sed -e 's/NEXUS_PASSWORD/${{ secrets.NEXUS_PASSWORD }}/' -i build.gradle
sed -e 's/NEXUS_URL/${{ secrets.NEXUS_URL }}/' -i build.gradle
./gradlew --no-daemon -PenableCrossCompilerPlugin=true kayenta-web:installDist -x test
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/kayenta-oes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
echo ::set-output name=REPO::ubi8-kayenta-cve
#echo ::set-output name=VERSION::"1.33.x$(date --utc +'%Y%m%d')"
#echo ::set-output name=VERSION::"1.33.x$(date --utc +'%-m%d')"
echo ::set-output name=VERSION::"1.33.x"
echo ::set-output name=VERSION::"1.33.2"
echo "::set-output name=GITHASH::$(git rev-parse --short HEAD)"
echo "::set-output name=BUILDDATE::$(date -u +"%Y%m%d%H%M")"
- name: Login to Quay
Expand All @@ -47,12 +47,14 @@ jobs:
ORG_GRADLE_PROJECT_version: ${{ steps.build_variables.outputs.VERSION }}
run: |
sed -e 's/NEXUS_USERNAME/${{ secrets.NEXUS_USERNAME }}/' -i settings.gradle
sed -e 's/NEXUS_PASSWORD/${{ secrets.NEXUS_PASSWORD }}/' -i settings.gradle
sed -e 's/NEXUS_USERNAME/${{ secrets.NEXUS_USERNAME }}/' -i build.gradle
sed -e 's/NEXUS_PASSWORD/${{ secrets.NEXUS_PASSWORD }}/' -i build.gradle
sed -e 's|NEXUS_USERNAME|${{ secrets.NEXUS_USERNAME }}|' -i settings.gradle
sed -e 's|NEXUS_PASSWORD|${{ secrets.NEXUS_PASSWORD }}|' -i settings.gradle
sed -e 's|NEXUS_USERNAME|${{ secrets.NEXUS_USERNAME }}|' -i build.gradle
sed -e 's|NEXUS_PASSWORD|${{ secrets.NEXUS_PASSWORD }}|' -i build.gradle
sed -e 's|NEXUS_URL|${{ secrets.NEXUS_URL }}|' -i settings.gradle
sed -e 's|NEXUS_URL|${{ secrets.NEXUS_URL }}|' -i build.gradle
./gradlew --no-daemon -PenableCrossCompilerPlugin=true kayenta-web:installDist -x test
./gradlew --no-daemon -PenableCrossCompilerPlugin=true kayenta-web:installDist -x test
- name: dockerBuildpush
uses: docker/build-push-action@v2
Expand All @@ -61,7 +63,7 @@ jobs:
build-args: |
CUSTOMPLUGIN_RELEASEORG=opsmx
CUSTOMPLUGIN_RELEASEREPO=armory-observability-plugin
CUSTOMPLUGIN_RELEASEVERSION=v1.0.1
CUSTOMPLUGIN_RELEASE_VERSION=1.0.1
file: docker/ubi8/Dockerfile-fips
push: true
tags: |
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ subprojects { project ->
repositories {
mavenLocal()
maven{
url "https://nexus.opsmx.net/repository/maven-snapshots/"
credentials {
url "NEXUS_URL"
credentials {
username = "NEXUS_USERNAME"
password = "NEXUS_PASSWORD"
}
Expand Down
19 changes: 8 additions & 11 deletions docker/ubi8/Dockerfile-fips
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ENV JAVA_HOME=/opsmx-java-runtime \
PATH=${PATH}:/opsmx-java-runtime/bin \
WORK_DIR=/opsmx/workdir \
CONF_DIR=/opsmx/conf

ENV SERVICE_PLUGIN_PATH=/opt/kayenta/plugins
# Enabling fips mode
RUN fips-mode-setup --enable

Expand All @@ -34,23 +34,20 @@ RUN yum -y install wget

#RUN yum -y update
RUN adduser spinnaker
RUN mkdir -p /opt/kayenta/plugins
RUN mkdir -p ${SERVICE_PLUGIN_PATH}


#custom plugin zip files adding
ARG CUSTOMPLUGIN_RELEASE_VERSION
ENV CUSTOMPLUGIN_RELEASE_VERSION=$CUSTOMPLUGIN_RELEASE_VERSION
ARG CUSTOMPLUGIN_RELEASEORG
ENV CUSTOMPLUGIN_RELEASEORG=$CUSTOMPLUGIN_RELEASEORG

ARG CUSTOMPLUGIN_RELEASEREPO
ENV CUSTOMPLUGIN_RELEASEREPO=$CUSTOMPLUGIN_RELEASEREPO

ARG CUSTOMPLUGIN_RELEASEVERSION
ENV CUSTOMPLUGIN_RELEASEVERSION=$CUSTOMPLUGIN_RELEASEVERSION

RUN wget -O Armory.armory-observability-plugin-${CUSTOMPLUGIN_RELEASEVERSION}-SNAPSHOT.zip -c https://github.com/${CUSTOMPLUGIN_RELEASEORG}/${CUSTOMPLUGIN_RELEASEREPO}/releases/download/${CUSTOMPLUGIN_RELEASEVERSION}/armory-observability-plugin-${CUSTOMPLUGIN_RELEASEVERSION}.zip -P /opt/kayenta/plugins

RUN mv Armory.armory-observability-plugin-${CUSTOMPLUGIN_RELEASEVERSION}-SNAPSHOT.zip /opt/kayenta/plugins/
RUN wget -O Armory.armory-observability-plugin-${CUSTOMPLUGIN_RELEASE_VERSION}.zip -c https://github.com/${CUSTOMPLUGIN_RELEASEORG}/${CUSTOMPLUGIN_RELEASEREPO}/releases/download/v${CUSTOMPLUGIN_RELEASE_VERSION}/armory-observability-plugin-v${CUSTOMPLUGIN_RELEASE_VERSION}.zip -P ${SERVICE_PLUGIN_PATH}
RUN mv Armory.armory-observability-plugin-${CUSTOMPLUGIN_RELEASE_VERSION}.zip ${SERVICE_PLUGIN_PATH}

RUN chmod -R 777 /opt/kayenta/plugins/
RUN chmod -R 777 ${SERVICE_PLUGIN_PATH}
RUN chown -R spinnaker:spinnaker /opt/
RUN yum -y remove tar vim vi
RUN yum -y remove clean all && rm -rf /var/cache
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
orcaVersion=3-0-SNAPSHOT
orcaVersion=1.33.0-SNAPSHOT
org.gradle.parallel=true
spinnakerGradleVersion=1-0-SNAPSHOT
spinnakerGradleVersion=1.33.0-SNAPSHOT
#targetJava11=true
org.gradle.jvmargs=-Xmx2g
4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ if (spinnakerGradleVersion.endsWith('-SNAPSHOT')) {
mavenLocal()
gradlePluginPortal()
maven{
url "https://nexus.opsmx.net/repository/maven-snapshots/"
credentials {
url "NEXUS_URL"
credentials {
username = "NEXUS_USERNAME"
password = "NEXUS_PASSWORD"
}
Expand Down

0 comments on commit fc00dda

Please sign in to comment.