GithubHelp home page GithubHelp logo

Comments (4)

PraveenSalitra avatar PraveenSalitra commented on May 12, 2024 1

@xtremebiker: I am facing the same issues in passing --env variables to the docker run command. The springboot container works fine if I use frolvlad/alpine-oraclejdk8:8.121.13-slim but it ignores --env variables with frolvlad/alpine-oraclejdk8:8.131.11-slim
Were you able to resolve it?

from docker-alpine-java.

frol avatar frol commented on May 12, 2024

Hi,

I haven't changed much in the images, they have automatically got rebuilt with the latest commit, which only touched README.

I have not experienced any problems with the image in any of my projects. A week or so ago I have updated the base image from Alpine 3.5 to the newly released Alpine 3.6, so it might be the cause of the change in behavior. Can you provide a minimal reproducible example so I can help you?

Cheers!

from docker-alpine-java.

xtremebiker avatar xtremebiker commented on May 12, 2024

@salitrapraveen haven't found time still for it. I'm also using Spring Boot and that's the format of my docker files:

Works:

FROM frolvlad/alpine-oraclejdk8:8.121.13-slim
ADD app.jar app.jar
ENTRYPOINT exec java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar

Doesn't pick ENV variables:

FROM frolvlad/alpine-oraclejdk8:8.131.11-slim
ADD app.jar app.jar
ENTRYPOINT exec java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar

Still, I made some tests in my local machine and couldn't reproduce it in a project made from scratch (Spring Initializr). Could be even a problem with the Spring Boot version (I'm using 1.4.4 for my production projects) and that specific JDK version. It might be interesting testing with 1.4.4 and more recent boot versions and the 8.131 jdk image.

from docker-alpine-java.

frol avatar frol commented on May 12, 2024

I am sorry, but I cannot reproduce the described behaviour on my end:

FROM frolvlad/alpine-oraclejdk8:8.131.11-slim

ENTRYPOINT exec echo $JAVA_OPTS
$ docker build -t qq .
$ docker run -it --rm -e JAVA_OPTS=java-test qq
java-test

from docker-alpine-java.

Related Issues (20)

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.