Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [rdf4j-dev] building docker images

I removed the build arg for the x86 one and the pr I have removes it from the arm one too. Instead it just uses whatever you’ve got checked out locally. So it builds whatever version maven would build. That also means it’s trivial to test stuff in docker, since you can just modify your java code, build with maven and then build the docker image. 

Håvard

On 12 Nov 2020, at 23:21, Bart Hanssens (BOSA) <bart.hanssens@xxxxxxxxxxxx> wrote:



Hi Jeen (and others),

 

 

As follow-up to GH-2374 docker 😊

 

Building the docker images is straightforward: just wait for a new release, and use the build files in assembly/src/main/dist/docker

E.g , ‘cd’ to that directory and run (don’t forget the dot at the end of the line)

 

  docker build --build-arg VERSION=3.4.4 --file Dockerfile.amd64 --tag eclipse/rdf4j-workbench:amd64-3.4.4 .

  docker build --build-arg VERSION=3.4.4 --file Dockerfile.amd64 --tag eclipse/rdf4j-workbench:amd64-latest .

 

Building the ARM-images on x86 (or vice versa) can be done after installing some additional qemu packages, e.g. for Ubuntu

 

  apt-get install qemu binfmt-support qemu-user-static    # Install the qemu packages

  docker run --rm --privileged multiarch/qemu-user-static --reset -p yes    # This step will execute the registering scripts

 

(see also https://www.stereolabs.com/docs/docker/building-arm-container-on-x86/)

After that, it’s just the same command with a different docker file

 

  docker build --build-arg VERSION=3.4.4 --file Dockerfile.arm64v8 --tag eclipse/rdf4j-workbench:arm64v8-3.4.4 .

  docker build --build-arg VERSION=3.4.4 --file Dockerfile.arm64v8 --tag eclipse/rdf4j-workbench:arm64v8-latest .

 

Pushing to hub.docker.com is a bit trickier, you’ll need to ask the Eclipse PMC to add your docker.com account to the Eclipse organization.

After that, it’s just

 

  docker login

  docker push eclipse/rdf4j-workbench:arm64v8-latest

  …

 

 

Best regards,

 

Bart Hanssens

 

_______________________________________________
rdf4j-dev mailing list
rdf4j-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/rdf4j-dev

Back to the top