Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

My javacode checked out by circleci is not found when I use Dockerfile

Дата публикации: 18-07-2026 15:36:40


I am not very experienced using Docker , but I want to build an image that runs java and springboot as I want to run some tests on the running application (not just junit tests)
I have to dockerfile for dockerfile build
FROM maven:3.9.16-eclipse-temurin-17 AS build
# Build the application using Maven
RUN mvn clean package -DskipTests
ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} app.jar
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "/app.jar"]
But this is the log error from pipeline build:
The goal you specified requires a project to execute but there is no POM in this directory .
I need to run maven package to create the application jar file in order to be able to set the entrypoint
For me it seems that docker doesnt find the files from cirlcleci checkout
My job (what happens after build might not work either, but for now I focus to get docker build to work and now its the Dockerfile that is the problem
jobincmaven:
docker:
- image: cimg/base:2026.07
steps:
- checkout
- setup_remote_docker:
docker_layer_caching: true
- run:
name: Build an image
command: |
docker build --tag $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME$CIRCLE_SHA1 .
- run:
name: Run application in background
command: |
docker run -t $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME$CIRCLE_SHA1
background: true

1 post - 1 participant
Read full topic

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Security notice and deprecation: standalone circleci-mcp-server08.3220-07-2026
2Post Incident Report: June 23, 2026 - Delays starting Docker jobs010.3427-06-2026
3Could not find a usable config.yml, you may have revoked the CircleCI OAuth app. Github05.0415-07-2026
4403 CloudFront Error While Accessing CircleCI Web UI0827-07-2026
5CircleCI Response to CVE-2026-43499 ("GhostLock" Linux kernel vulnerability)08.0609-07-2026
6Sbt launcher fails with HTTP 429 from Maven Central010.6622-07-2026
7CircleCI docs site: menus & search non-functional in google chrome v150.x04.1519-07-2026
8Multi-Service Docker Compose Build in Travis CI with Cross-Container Caching and Service Health Checks0703-06-2025
9Help debugging cancelled runners on main branch07.1720-07-2026
10Starting Android emulator with API 36 hangs while waiting for boot animation [with workaround]08.0627-07-2026

Классификация: . Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 8.2. Источник: discuss.circleci.com.