-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Refactor stacktrace definitions and add platform-specific confi… (
#82) * feat: Refactor stacktrace definitions and add platform-specific configurations * feat: Update Open Space Toolkit Core version to 2.2.0 in CMakeLists, Python requirements, and Dockerfile * fix: Remove architecture-specific stacktrace definitions in CMakeLists.txt * style: update ostk-core dockerfile versioning to match other ostk repos * Apply suggestions from code review Co-authored-by: Antoine Paletta <[email protected]> --------- Co-authored-by: Antoine Paletta <[email protected]>
- Loading branch information
1 parent
34df4d7
commit 4883f83
Showing
6 changed files
with
53 additions
and
8 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
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
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,3 +1,3 @@ | ||
# Apache License 2.0 | ||
|
||
open-space-toolkit-core~=2.1.0 | ||
open-space-toolkit-core~=3.0.0 |
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 |
---|---|---|
|
@@ -4,12 +4,18 @@ ARG BASE_IMAGE_VERSION="latest" | |
|
||
# General purpose development image (root user) | ||
|
||
FROM openspacecollective/open-space-toolkit-base:${BASE_IMAGE_VERSION} as root-user | ||
FROM openspacecollective/open-space-toolkit-base-development:${BASE_IMAGE_VERSION} as root-user | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
# Dependencies | ||
|
||
# jq | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y jq \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
## {fmt} | ||
|
||
ARG FMT_VERSION="5.2.0" | ||
|
@@ -32,12 +38,19 @@ RUN apt-get update -y \ | |
|
||
## Open Space Toolkit ▸ Core | ||
|
||
ARG OSTK_CORE_VERSION="2.1.0" | ||
ARG TARGETPLATFORM | ||
ARG OSTK_CORE_MAJOR="3" | ||
ARG OSTK_CORE_MINOR="0" | ||
|
||
## Force an image rebuild when new Core patch versions are detected | ||
ADD https://api.github.com/repos/open-space-collective/open-space-toolkit-core/git/matching-refs/tags/${OSTK_CORE_MAJOR}.${OSTK_CORE_MINOR} /tmp/open-space-toolkit-core/versions.json | ||
|
||
RUN mkdir -p /tmp/open-space-toolkit-core \ | ||
&& cd /tmp/open-space-toolkit-core \ | ||
&& wget --quiet https://github.com/open-space-collective/open-space-toolkit-core/releases/download/${OSTK_CORE_VERSION}/open-space-toolkit-core-${OSTK_CORE_VERSION}-1.x86_64-runtime.deb \ | ||
&& wget --quiet https://github.com/open-space-collective/open-space-toolkit-core/releases/download/${OSTK_CORE_VERSION}/open-space-toolkit-core-${OSTK_CORE_VERSION}-1.x86_64-devel.deb \ | ||
&& export LATEST_PATCH_OF_MINOR=$(jq -r .[-1].ref versions.json | cut -d "/" -f3) \ | ||
&& export PACKAGE_PLATFORM=$(if [ ${TARGETPLATFORM} = "linux/amd64" ]; then echo "x86_64"; elif [ ${TARGETPLATFORM} = "linux/arm64" ]; then echo "aarch64"; else echo "Unknown platform" && exit 1; fi;) \ | ||
&& wget --quiet https://github.com/open-space-collective/open-space-toolkit-core/releases/download/${LATEST_PATCH_OF_MINOR}/open-space-toolkit-core-${LATEST_PATCH_OF_MINOR}-1.${PACKAGE_PLATFORM}-runtime.deb \ | ||
&& wget --quiet https://github.com/open-space-collective/open-space-toolkit-core/releases/download/${LATEST_PATCH_OF_MINOR}/open-space-toolkit-core-${LATEST_PATCH_OF_MINOR}-1.${PACKAGE_PLATFORM}-devel.deb \ | ||
&& apt-get install -y ./*.deb \ | ||
&& rm -rf /tmp/open-space-toolkit-core | ||
|
||
|