-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'fix/docker-cacerts-m1' into feature/rpa-datacart
- Loading branch information
Showing
17 changed files
with
129 additions
and
35 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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
This directory contains non-standard CA certificates needed to build the docker | ||
images. | ||
|
||
Failures building the Docker containers defined in ../ due to SSL certificate | ||
verification errors may be a consequence of your local network's firewall. In | ||
particular, the firewall may be substituting external site certificates with | ||
its own signed by a non-standard CA certficate (chain). If so, you can place | ||
the necessary certificates into this directory; they will be passed into the | ||
containers, allowing them to safely connect to those external sites. | ||
|
||
Be sure the certificates are in PEM format and include a .crt file extension. | ||
|
||
Do not remove this README file; doing so may cause a Docker build faiure. |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
This directory contains non-standard CA certificates needed to build the docker | ||
images. | ||
|
||
Failures building the Docker containers defined in ../ due to SSL certificate | ||
verification errors may be a consequence of your local network's firewall. In | ||
particular, the firewall may be substituting external site certificates with | ||
its own signed by a non-standard CA certficate (chain). If so, you can place | ||
the necessary certificates into this directory; they will be passed into the | ||
containers, allowing them to safely connect to those external sites. | ||
|
||
Be sure the certificates are in PEM format and include a .crt file extension. | ||
|
||
Do not remove this README file; doing so may cause a Docker build faiure. |
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 @@ | ||
73224b331d2bb0f05fd2ff62d1c736460f12f8e8757e8afbbcdf11a7f1464da5 node-v14.19.0-linux-arm64.tar.xz |
File renamed without changes.
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
Submodule oar-metadata
updated
4 files
+1 −0 | .github/workflows/testall.yml | |
+3 −3 | jq/pod2nerdm.jq | |
+12 −12 | jq/tests/test_pod2nerdm.jqt | |
+9 −7 | jq/tests/test_podds2resource.py |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#! /bin/bash | ||
# | ||
# install_ca_certs.sh -- copy the specified CA certificates into this source so that they can be used | ||
# to build the software via docker. | ||
# | ||
# usage: install_ca_certs.sh CA_CERT_FILE... | ||
# | ||
# where CA_CERT_FILE is a file path to a CA certificate to install | ||
# | ||
# This script helps address the problem with docker-based builds when run within a firewall that | ||
# replaces external site certificates with ones signed by a non-standard CA, causing the retrieval | ||
# of software dependencies to fail. This script is used by oar-docker's localbuild script to receive | ||
# extra CA certificates that addresses such failures. Because localdeploy makes no assumptions about | ||
# how this source code repository builds using docker, this script encapsulates that knowledge on | ||
# behalf of localbuild. | ||
# | ||
# Note: if this repository does not require/support use of non-standard CA certificates, remove (or | ||
# rename) this script. | ||
# | ||
set -e | ||
prog=`basename $0` | ||
execdir=`dirname $0` | ||
[ "$execdir" = "" -o "$execdir" = "." ] && execdir=$PWD | ||
basedir=`dirname $execdir` | ||
|
||
cacertdir="$basedir/docker/cacerts" | ||
[ -d "$cacertdir" ] || exit 0 # I guess we don't need the certs | ||
|
||
crts=`echo $@ | sed -e 's/^ *//' -e 's/ *$//'` | ||
[ -n "$crts" ] || { | ||
print "${prog}: Missing cert file argument" | ||
false | ||
} | ||
|
||
echo '+' cp $crts $cacertdir | ||
cp $crts $cacertdir | ||
|