-
Notifications
You must be signed in to change notification settings - Fork 977
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
curl: (6) getaddrinfo() thread failed to start #682
Comments
Here is my Dockerfile: ARG OPENTELEMETRY_JAVA_AGENT_VERSION=1.31.0 COPY pom.xml . COPY src/ /tmp/hapi-fhir-jpaserver-starter/src/ FROM build-hapi AS build-distroless ########### bitnami tomcat version is suitable for debugging and comes with a shell RUN rm -rf /opt/bitnami/tomcat/webapps/ROOT && USER root COPY --chown=1001:1001 catalina.properties /opt/bitnami/tomcat/conf/catalina.properties ENV ALLOW_EMPTY_PASSWORD=yes ########### distroless brings focus on security and runs on plain spring boot - this is the default image COPY --chown=nonroot:nonroot --from=build-distroless /app /app ENTRYPOINT ["java", "--class-path", "/app/main.war", "-Dloader.path=main.war!/WEB-INF/classes/,main.war!/WEB-INF/,/app/extra-classes", "org.springframework.boot.loader.PropertiesLauncher"] And here is my docker-compose.yml |
This doesn't appear to have anything to do with HAPI. The curl command in your Dockerfile is returning an error. Incidentally, I would guess it's a DNS/proxy/firewall issue of some sort. |
The build finishes successfully on my machine. But I am getting the following error when I try to build the server on an AWS instance:
RUN curl -LSsO https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v${OPENTELEMETRY_JAVA_AGENT_VERSION}/opentelemetry-javaagent.jar
---> Running in 8d0181202ed0
curl: (6) getaddrinfo() thread failed to start
The command '/bin/sh -c curl -LSsO https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v${OPENTELEMETRY_JAVA_AGENT_VERSION}/opentelemetry-javaagent.jar' returned a non-zero code: 6
ERROR: Service 'hapi-fhir' failed to build : Build failed
The text was updated successfully, but these errors were encountered: