Skip to content

TIDO-576 Add devcontainer and test scripts #23

Merged
merged 5 commits into from
Aug 13, 2025
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM amazonlinux:2023.5.20240730.0

# Install necessary packages
RUN dnf -y install \
# these switches are used to force full java-17-corretto dependencies installation
ant -x java-22-amazon-corretto-headless -x java-21-amazon-corretto-headless \
# awscli \
tar \
gzip \
openssl \
unzip \
wget \
which \
&& dnf clean all

RUN mkdir -p /mda/inc/inc-meta
COPY . /mda/inc/inc-meta

# Set environment variables
#
# Note: XMLSECTOOL_PATH specifies the path to the xmlsectool installed with the
# metadata aggregator. We use xmlsectool in startup.sh, but that will no
# longer be required if we update the inc-meta MDA rules to check the
# signature of the source aggregate.
ENV INC_MD_VERIFIED_PATH=/metadata/inc-metadata.xml \
XMLSECTOOL_PATH=/mda/inc/inc-meta/tools/xmlsectool-3.0.0/xmlsectool.sh \
JAVA_HOME=/ \
JVMOPTS=-Xmx2048m \
MDQ_HOME=/mda/inc/inc-meta/ \
WWW_HOME=/mdqwww \
CERTGEN_MDQSIGN_SUBJECT=/C=US/ST=State/L=City/O=OrgName/CN=mdqsigning.example.org \
CERTGEN_WWW_SUBJECT=/C=US/ST=State/L=City/O=OrgName/CN=mdqweb.example.org

# Create metadata output directory
RUN mkdir /metadata

# CMD ["/usr/local/bin/startup.sh"]
10 changes: 10 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"build": {
"dockerfile": "Dockerfile"
},
"settings": {
"terminal.integrated.cwd": "/mda/inc/inc-meta/tests/incommon/scripts"
},
"workspaceMount": "source=${localWorkspaceFolder},target=/mda/inc/inc-meta,type=bind",
"workspaceFolder": "/mda/inc/inc-meta"
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Thumbs.db
/build/uai.html
/build/dml.html
/build/locations_noports.txt
/build/mdq

# /charting/
/charting/cache
Expand Down
17 changes: 17 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3076,6 +3076,23 @@
<echo>Generation complete.</echo>
</target>

<!--
inc.generate.import_sign_localkey
Generate the InCommon import aggregate signed using AWS CloudHSM
dmartinez marked this conversation as resolved.
Show resolved Hide resolved
-->
<target name="inc.generate.import_sign_localkey">
<property name="mda.sign.keyPassword" value="${sign.uk.keyPassword}"/>

<echo>Generating InCommon signed import aggregate in ${mda.inc.imported.xml}</echo>
<echo> (IdP-only aggregate in ${mda.inc.imported-idp.xml})</echo>
<echo> from production aggregate in ${mda.inc.production.xml}</echo>
<echo> and selected eduGAIN entities from ${mda.inc.edugain.xml}</echo>
<echo> signed using a local key</echo>
<CHANNEL.do channel="incommon" verb="import_sign_localkey"/>
<echo>Generation complete.</echo>
</target>

<!--
inc.generate.sign
Expand Down
Loading