Git Product home page Git Product logo

Comments (3)

ofsahin avatar ofsahin commented on June 14, 2024 1

i changed the dockerfile inside builder dir to this:

FROM maven:3.6.3-jdk-8
MAINTAINER Sergey Shadchin ([email protected])

RUN \
  apt-get update && \
  apt-get -y install nodejs npm

RUN mkdir -p /build
ADD build.sh /usr/local/bin/build.sh

RUN chmod u+x /usr/local/bin/build.sh

WORKDIR /build
CMD build.sh

added the line "RUN chmod u+x /usr/local/bin/build.sh", inspired by you

build passes the error you mentioned but i got a different error now.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  45.922 s
[INFO] Finished at: 2021-05-20T16:00:19Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (default) on project kidtracker: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [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
ERROR: 1

from kidtracker.

ofsahin avatar ofsahin commented on June 14, 2024

ok, i managed to get passed the error by adding line:

RUN npm install npm@latest -g
after the part

RUN \
  apt-get update -y && \
  apt-get -y install nodejs npm

to update npm beyond debian busters version.
but then, i faced this error:

> [email protected] build:index
> browserify -p tinyify src/main/js/app.js > src/main/resources/static/js/index.js

sh: 1: cannot create src/main/resources/static/js/index.js: Directory nonexistent
ERROR: "build:index" exited with 2.
[ERROR] Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)

i get passed this error by creating a js directory under /src/main/resources/static

final result:

[INFO] Replacing main artifact with repackaged archive
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:18 min
[INFO] Finished at: 2021-05-20T16:30:45Z
[INFO] ------------------------------------------------------------------------

success !

from kidtracker.

mecotrade avatar mecotrade commented on June 14, 2024

Thank you, @ofsahin ! In new release v2.0.0 I modified Dockerfile for builder and added placeholder for src/main/resources/static/js folder.

Also I replaced Windows-like line ending to Unix-like ones. Now builder scritpt seems to work fine.

from kidtracker.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.