Skip to content

Commit

Permalink
Merge pull request #229 from boozallen/fabric8-updates
Browse files Browse the repository at this point in the history
#221 🚀 improve build performance; #230 🔧 use ghcr.io as snapshot repo
  • Loading branch information
d-ryan-ashcraft authored Jul 25, 2024
2 parents 0cad00c + 83f1571 commit 3a9bacb
Show file tree
Hide file tree
Showing 52 changed files with 303 additions and 585 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,8 @@ docs/antora-aissemble-ui/public/
# Helm charts
**/charts/*
Chart.lock
extensions/extensions-helm/aissemble-airflow-chart/values.yaml
extensions/extensions-helm/aissemble-spark-operator-chart/values.yaml
extensions/extensions-helm/aissemble-jenkins-chart/values.yaml
extensions/extensions-helm/aissemble-mlflow-chart/values.yaml
extensions/extensions-helm/aissemble-kafka-chart/values.yaml
extensions/extensions-helm/aissemble-fastapi-chart/values.yaml
extensions/extensions-helm/aissemble-quarkus-chart/values.yaml

Expand Down
6 changes: 6 additions & 0 deletions DRAFT_RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ aiSSEMBLE has changed its Docker management plugin from the [orphedomos-maven-pl
_<A short bulleted list of changes that will cause downstream projects to be partially or wholly inoperable without changes. Instructions for those changes should live in the How To Upgrade section>_
Note: instructions for adapting to these changes are outlined in the upgrade instructions below.
- Transitioning from `orphedomos` to `fabric8` may result in breaking changes, see the **Upgrade Steps for Projects with Customized Orphedomos Configurations** for further details.
- The following docker modules have been deprecated. You need to continue to use the 1.7.0 versions rather than
upgrade them. Please note, these will only be breaking IF you try to use the 1.8.0 versions, which would require manual
intervention. The helm charts referencing these containers have already been updated to use 1.7.0.
- `aissemble-airflow`
- `aissemble-kafka`
- `aissemble-mlflow`

# Known Issues
- There is currently a bug with the Sagemaker training Docker image generated by the `aissemble-sagemaker-training-docker` `Fermenter` profile. The installation of the `logistic-training` module's `requirements.txt` fails, due to an unresolvable set of dependencies.
Expand Down
79 changes: 70 additions & 9 deletions build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@

<description>Build parent to bring in required build-time dependencies (e.g., Maven configuration)</description>

<distributionManagement>
<snapshotRepository>
<id>ghcr.io</id>
<url>https://maven.pkg.github.com/boozallen/aissemble</url>
</snapshotRepository>
</distributionManagement>

<properties>
<version.aissemble>1.8.0-SNAPSHOT</version.aissemble>

Expand Down Expand Up @@ -75,7 +82,7 @@
<version.quarkus.cucumber.java>7.4.1</version.quarkus.cucumber.java>

<!-- io.fabric8:docker-maven-plugin -->
<version.fabric8.docker.maven.plugin>0.44.0</version.fabric8.docker.maven.plugin>
<version.fabric8.docker.maven.plugin>0.45-tb-0.1.0</version.fabric8.docker.maven.plugin>
<docker.platforms>linux/amd64,linux/arm64</docker.platforms>

<!-- ***************** -->
Expand Down Expand Up @@ -546,27 +553,54 @@
</configuration>
</plugin>
<plugin>
<groupId>io.fabric8</groupId>
<!--
NB: using a temporary fork of the docker-maven-plugin for faster local builds.
This can be removed once https://github.com/fabric8io/docker-maven-plugin/issues/1804
is incorporated into the io.fabric8 plugin directly.
-->
<groupId>org.technologybrewery.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>${version.fabric8.docker.maven.plugin}</version>
<extensions>true</extensions>
<executions>
<execution>
<id>default-push</id>
<phase>deploy</phase>
<goals>
<goal>push</goal>
</goals>
<configuration>
<images>
<image>
<build>
<buildx>
<builderName>maven</builderName>
<cacheTo>type=local,dest=~/.docker/cache .</cacheTo>
<cacheFrom>type=local,src=~/.docker/cache .</cacheFrom>
</buildx>
</build>
</image>
</images>
</configuration>
</execution>
</executions>
<configuration>
<images>
<image>
<name>${docker.baseline.repo.id}/${dockerImageName}:${dockerImageVersion}</name>
<name>${docker.repo.id}/${dockerImageName}:${dockerImageVersion}</name>
<build>
<args>
<DOCKER_BASELINE_REPO_ID>${docker.baseline.repo.id}/</DOCKER_BASELINE_REPO_ID>
<VERSION_AISSEMBLE>${version.aissemble}</VERSION_AISSEMBLE>
<SPARK_VERSION>${version.spark}</SPARK_VERSION>
</args>
<buildx>
<!-- use default cache, passed to docker via config flag.-->
<builderName>default</builderName>
<dockerStateDir>~/.docker</dockerStateDir>
<platforms>
<platform>${docker.platforms}</platform>
</platforms>
</buildx>
<args>
<DOCKER_BASELINE_REPO_ID>${docker.baseline.repo.id}/</DOCKER_BASELINE_REPO_ID>
<VERSION_AISSEMBLE>${version.aissemble}</VERSION_AISSEMBLE>
<SPARK_VERSION>${version.spark}</SPARK_VERSION>
</args>
<contextDir>${project.basedir}</contextDir>
<dockerFile>./src/main/resources/docker/Dockerfile</dockerFile>
</build>
Expand Down Expand Up @@ -992,6 +1026,33 @@ To suppress enforce-helm-version rule, you must add following plugin to the root
<useDevRepository>true</useDevRepository>
</configuration>
</plugin>
<plugin>
<groupId>org.technologybrewery.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>${version.fabric8.docker.maven.plugin}</version>
<executions>
<execution>
<id>default-build</id>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
<configuration>
<!-- Deploy will build all platforms, so skip build phase in this case: -->
<buildArchiveOnly>true</buildArchiveOnly>
<images>
<image>
<build>
<buildx>
<builderName>maven</builderName>
</buildx>
</build>
</image>
</images>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down
49 changes: 0 additions & 49 deletions extensions/extensions-docker/aissemble-airflow/LICENSE.txt

This file was deleted.

18 changes: 0 additions & 18 deletions extensions/extensions-docker/aissemble-airflow/pom.xml

This file was deleted.

This file was deleted.

Loading

0 comments on commit 3a9bacb

Please sign in to comment.