[JAVA] Problems I was addicted to when building the digdag environment with docker

As much as a memo.

phenomenon

I got moss when I used an existing image webdizz / centos-java8 when I was brain dead and created a java8 environment on centos. You shouldn't skip this kind of thing. Don't use something you don't understand. Below is the detailed Java version

# java -version
java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)

When I do digdag push, I get a log with a time stamp, but it seems that the cause was that the API of the Java time-related library did not work well at that time.

ʻUnable to obtain Instant` I was getting an error saying ...

Solution

By the way, it worked fine in the following versions.

# java -version
openjdk version "1.8.0_171"
OpenJDK Runtime Environment (build 1.8.0_171-b10)
OpenJDK 64-Bit Server VM (build 25.171-b10, mixed mode)

Install with Dockerfile looks like this

FROM centos:latest

RUN \
    yum update -y && yum install -y \
      java-1.8.9-openjdk \
      java-1.8.0-openjdk-devel

There was no problem with Java, and I thought that the setting of JAVA_HOME was wrong, so I set it again and tried it, but it was reproduced after all, so it seems that the java version was not good.

There may be other solutions, so please let me know if this is the case.

Postscript

According to the description of the official document that you told me in the comment section, Java8 u72 or later is required to run digdag.

The version of Java at the time of the problem was certainly older than u72 when examined.

http://docs.digdag.io/getting_started.html#got-error

Recommended Posts

Problems I was addicted to when building the digdag environment with docker
What I was addicted to when updating the PHP version of the development environment (Docker) from 7.2.11 to 7.4.x
What I was addicted to with the Redmine REST API
The story I was addicted to when setting up STS
I was addicted to the roll method
I was addicted to the Spring-Batch test
I tried to build the environment of PlantUML Server with Docker
What I was addicted to when implementing google authentication with rails
I was addicted to WSl when trying to build an android application development environment with Vue.js
Memorandum: What I was addicted to when I hit the accounting freee API
A story I was addicted to when testing the API using MockMVC
I was addicted to doing onActivityResult () with DialogFragment
I was addicted to unit testing with the buffer operator in RxJava
I was addicted to not being able to connect to AWS-S3 from the Docker container
I was addicted to the NoSuchMethodError in Cloud Endpoints
I was addicted to the record of the associated model
What I was addicted to when developing a Spring Boot application with VS Code
A memo that I was addicted to when making batch processing with Spring Boot
What to do when routing settings do not work after building Docker environment with Laravel
What I was addicted to when trying to properly openAPI/Swagger documentation with Rails + Grape + Grape Swagger
What I fixed when updating to Spring Boot 1.5.12 ・ What I was addicted to
[Docker] List of errors that occurred when building the environment
I was addicted to setting default_url_options with Rails devise introduction
I was addicted to looping the Update statement on MyBatis
I was addicted to the setting of laradock + VSCode + xdebug
I tried to build the environment little by little using docker
I tried to build the environment of WSL2 + Docker + VSCode
I tried to create a padrino development environment with Docker
I was addicted to starting sbt
When I tried to scroll automatically with JScrollBar, the event handler was drawn only once.
A story I was addicted to before building a Ruby and Rails environment using Ubuntu (20.04.1 LTS)
When I tried to run Azure Kinect DK with Docker, it was blocked by EULA
[Circle CI] A story I was addicted to at Start Building
When requested access to the resource is denied when pushing with Docker
Super beginner builds Rails6 + Postgresql environment with Docker to the end
A note when I was addicted to converting Ubuntu on WSL1 to WSL2
How to install Pry after building Rails development environment with Docker
I checked because the response was strange when debugging with Tomcat 8
About the matter that I was addicted to how to use hashmap
I was addicted to the API version min23 setting of registerTorchCallback
I want to notice that I forgot to specify arg when building Docker
I was able to deploy the Docker + laravel + MySQL app to Heroku!
Technical causes and countermeasures for the points I was addicted to with the first Android app & Kotlin
I was angry with proc_open (): fork failed when trying to composer update inside a Docker container
Building Rails 6 and PostgreSQL environment with Docker
[Docker] Building an environment to use Hugo
I was addicted to rewriting to @SpringApplicationConfiguration-> @SpringBootTest
How to build Rails 6 environment with Docker
My.cnf configuration problem that I was addicted to when I was touching MySQL 8.0 like 5.7
Recorded because I was addicted to the standard input of the Scanner class
I was a little addicted to running old Ruby environment and old Rails
I tried to build a Firebase application development environment with Docker in 2020
I used Docker to solidify the template to be developed with spring boot.
I was addicted to scrollview because I couldn't tap the variable size UIView
[CircleCI] I was addicted to the automatic test of CircleCI (rails + mysql) [Memo]
I was stuck with the handling of the time zone when formatting with SimpleDateFormat
I had to lower the PHP version in Docker + Composer + Laravel environment
I tried migrating the portfolio created on Vagrant to the Docker development environment
After all I wanted to preview the contents of mysql with Docker ...
A story that I was addicted to twice with the automatic startup setting of Tomcat 8 on CentOS 8
When I tried to build an environment of PHP7.4 + Apache + MySQL with Docker, I got stuck [Windows & Mac]