Skip to content

Commit

Permalink
Merge pull request #139 from italiangrid/develop
Browse files Browse the repository at this point in the history
VOMS v. 2.1.0
  • Loading branch information
giacomini authored Oct 10, 2024
2 parents 92cbea9 + 86021b4 commit 2eaeb9a
Show file tree
Hide file tree
Showing 133 changed files with 9,150 additions and 7,326 deletions.
7 changes: 7 additions & 0 deletions .devcontainer/Dockerfile-centos7
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM centos:7

COPY library-scripts/*.sh /tmp/library-scripts/
RUN \
bash /tmp/library-scripts/add-repos-redhat.sh && \
bash /tmp/library-scripts/common-redhat.sh false automatic automatic automatic true false && \
bash /tmp/library-scripts/add-deps-redhat.sh
7 changes: 7 additions & 0 deletions .devcontainer/Dockerfile-el9
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM almalinux:9

COPY library-scripts/*.sh /tmp/library-scripts/
RUN \
bash /tmp/library-scripts/add-repos-redhat.sh && \
bash /tmp/library-scripts/common-redhat.sh false automatic automatic automatic true false && \
bash /tmp/library-scripts/add-deps-redhat.sh
44 changes: 44 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/docker-existing-docker-compose
// If you want to run as a non-root user in the container, see .devcontainer/docker-compose.yml.
{
"name": "VOMS Devel",

// Update the 'dockerComposeFile' list if you have more compose files or use different names.
// The .devcontainer/docker-compose.yml file contains any overrides you need/want to make.
"dockerComposeFile": [
"../docker-compose.yml",
"docker-compose.yml"
],

// The 'service' property is the name of the service for the container that VS Code should
// use. Update this value and .devcontainer/docker-compose.yml to the real service name.
"service": "container-el9",

// Uncomment the next line if you want start specific services in your Docker Compose config.
"runServices": ["container-el9"],

// The optional 'workspaceFolder' property is the path VS Code should open by default when
// connected. This is typically a file mount in .devcontainer/docker-compose.yml
"workspaceFolder": "/workspace",

"customizations": {
"vscode": {
"extensions": [
"ms-vscode.cpptools",
"eamodio.gitlens"
]
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Uncomment the next line if you want to keep your containers running after VS Code shuts down.
// "shutdownAction": "none",

// Uncomment the next line to run commands after the container is created - for example installing curl.
// "postCreateCommand": "apt-get update && apt-get install -y curl",

// Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"
}
52 changes: 52 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@

services:

container-el9:

environment:
- TZ=Europe/Rome

depends_on:
- trust

build:
context: .devcontainer
dockerfile: Dockerfile-el9

volumes:
- trustanchors:/etc/grid-security/certificates
- .:/workspace

cap_add:
- SYS_PTRACE
security_opt:
- seccomp:unconfined

command: sleep infinity

init: true

container-centos7:

environment:
- TZ=Europe/Rome

depends_on:
- trust

build:
context: .devcontainer
dockerfile: Dockerfile-centos7

volumes:
- trustanchors:/etc/grid-security/certificates
- .:/workspace

cap_add:
- SYS_PTRACE
security_opt:
- seccomp:unconfined

command: sleep infinity

init: true
43 changes: 43 additions & 0 deletions .devcontainer/library-scripts/add-deps-redhat.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/usr/bin/env bash
#
# Copyright (c) Istituto Nazionale di Fisica Nucleare
# Licensed under the EUPL
#
# Syntax: ./add-deps-redhat.sh [install doc tools]

set -e

. /etc/os-release

INSTALL_DOC_TOOLS=${1:-"false"}

package_list="\
file \
gdb \
expat-devel \
autoconf \
automake \
make \
libtool \
openssl-devel \
gsoap-devel \
bison \
gcc-c++"

if ! type git > /dev/null 2>&1; then
if [ "${ID}" = "centos" ] && [ "${VERSION_ID}" = "7" ]; then
package_list="${package_list} git236"
else
package_list="${package_list} git"
fi
fi


if [ ${INSTALL_DOC_TOOLS} = "true" ]; then
package_list="${package_list} \
libxslt \
docbook-style-xsl \
doxygen"
fi

yum install -y ${package_list}
18 changes: 18 additions & 0 deletions .devcontainer/library-scripts/add-repos-redhat.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
#
# Copyright (c) Istituto Nazionale di Fisica Nucleare
# Licensed under the EUPL
#
# Syntax: ./add-repos-redhat.sh

set -e

. /etc/os-release

repo_list="epel-release"

if [ "${ID}" = "centos" ] && [ "${VERSION_ID}" = "7" ]; then
repo_list="${repo_list} https://repo.ius.io/ius-release-el7.rpm"
fi

yum install -y ${repo_list}
Loading

0 comments on commit 2eaeb9a

Please sign in to comment.