You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2024/07/06 20:16:35 UTC

(camel) 03/03: Revert "CAMEL-20814: Publish buildinfo and provide a build container to improve release reproducibility. (#14275)"

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

davsclaus pushed a commit to branch binfo
in repository https://gitbox.apache.org/repos/asf/camel.git

commit a2ef5eb442b4b0fbc7b73970bcb8a980bc34c4eb
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sat Jul 6 22:11:15 2024 +0200

    Revert "CAMEL-20814: Publish buildinfo and provide a build container to improve release reproducibility. (#14275)"
    
    This reverts commit 9dc1e2dbfa1f2d36c36e3e45afd16e8b485d6215.
---
 Dockerfile | 29 -----------------------------
 builder    | 34 ----------------------------------
 pom.xml    | 22 ----------------------
 3 files changed, 85 deletions(-)

diff --git a/Dockerfile b/Dockerfile
deleted file mode 100644
index 39c1ef97aae..00000000000
--- a/Dockerfile
+++ /dev/null
@@ -1,29 +0,0 @@
-#
-# 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.
-#
-
-# This has a JDK and Maven we can use.
-FROM registry.access.redhat.com/ubi9/openjdk-21
-USER root
-
-#
-# the builder script will run this container under as your uid:guid so that the files it creates
-# in the host env are owned by you, lets make sure there is uid:guid to match in the container.
-RUN for i in $(seq 50 184); do echo "default$i:x:$i:$i:default:/home/default:/bin/bash" >> /etc/passwd; done; 
-RUN for i in $(seq 186 2000); do echo "default$i:x:$i:$i:default:/home/default:/bin/bash" >> /etc/passwd; done
-
-CMD ["/bin/bash"]
-WORKDIR /src
\ No newline at end of file
diff --git a/builder b/builder
deleted file mode 100755
index 4cecc1767a1..00000000000
--- a/builder
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-# 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.
-# ----------------------------------------------------------------------------
-set -e
-
-# This script gives you a reproducible build enviroment, since the enviroment is containerizedL
-# Example usage: ./builder mvn clean install -Dquickly
-
-docker build . -t apache-camel-builder
-
-# Run the builder container as the current user, and mount his home dirs
-# so that host .m2 repos can be reused and provide access to release gpg keys and such.
-docker run --rm -it \
-    --user "`id -u`:`id -g`" \
-    -v "`pwd`:/src" \
-    -v "${HOME}:/home/default" \
-    -v "${HOME}:${HOME}" \
-    apache-camel-builder $*
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index a786c0f59a1..0c5ed6d51d7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -134,10 +134,8 @@
         <maven-remote-resources-plugin-version>3.2.0</maven-remote-resources-plugin-version>
         <maven-surefire-plugin-version>3.3.0</maven-surefire-plugin-version>
         <versions-maven-plugin-version>2.16.2</versions-maven-plugin-version>
-        <maven-artifact-plugin-version>3.5.1</maven-artifact-plugin-version>
 
         <camel.javadoc.offline>false</camel.javadoc.offline>
-
         <invoker.skip>${skipTests}</invoker.skip>
     </properties>
 
@@ -215,24 +213,6 @@
                     <outputDirectory>target</outputDirectory>
                 </configuration>
             </plugin>
-
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-artifact-plugin</artifactId>
-                <version>${maven-artifact-plugin-version}</version>
-                <executions>
-                    <execution>
-                        <id>buildinfo</id>
-                        <phase>verify</phase>
-                        <goals>
-                            <goal>buildinfo</goal>
-                        </goals>
-                        <configuration>
-                            <attach>true</attach>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
         </plugins>
 
         <pluginManagement>
@@ -346,8 +326,6 @@
                                     <exclude>camel-sbom/*.xml</exclude>
                                     <exclude>doap.rdf</exclude>
                                     <exclude>mvnw*</exclude>
-                                    <exclude>Dockerfile</exclude>
-                                    <exclude>builder*</exclude>
                                     <exclude>**/FileSplitXPathCharsetTest-input.xml</exclude>
                                 </excludes>
                             </licenseSet>