This is an automated email from the ASF dual-hosted git repository.

piergiorgio pushed a commit to branch CONNECTORS-1754
in repository https://gitbox.apache.org/repos/asf/manifoldcf.git


The following commit(s) were added to refs/heads/CONNECTORS-1754 by this push:
     new f573c8644 Added script for signing artifacts (CONNECTORS-1754), 
enabled standard output for Docker image (CONNECTORS-1492)
f573c8644 is described below

commit f573c864481374b56155a970ee38abba05f2dda3
Author: Piergiorgio Lucidi <[email protected]>
AuthorDate: Thu Sep 5 21:43:38 2024 +0200

    Added script for signing artifacts (CONNECTORS-1754), enabled standard 
output for Docker image (CONNECTORS-1492)
---
 Dockerfile                          |  2 ++
 sign-release-artifacts.sh           | 24 +++++++++++++++++++++++
 src/main/docker/logging/logging.xml | 38 +++++++++++++++++++++++++++++++++++++
 3 files changed, 64 insertions(+)

diff --git a/Dockerfile b/Dockerfile
index bc89fb502..cbd43d48e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -75,6 +75,8 @@ RUN set -ex; \
     groupadd -r --gid "$MCF_GROUP_ID" "$MCF_GROUP"; \
     useradd -r --uid "$MCF_USER_ID" --gid "$MCF_GROUP_ID" "$MCF_USER"
 
+COPY src/main/docker/logging/logging.xml ${MCF_HOME}/example
+
 RUN chown ${MCF_USER}:${MCF_USER} -R ${MCF_HOME}
 RUN chmod +x ${MCF_HOME}/example/start.sh
 
diff --git a/sign-release-artifacts.sh b/sign-release-artifacts.sh
new file mode 100755
index 000000000..2e2d2049f
--- /dev/null
+++ b/sign-release-artifacts.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+gpg_local_user=$1
+mcf_version=$2
+
+gpg --local-user "$1" --armor --output apache-manifoldcf-$2-src.zip.asc 
--detach-sig apache-manifoldcf-$2-src.zip
+gpg --local-user "$1" --armor --output apache-manifoldcf-$2-src.tar.gz.asc 
--detach-sig apache-manifoldcf-$2-src.tar.gz
+gpg --local-user "$1" --armor --output apache-manifoldcf-$2-lib.zip.asc 
--detach-sig apache-manifoldcf-$2-lib.zip
+gpg --local-user "$1" --armor --output apache-manifoldcf-$2-lib.tar.gz.asc 
--detach-sig apache-manifoldcf-$2-lib.tar.gz
+gpg --local-user "$1" --armor --output apache-manifoldcf-$2-bin.zip.asc 
--detach-sig apache-manifoldcf-$2-bin.zip
+gpg --local-user "$1" --armor --output apache-manifoldcf-$2-bin.tar.gz.asc 
--detach-sig apache-manifoldcf-$2-bin.tar.gz
+
+gpg --print-md MD5 apache-manifoldcf-$2-src.zip > 
apache-manifoldcf-$2-src.zip.md5
+gpg --print-md MD5 apache-manifoldcf-$2-src.tar.gz > 
apache-manifoldcf-$2-src.tar.gz.md5
+gpg --print-md MD5 apache-manifoldcf-$2-lib.zip > 
apache-manifoldcf-$2-lib.zip.md5
+gpg --print-md MD5 apache-manifoldcf-$2-lib.tar.gz > 
apache-manifoldcf-$2-lib.tar.gz.md5
+gpg --print-md MD5 apache-manifoldcf-$2-bin.zip > 
apache-manifoldcf-$2-bin.zip.md5
+gpg --print-md MD5 apache-manifoldcf-$2-bin.tar.gz > 
apache-manifoldcf-$2-bin.tar.gz.md5
+
+gpg --print-md SHA512 apache-manifoldcf-$2-src.zip > 
apache-manifoldcf-$2-src.zip.sha512
+gpg --print-md SHA512 apache-manifoldcf-$2-src.tar.gz > 
apache-manifoldcf-$2-src.tar.gz.sha512
+gpg --print-md SHA512 apache-manifoldcf-$2-lib.zip > 
apache-manifoldcf-$2-lib.zip.sha512
+gpg --print-md SHA512 apache-manifoldcf-$2-lib.tar.gz > 
apache-manifoldcf-$2-lib.tar.gz.sha512
+gpg --print-md SHA512 apache-manifoldcf-$2-bin.zip > 
apache-manifoldcf-$2-bin.zip.sha512
+gpg --print-md SHA512 apache-manifoldcf-$2-bin.tar.gz > 
apache-manifoldcf-$2-bin.tar.gz.sha512
\ No newline at end of file
diff --git a/src/main/docker/logging/logging.xml 
b/src/main/docker/logging/logging.xml
new file mode 100644
index 000000000..9577743a5
--- /dev/null
+++ b/src/main/docker/logging/logging.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<Configuration status="warn" name="ManifoldCF" packages="">
+  <Appenders>
+    <Console name="STDOUT" target="SYSTEM_OUT">
+      <PatternLayout>
+        <Pattern>%5p %d{ISO8601} (%t) - %m%n</Pattern>
+      </PatternLayout>
+    </Console>
+    <File name="MyFile" fileName="logs/manifoldcf.log">
+      <PatternLayout>
+        <Pattern>%5p %d{ISO8601} (%t) - %m%n</Pattern>
+      </PatternLayout>
+    </File>
+  </Appenders>
+  <Loggers>
+    <Root level="error">
+      <AppenderRef ref="STDOUT"/>
+      <AppenderRef ref="MyFile"/>
+    </Root>
+  </Loggers>
+</Configuration>

Reply via email to