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

official docker image #289

Closed
stefanocudini opened this issue May 4, 2020 · 8 comments · Fixed by #294
Closed

official docker image #289

stefanocudini opened this issue May 4, 2020 · 8 comments · Fixed by #294

Comments

@stefanocudini
Copy link

stefanocudini commented May 4, 2020

hi

just exists some official docker image for running in standalone way this tool?
I have only found references to continuous integration config realtive to docker..

@danielduhh
Copy link
Collaborator

danielduhh commented May 5, 2020

Hey @stefanocudini, great idea. Using docker would help eliminate issues building the project with java11.

The Docker image requirements are...

  • java 11 (openjdk/adoptjdk)
  • gradle (we're at 6.3 now)

Here are some use cases I can see being helpful:

  • Given a specified ATLAS_CHECKS_VERSION , download the maven shaded JAR and expose as an executable.
docker run -d —name=6.1.3 org.openstreetmap.atlas.checks.distributed.ShardedIntegrityCheckSparkJob  -input -countries... etc
  • Bind your local workspace (via mount or volume) to the container and execute the atlas checks gradle commands (run, build, shaded, etc.)
docker run -d —name=6.1.3 --mount type=bind,src=/path/to/repo,dst=/app/atlas-checks gradlew run -Pchecks.local.input=/path/to/data

Are there any additional cases you'd like covered?

@stefanocudini
Copy link
Author

stefanocudini commented May 6, 2020

hi @daniel-j-h

openjdk/adoptjdk

it's a docker image?

you know a similar java project with the same/similar dependencies..?

whose exists a docker image to be used as a starting case

@danielduhh
Copy link
Collaborator

hey @stefanocudini , please review #294. I've added a Dockerfile using the jdk11 docker-gradle image.

@stefanocudini
Copy link
Author

stefanocudini commented May 11, 2020

hi @danielduhh
thank you for your support

I can try to clone your fork and try it locally

how can I do a simple test if it works after the build of the docker image?

@danielduhh
Copy link
Collaborator

After creating the docker image, you can execute the gradle run command:

docker run [image tag] run

If you want to store the outputs on your host machine:

docker run --mount type=bind,src=/path/to/host/atlas-checks,dst=/app/atlas-checks checks run

@stefanocudini

@stefanocudini
Copy link
Author

stefanocudini commented May 12, 2020

what contains /app/atlas-checks the osm data or source code of atlas-checks?

@danielduhh
Copy link
Collaborator

@stefanocudini /app/atlas-checks is the location of the source code directory on the docker container
See: https://github.com/osmlab/atlas-checks/pull/294/files#diff-3254677a7917c6c01f55212f86c57fbfR4

@danielduhh
Copy link
Collaborator

Do you mind testing my PR? #13 @stefanocudini

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

Successfully merging a pull request may close this issue.

2 participants