Skip to content

Commit

Permalink
HPCC-33006 Include 20.04 k8 build logic community/internal
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Gardner <[email protected]>
  • Loading branch information
Michael-Gardner committed Dec 2, 2024
1 parent 128b9d0 commit 4d566dd
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,18 @@ jobs:
name: docs
documentation: true
- os: ubuntu-20.04
- os: ubuntu-20.04
name: k8s
container: true
- os: rockylinux-8
- os: ubuntu-22.04
name: LN k8s
ln: true
container: true
- os: ubuntu-20.04
name: LN k8s
ln: true
container: true
- os: ubuntu-22.04
name: LN
ln: true
Expand Down Expand Up @@ -345,7 +352,7 @@ jobs:
cmake --build /hpcc-dev/build --parallel $(nproc) --target package"
- name: Upload Assets to Jfrog (debian internal)
if: ${{ matrix.ln && !matrix.container && contains(matrix.os, 'ubuntu') && github.repository_owner == 'hpcc-systems'}}
if: ${{ matrix.ln && contains(matrix.os, 'ubuntu') && github.repository_owner == 'hpcc-systems'}}
shell: bash
run: |
cd ${{ needs.preamble.outputs.folder_build }}
Expand Down
95 changes: 95 additions & 0 deletions dockerfiles/vcpkg/platform-core-ubuntu-20.04/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
##############################################################################
#
# 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:20.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 \
libapr1 \
python2

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/amd64/kubectl && \
chmod +x ./kubectl && \
mv ./kubectl /usr/local/bin

RUN curl -LO https://packagecloud.io/github/git-lfs/packages/ubuntu/focal/git-lfs_3.5.1_amd64.deb/download && \
dpkg -i download && \
rm download

# 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

ARG PKG_FILE=hpccsystems-platform-community_9.2.4-1focal_amd64_k8s.deb
COPY ./${PKG_FILE} /tmp/${PKG_FILE}
RUN dpkg -i /tmp/${PKG_FILE} && \
apt-get install -f && \
rm /tmp/${PKG_FILE}

USER hpcc
ENV PATH="/opt/HPCCSystems/bin:${PATH}"
ENV HPCC_containerized=1
WORKDIR /var/lib/HPCCSystems

0 comments on commit 4d566dd

Please sign in to comment.