Skip to content

Commit

Permalink
Moved GWMS install to a single script and added a developer install s…
Browse files Browse the repository at this point in the history
…cript to keep the testbed leaner and better test RPM dependencies
  • Loading branch information
mambelli committed Dec 26, 2024
1 parent 40ebe05 commit faaa3fb
Show file tree
Hide file tree
Showing 6 changed files with 256 additions and 164 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/workspaces_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,21 @@ jobs:
BUILD_REF=${{env.GITHUB_REF}}
BUILD_DATE=${{env.BUILD_DATE}}
GWMS_VERSION=${{env.DH_PREFIX}}${{env.DH_LABEL}}
- name: Build and push testbed-workspace
id: docker_build_testbed_workspace
continue-on-error: true
if: ${{ ! inputs.sl7_build }}
uses: docker/build-push-action@v6
with:
push: true
platforms: ${{env.DH_PLATFORMS}}
context: workspaces
file: workspaces/testbed-workspace/Dockerfile
tags: glideinwms/testbed-workspace:${{env.DH_PREFIX}}${{env.DH_LABEL}}
build-args: |
BUILD_SHA=${{env.GITHUB_SHA}}
BUILD_HASH=${{env.GITHUB_HASH}}
BUILD_REF=${{env.GITHUB_REF}}
BUILD_DATE=${{env.BUILD_DATE}}
GWMS_VERSION=${{env.DH_PREFIX}}${{env.DH_LABEL}}
15 changes: 7 additions & 8 deletions workspaces/testbed-workspace/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ LABEL name="Testbed workspace with EL9 and utility scripts" \
RUN echo "Building GWMS Testbed image ($BUILD_SHA/$BUILD_DATE) on $BUILDPLATFORM, for $TARGETPLATFORM"

# Installing some base packages, the CRB repo, and the EPEL (epel-release)
RUN dnf install -y epel-release yum-utils python3 wget sed git jq vim zsh sudo psmisc bind-utils mlocate && \
RUN dnf install -y epel-release yum-utils sed wget && \
dnf config-manager --set-enabled crb && \
/bin/sed -i '/^enabled=1/a priority=99' /etc/yum.repos.d/epel.repo

Expand All @@ -39,14 +39,13 @@ RUN dnf install -y cronie supervisor initscripts ;\
/usr/bin/wget https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl3.py -O /usr/local/bin/systemctl ;\
/usr/bin/chmod +x /usr/local/bin/systemctl

# Deploy GWMS aliases
RUN /usr/bin/wget -O ~/.bash_aliases https://raw.githubusercontent.com/glideinWMS/dev-tools/master/.bash_aliases && \
. ~/.bash_aliases || true
# htgettoken needs the OSG repo
# Installing htgettoken
# RUN dnf -y install htgettoken

# Consider the following for FNAL kinit/kx509/...
# krb5-workstation yum-conf-context-fermilab fermilab-util_kx509 fermilab-conf_kerberos

# Installing htgettoken from source
RUN dnf -y install krb5-devel python3-devel gcc;\
git clone https://github.com/fermitools/htgettoken.git /opt/htgettoken && \
pip install /opt/htgettoken/

# This must be after all dnf/yum and pip commands
# Cleaning YUM and DNF all caches (including disabled repos) and pip caches to reduce size of image
Expand Down
14 changes: 14 additions & 0 deletions workspaces/testbed-workspace/scripts/install-developer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/bash

# SPDX-FileCopyrightText: 2020 Fermi Research Alliance, LLC
# SPDX-License-Identifier: Apache-2.0

# Install development software
# Used to minimize the software installed in the base image (testbed-workspace)

# Development tools
dnf install -y python3 wget git jq vim zsh sudo psmisc bind-utils mlocate

# Deploy GWMS aliases
/usr/bin/wget -O ~/.bash_aliases https://raw.githubusercontent.com/glideinWMS/dev-tools/master/.bash_aliases && \
. ~/.bash_aliases || true
85 changes: 0 additions & 85 deletions workspaces/testbed-workspace/scripts/install-factory.sh

This file was deleted.

71 changes: 0 additions & 71 deletions workspaces/testbed-workspace/scripts/install-frontend.sh

This file was deleted.

Loading

0 comments on commit faaa3fb

Please sign in to comment.