Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error running steps from quick start guide #9

Open
RyanDTurner opened this issue Sep 11, 2020 · 1 comment
Open

error running steps from quick start guide #9

RyanDTurner opened this issue Sep 11, 2020 · 1 comment

Comments

@RyanDTurner
Copy link

Following steps from Quick Start guide.
Fails on Step 3: Serve the application when running docker-compose up -d command

Output:
Building serendipity-server
Step 1/9 : FROM openjdk:11.0.7
---> fcfdce4526df
Step 2/9 : COPY /services/jasperreports-server/scripts/wait-for-container-to-exit.sh /
---> Using cache
---> dafd05c91933
Step 3/9 : COPY entrypoint.sh /
---> Using cache
---> 79f4c05850c7
Step 4/9 : RUN echo "apt-get" && chmod +x /*.sh && apt-get update && apt-get install -y --no-install-recommends curl jq && addgroup --system spring && adduser --system spring --ingroup spring && mkdir /opt/serendipity-api && chown spring:spring /opt/serendipity-api
---> Using cache
---> d200c2a40ea5
Step 5/9 : USER spring:spring
---> Using cache
---> 1ebde559df8a
Step 6/9 : COPY ./target/serendipity-rest-api-core-0.0.1-SNAPSHOT.jar /opt/serendipity-api
ERROR: Service 'serendipity-server' failed to build: COPY failed: stat /var/lib/docker/tmp/docker-builder124468389/target/serendipity-rest-api-core-0.0.1-SNAPSHOT.jar: no such file or directory

I have JDK 14.0.2 installed
I have Maven 3.6.3 installed
I have Docker Desktop installed: Client: Docker Engine - Community, Version: 19.03.12

@Robinyo
Copy link
Owner

Robinyo commented Sep 24, 2020

@RyanDTurner sorry about the delay in getting back too you, GitHub doesn't notify me about issues anymore.

Re: No such file or directory: serendipity-rest-api-core-0.0.1-SNAPSHOT.jar

The build supports the following Maven project profiles: dev and test.

To build the (server) API:

# In the project's server directory: /server

mvn clean install spring-boot:repackage

# or

mvn clean install -Pdev spring-boot:repackage
mvn clean install -Ptest spring-boot:repackage

Note: dev is the active by default profile.

To build the project:

docker-compose build

To serve the applications:

docker-compose up -d

The containers may take a minute or two to startup.

You can check the status of the containers using the following command:

docker-compose ps

See: Build Management

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants