Skip to content
Snippets Groups Projects
Commit 48e03dd0 authored by Nicolas Richart's avatar Nicolas Richart
Browse files

Correcting merge procedure with updated yq and jq

parent eb71a115
No related branches found
No related tags found
No related merge requests found
Pipeline #200515 canceled
...@@ -104,9 +104,11 @@ jq -Mrc ' ...@@ -104,9 +104,11 @@ jq -Mrc '
| .[] | .[]
' ${STACK_CONFIG} >> ${SPACK_SYSTEM_CONFIG_PATH}/packages.yaml ' ${STACK_CONFIG} >> ${SPACK_SYSTEM_CONFIG_PATH}/packages.yaml
if [ -e ${SPACK_SYSTEM_CONFIG_PATH}/packages.yaml.old ] if [ -e packages.yaml.old ]
then then
yq '. *= load("packages.yaml.old")' ${SPACK_SYSTEM_CONFIG_PATH}/packages.yaml yq eval-all --inplace 'select(fileIndex==0) *+ select(fileIndex==1)' \
${SPACK_SYSTEM_CONFIG_PATH}/packages.yaml packages.yaml.old
rm packages.yaml.old
fi fi
cp "${SPACK_SYSTEM_CONFIG_PATH}/packages.yaml" spack/etc/spack cp "${SPACK_SYSTEM_CONFIG_PATH}/packages.yaml" spack/etc/spack
......
...@@ -24,7 +24,7 @@ RUN yum install -y --enablerepo=$APPSTREAM_REPO \ ...@@ -24,7 +24,7 @@ RUN yum install -y --enablerepo=$APPSTREAM_REPO \
python3 python3-pip python3-setuptools python3-boto3 \ python3 python3-pip python3-setuptools python3-boto3 \
git subversion mercurial \ git subversion mercurial \
glibc-gconv-extra \ glibc-gconv-extra \
jq squashfs-tools \ squashfs-tools \
&& yum -y clean all && rm -fr /var/cache && yum -y clean all && rm -fr /var/cache
# stack dependencies # stack dependencies
...@@ -50,4 +50,11 @@ RUN yum install -y --enablerepo=$GPFS_REPO \ ...@@ -50,4 +50,11 @@ RUN yum install -y --enablerepo=$GPFS_REPO \
gpfs.base \ gpfs.base \
&& yum -y clean all && rm -fr /var/cache && yum -y clean all && rm -fr /var/cache
RUN pip3 install yq
RUN curl -L -O https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64 \
&& mv jq-linux-amd64 /usr/local/bin/jq \
&& chmod +x /usr/local/bin/jq
RUN curl -L -O https://github.com/mikefarah/yq/releases/download/v4.44.2/yq_linux_amd64 \
&& mv yq_linux_amd64 /usr/local/bin/yq \
&& chmod +x /usr/local/bin/yq
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment