Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save phantomjinx/8720195a3e7d4491d9e1667963b2b088 to your computer and use it in GitHub Desktop.
Save phantomjinx/8720195a3e7d4491d9e1667963b2b088 to your computer and use it in GitHub Desktop.
Build output syndesis meta using podman system service rather than docker
Modules: meta
==============================================================================
./mvnw -N --no-transfer-progress -Pflash -P image,image-push -Dfabric8.mode=kubernetes -Ddocker.push.registry=quay.io/phantomjinx/syndesis-meta -DmavenMirror=http://my.maven.mirror:8081/repository/maven-public clean install -Pflash ### Installing parent
==============================================================================
OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
[INFO] BuildTimeEventSpy is registered.
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------< io.syndesis:syndesis-parent >---------------------
[INFO] Building Syndesis 2.0-SNAPSHOT
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ syndesis-parent ---
[INFO] Deleting /home/phantomjinx/programming/go/src/github.com/syndesisio/syndesis/app/target
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (check-for-limited-cryptography) @ syndesis-parent ---
[INFO] Skipping Rule Enforcement.
[INFO]
[INFO] --- git-commit-id-plugin:4.0.0:revision (basepom.default) @ syndesis-parent ---
[INFO]
[INFO] --- maven-assembly-plugin:3.1.1:single (create-tool-jar) @ syndesis-parent ---
[INFO] Reading assembly descriptor: tools.xml
[INFO] Building jar: /home/phantomjinx/programming/go/src/github.com/syndesisio/syndesis/app/target/syndesis-parent-2.0-SNAPSHOT-tools.jar
[INFO]
[INFO] --- maven-install-plugin:3.0.0-M1:install (default-install) @ syndesis-parent ---
[INFO] Installing /home/phantomjinx/programming/go/src/github.com/syndesisio/syndesis/app/pom.xml to /home/phantomjinx/.m2/repository/io/syndesis/syndesis-parent/2.0-SNAPSHOT/syndesis-parent-2.0-SNAPSHOT.pom
[INFO] Installing /home/phantomjinx/programming/go/src/github.com/syndesisio/syndesis/app/target/syndesis-parent-2.0-SNAPSHOT-tools.jar to /home/phantomjinx/.m2/repository/io/syndesis/syndesis-parent/2.0-SNAPSHOT/syndesis-parent-2.0-SNAPSHOT-tools.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.585 s
[INFO] Finished at: 2020-07-31T23:32:29+01:00
[INFO] ------------------------------------------------------------------------
==============================================================================
./mvnw --no-transfer-progress -Pflash -P image,image-push -Dfabric8.mode=kubernetes -Ddocker.push.registry=quay.io/phantomjinx/syndesis-meta -DmavenMirror=http://my.maven.mirror:8081/repository/maven-public clean install -f meta ### Processing submodule meta
==============================================================================
OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
[INFO] BuildTimeEventSpy is registered.
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------< io.syndesis.meta:meta >------------------------
[INFO] Building Meta 2.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ meta ---
[INFO] Deleting /home/phantomjinx/programming/go/src/github.com/syndesisio/syndesis/app/meta/target
[INFO]
[INFO] --- git-commit-id-plugin:4.0.0:revision (basepom.default) @ meta ---
[INFO]
[INFO] --- spring-boot-maven-plugin:2.2.6.RELEASE:build-info (default) @ meta ---
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ meta ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 5 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ meta ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 8 source files to /home/phantomjinx/programming/go/src/github.com/syndesisio/syndesis/app/meta/target/classes
[INFO]
[INFO] --- maven-jar-plugin:3.1.2:jar (default-jar) @ meta ---
[INFO] Building jar: /home/phantomjinx/programming/go/src/github.com/syndesisio/syndesis/app/meta/target/meta-2.0-SNAPSHOT.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.2.6.RELEASE:repackage (default) @ meta ---
[INFO] Layout: ZIP
[INFO] Replacing main artifact with repackaged archive
[INFO]
[INFO] --- fabric8-maven-plugin:4.2.0:build (build) @ meta ---
[INFO] F8: Running in Kubernetes mode
[INFO] F8: Building Docker image in Kubernetes mode
[INFO] F8: Running generator spring-boot
[INFO] F8: spring-boot: Using Docker image fabric8/java-centos-openjdk8-jdk:1.5 as base / builder
f68885b8dce188da7d676ed95fa25413777ec4dc914a255630b3135cd88ccfdc: pulling image () from docker.io/fabric8/java-centos-openjdk8-jdk:1.5
[INFO] F8: Pulled fabric8/java-centos-openjdk8-jdk:1.5 in 1 minute and 1 second
[INFO] Copying files to /home/phantomjinx/programming/go/src/github.com/syndesisio/syndesis/app/meta/target/docker/syndesis/syndesis-meta/latest/build/maven
[INFO] Building tar: /home/phantomjinx/programming/go/src/github.com/syndesisio/syndesis/app/meta/target/docker/syndesis/syndesis-meta/latest/tmp/docker-build.tar
[INFO] F8: [syndesis/syndesis-meta:latest] "spring-boot": Created docker-build.tar in 889 milliseconds
http: superfluous response.WriteHeader call from github.com/containers/libpod/pkg/api/handlers/utils.WriteJSON (handler.go:64)
[ERROR] F8: Failed to execute the build [Error while trying to build the image]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:41 min
[INFO] Finished at: 2020-07-31T23:35:13+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:4.2.0:build (build) on project meta: Failed to execute the build: Error while trying to build the image: Unable to build image [syndesis/syndesis-meta:latest] : {"cause":"Content-Type: application/json is not supported. Should be \"application/x-tar\"","message":"Failed to parse query parameter 'Content-Type': \"application/json\": Content-Type: application/json is not supported. Should be \"application/x-tar\"","response":400}
[ERROR] {"stream":"Getting image source signatures\nCopying blob sha256:89169d87dbe2b72ba42bfbb3579c957322baca28e03a1e558076542a1c1b2b4a\nCopying blob sha256:3c95a72bbf2502baec078819890f927591a68b79f5283c212a6a7e8e3c1ed7ed\nCopying blob sha256:7ca1db3bb13f2fa7e038012fb5b739c0bdbe95226a53d748316a74501c0ee8f5\nCopying blob sha256:3a6b4dd42a7608c4e17d0a54aad56960ee9c837693e2efa1af9d19438c5884f5\nCopying blob sha256:3445c4376959891f80704aae0752733918f17db7395bf400d0261bc529440af4\nCopying blob sha256:82fbe05a11f39dc48a64ed9b0b3d66bd78829fb430c261b9c9899a04aa589c93\nCopying blob sha256:66acf59d5d134f6749a6e7277fd10ec1911f3df2e837601fff96c87b06e303a7\nCopying blob sha256:eab28b32e2ee9a9ea4525fcf70c7da7a300ea703c3f0716f1b080561b503187f\nCopying blob sha256:81562bebfad366628a5fe0b2da9b7dd31f10ef1db45cbb0f1111920304c81cc6\nCopying blob sha256:b574ddc087ae7a397c01bf7d5a0c85b3478d528007bdfafb779900398b66d862\nCopying config sha256:f8c49ca5050a8c9eb47025ab55a999b9867b3977bdf4fd43e7432345d36ffe1a\nWriting manifest to image destination\nStoring signatures\n--\u003e f8c49ca5050\nf8c49ca5050a8c9eb47025ab55a999b9867b3977bdf4fd43e7432345d36ffe1a\n\nFROM fabric8/java-centos-openjdk8-jdk:1.5\nENV JAVA_APP_DIR=/deployments\nLABEL org.label-schema.description=\"Syndesis :: Meta\" org.label-schema.version=2.0-SNAPSHOT org.label-schema.schema-version=1.0 org.label-schema.build-date=2020-07-31T23:33:58.646312 org.label-schema.name=Meta org.label-schema.vcs-ref=5a2cd2d9f5d0897616012b0550b45dfd65aed3ab org.label-schema.url=https://syndesis.io/meta/ org.label-schema.vendor=\"Red Hat\" org.label-schema.vcs-url=git@github.com:syndesisio/syndesis.git\nEXPOSE 8080 8778 9779\nCOPY maven /deployments/\nCOMMIT syndesis/syndesis-meta\nSuccessfully built f8c49ca5050a8c9eb47025ab55a999b9867b3977bdf4fd43e7432345d36ffe1a\n"} (Bad Request: 400)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment