-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Bump vcpkg to 2025.02.13 with arm support
Move antlr3c into vcpkg DC: Fix for arm64 register naming Rework dockerfiles/vcpkg/build.sh to support arm Signed-off-by Gordon Smith <[email protected]>
- Loading branch information
1 parent
6c69419
commit 0670a96
Showing
27 changed files
with
433 additions
and
192 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,14 +58,19 @@ on: | |
description: 'Asset Name (if upload-package is true)' | ||
required: false | ||
default: 'build-docker-package' | ||
tag_postfix: | ||
type: string | ||
description: 'Either -arm or empty string' | ||
required: false | ||
default: '' | ||
secrets: | ||
LNB_TOKEN: | ||
required: false | ||
|
||
jobs: | ||
|
||
build-docker: | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-22.04${{ inputs.tag_postfix }} | ||
steps: | ||
- name: Free additional disk space (remove Android SDK + Tools) | ||
continue-on-error: true | ||
|
@@ -112,7 +117,7 @@ jobs: | |
vcpkg_sha_short=$(git rev-parse --short=8 HEAD) | ||
echo "vcpkg_sha_short=$vcpkg_sha_short" >> $GITHUB_OUTPUT | ||
docker_build_label=hpccsystems/platform-build-base-${{ inputs.os }} | ||
echo "docker_tag=$docker_build_label:$vcpkg_sha_short" >> $GITHUB_OUTPUT | ||
echo "docker_tag=$docker_build_label:$vcpkg_sha_short${{ inputs.tag_postfix }}" >> $GITHUB_OUTPUT | ||
- name: Print vars | ||
shell: "bash" | ||
|
@@ -128,12 +133,12 @@ jobs: | |
- uses: hendrikmuhs/[email protected] | ||
with: | ||
save: ${{ inputs.update-cache == true }} | ||
key: docker-${{ inputs.os }}-${{ inputs.build-type }}-${{ steps.vars.outputs.branch_label }}-${{ inputs.containerized == true && 'k8s' || 'bare-metal' }}-${{ inputs.ln == true && 'LN' || 'HPCC-Platform' }} | ||
key: docker${{ inputs.tag_postfix }}-${{ inputs.os }}-${{ inputs.build-type }}-${{ steps.vars.outputs.branch_label }}-${{ inputs.containerized == true && 'k8s' || 'bare-metal' }}-${{ inputs.ln == true && 'LN' || 'HPCC-Platform' }} | ||
restore-keys: | | ||
docker-${{ inputs.os }}-${{ inputs.build-type }}-${{ steps.vars.outputs.branch_label }}-${{ inputs.containerized == true && 'k8s' || 'bare-metal' }}- | ||
docker-${{ inputs.os }}-${{ inputs.build-type }}-${{ steps.vars.outputs.branch_label }}- | ||
docker-${{ inputs.os }}-${{ inputs.build-type }}- | ||
docker-${{ inputs.os }}- | ||
docker${{ inputs.tag_postfix }}-${{ inputs.os }}-${{ inputs.build-type }}-${{ steps.vars.outputs.branch_label }}-${{ inputs.containerized == true && 'k8s' || 'bare-metal' }}- | ||
docker${{ inputs.tag_postfix }}-${{ inputs.os }}-${{ inputs.build-type }}-${{ steps.vars.outputs.branch_label }}- | ||
docker${{ inputs.tag_postfix }}-${{ inputs.os }}-${{ inputs.build-type }}- | ||
docker${{ inputs.tag_postfix }}-${{ inputs.os }}- | ||
- name: CMake Configure and Build | ||
shell: "bash" | ||
|
@@ -152,7 +157,7 @@ jobs: | |
--mount source="${{ github.workspace }}/build",target=/hpcc-dev/build,type=bind,consistency=delegated \ | ||
--mount source="${{ github.workspace }}/.ccache",target=/root/.ccache,type=bind,consistency=delegated \ | ||
${{ steps.vars.outputs.docker_tag }} "\ | ||
cmake -G Ninja -S /hpcc-dev/${{ inputs.ln == true && 'LN' || 'HPCC-Platform' }} -B /hpcc-dev/build -DHPCC_SOURCE_DIR=/hpcc-dev/HPCC-Platform -DVCPKG_FILES_DIR=/hpcc-dev -DCMAKE_BUILD_TYPE=${{ inputs.build-type }} -DCONTAINERIZED=${{ inputs.containerized == true && 'ON' || 'OFF' }} -DCPACK_STRIP_FILES=${{ inputs.strip-files == true && 'ON' || 'OFF' }} ${{ inputs.single-package == true && '-DINCLUDE_PLUGINS=ON' || '-D$plugin=ON' }} ${{ inputs.cmake-configuration }} ${{ inputs.cmake-configuration-ex }} && \ | ||
cmake -G Ninja -S /hpcc-dev/${{ inputs.ln == true && 'LN' || 'HPCC-Platform' }} -B /hpcc-dev/build -DHPCC_SOURCE_DIR=/hpcc-dev/HPCC-Platform -DCMAKE_BUILD_TYPE=${{ inputs.build-type }} -DCONTAINERIZED=${{ inputs.containerized == true && 'ON' || 'OFF' }} -DCPACK_STRIP_FILES=${{ inputs.strip-files == true && 'ON' || 'OFF' }} ${{ inputs.single-package == true && '-DINCLUDE_PLUGINS=ON' || '-D$plugin=ON' }} ${{ inputs.cmake-configuration }} ${{ inputs.cmake-configuration-ex }} && \ | ||
cmake --build /hpcc-dev/build --parallel ${{ inputs.upload-package == true && '--target package' || ''}}" | ||
done | ||
|
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,9 +1,6 @@ | ||
[submodule "esp/src/dgrid"] | ||
path = esp/src/dgrid | ||
url = https://github.com/hpcc-systems/dgrid.git | ||
[submodule "esp/services/ws_sql/libantlr3c"] | ||
path = esp/services/ws_sql/libantlr3c | ||
url = https://github.com/hpcc-systems/libantlr3c.git | ||
[submodule "vcpkg"] | ||
path = vcpkg | ||
url = https://github.com/hpcc-systems/vcpkg.git |
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
28 changes: 28 additions & 0 deletions
28
dockerfiles/vcpkg/arm64-platform-core-debug-ubuntu-22.04.dockerfile
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,28 @@ | ||
############################################################################## | ||
# | ||
# HPCC SYSTEMS software Copyright (C) 2020 HPCC Systems®. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
############################################################################## | ||
|
||
# Create base container image to be used by all HPCC processes | ||
|
||
ARG BASE_IMAGE=arm64-platform-core-ubuntu-22.04:latest | ||
FROM ${BASE_IMAGE} | ||
|
||
USER root | ||
|
||
RUN apt-get install -y libcap2-bin | ||
RUN setcap cap_sys_ptrace+eip /usr/bin/gdb | ||
|
||
USER hpcc |
89 changes: 89 additions & 0 deletions
89
dockerfiles/vcpkg/arm64-platform-core-ubuntu-22.04.dockerfile
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,89 @@ | ||
############################################################################## | ||
# | ||
# HPCC SYSTEMS software Copyright (C) 2020 HPCC Systems®. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
############################################################################## | ||
|
||
# Create base container image to be used by all HPCC processes | ||
|
||
ARG BASE_IMAGE=ubuntu:22.04 | ||
FROM ${BASE_IMAGE} | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get clean -y && \ | ||
apt-get autoclean -y && \ | ||
apt-get install -y -f && \ | ||
apt-get autoremove -y && \ | ||
apt-get update -y && \ | ||
apt-get install --no-install-recommends -y \ | ||
default-jdk \ | ||
elfutils \ | ||
expect \ | ||
g++ \ | ||
git \ | ||
locales \ | ||
jq \ | ||
openssh-client \ | ||
openssh-server \ | ||
python3 \ | ||
python3-dev \ | ||
psmisc \ | ||
r-base-core \ | ||
r-cran-rcpp \ | ||
r-cran-inline \ | ||
rsync \ | ||
zip \ | ||
curl \ | ||
clang | ||
|
||
ARG USE_CPPUNIT=1 | ||
RUN if [ ${USE_CPPUNIT} -eq 1 ] ; then apt-get install -y libcppunit-1.15-0 ; fi | ||
|
||
# these are developer tools - we may want to move them elsewhere so that they are only in the incremental builds? | ||
|
||
RUN apt-get install -y \ | ||
dnsutils \ | ||
gdb \ | ||
nano | ||
|
||
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.29.7/bin/linux/arm64/kubectl && \ | ||
chmod +x ./kubectl && \ | ||
mv ./kubectl /usr/local/bin | ||
|
||
RUN curl -LO http://ports.ubuntu.com/pool/universe/g/git-lfs/git-lfs_3.0.2-1_arm64.deb && \ | ||
dpkg -i git-lfs_3.0.2-1_arm64.deb && \ | ||
rm git-lfs_3.0.2-1_arm64.deb | ||
|
||
# Set the locale | ||
RUN locale-gen en_US.UTF-8 | ||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US:en | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
RUN groupadd -g 10001 hpcc | ||
RUN useradd -s /bin/bash -m -r -N -c "hpcc runtime User" -u 10000 -g hpcc hpcc | ||
RUN passwd -l hpcc | ||
|
||
RUN mkdir /var/lib/HPCCSystems && chown hpcc:hpcc /var/lib/HPCCSystems | ||
RUN mkdir /var/log/HPCCSystems && chown hpcc:hpcc /var/log/HPCCSystems | ||
RUN mkdir /var/lock/HPCCSystems && chown hpcc:hpcc /var/lock/HPCCSystems | ||
RUN mkdir /var/run/HPCCSystems && chown hpcc:hpcc /var/run/HPCCSystems | ||
|
||
USER hpcc | ||
ENV PATH="/opt/HPCCSystems/bin:${PATH}" | ||
ENV HPCC_containerized=1 | ||
WORKDIR /var/lib/HPCCSystems | ||
|
||
ENTRYPOINT ["/bin/bash", "--login", "-c"] |
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 @@ | ||
ARG VCPKG_REF=latest | ||
FROM hpccsystems/platform-build-base-ubuntu-22.04:hpcc-platform-9.10.x-arm | ||
|
||
ENTRYPOINT ["/bin/bash", "--login", "-c"] | ||
|
||
CMD ["/bin/bash"] |
Oops, something went wrong.