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

Add Oracle JDK support to Docker multi-container setup. #219

Closed
nigelgbanks opened this issue May 12, 2016 · 18 comments
Closed

Add Oracle JDK support to Docker multi-container setup. #219

nigelgbanks opened this issue May 12, 2016 · 18 comments
Assignees

Comments

@nigelgbanks
Copy link
Member

Currently only Open JDK is supported, I suspect that the problems related to Oracle JDK were also the same problems Kernal problems as is noted in the read me's.

@nigelgbanks
Copy link
Member Author

Added support and tested it, everything seems to be working correctly.

Here are the pulls to fix the issue:
islandora-deprecated/claw-docker#9
islandora-deprecated/claw-docker-islandora-karaf-components#3
islandora-deprecated/claw-docker-tomcat#3
islandora-deprecated/claw-docker-solr#3
islandora-deprecated/claw-docker-maven#3
islandora-deprecated/claw-docker-karaf#3
islandora-deprecated/claw-docker-blazegraph#3
islandora-deprecated/claw-docker-fedora#3

To test you'll need to pull down all the relevant changes into your local copy of https://github.com/Islandora-CLAW/claw-docker images directories (from my repo's), and build the multi-container images using ./commands/build. Once that's done this docker-compose.yml file can be used for testing.

version: "2"
volumes:
  blazegraph:
  drupal:
  fedora:
  karaf:
  mariadb:
  solr:
services:

  # Un-comment to enable etcd as the back end for storing environment variables.

  # etcd:
  #   image: quay.io/coreos/etcd:v2.3.0
  #   command: >
  #     -listen-client-urls http://0.0.0.0:2379
  #     -advertise-client-urls http://etcd:2379
  #   ports:
  #     - "2379:2379" 

  # Registers each container as it's started in etcd, so it can be used as a
  # prefix for storing configuration settings, also for Discovery in
  # multi-network system.

  # registrator:
  #   image: gliderlabs/registrator
  #   command: "etcd://etcd:2379"
  #   volumes:
  #     - "/var/run/docker.sock:/tmp/docker.sock"
  #   links:
  #     - etcd

  mariadb:
    image: islandora/claw-mariadb
    env_file: env_files/mariadb.env
    volumes:
      - "mariadb:/var/lib/mysql"
    ports:
      - "3306:3306"

  fedora:
    image: islandora/claw-fedora:oracle-jdk
    env_file: env_files/fedora.env
    volumes:
      - "fedora:/mvn/fedora-data"
    ports:
      - "8080:8080"

  blazegraph:
    image: islandora/claw-blazegraph:oracle-jdk
    env_file: env_files/blazegraph.env
    volumes:
      - "blazegraph:/opt/blazegraph"
    ports:
      - "8081:8080"

  solr:
    image: islandora/claw-solr:oracle-jdk
    env_file: env_files/solr.env
    volumes:
      - "solr:/opt/solr/collection1/data"
    ports:
      - "8082:8080"

  karaf:
    image: islandora/claw-islandora-karaf-components:oracle-jdk
    env_file:
      - env_files/karaf.env
      - env_files/drupal.env
    volumes:
      - "karaf:/opt/karaf/data"
    ports:
      - "8181:8181"

  drupal:
    image: islandora/claw-islandora
    env_file:
      - env_files/drupal.env
      - env_files/mariadb.env
    volumes:
      -  "drupal:/var/www/localhost/htdocs/sites/default/files"
    ports:
      - "80:80"
    links:
      - "mariadb:mysql" 

@nigelgbanks
Copy link
Member Author

After these are merged we'll have to update the Docker Hub settings so everything builds right with the proper dependancies.

@ruebot ruebot added the devops label May 12, 2016
@ruebot ruebot added this to the Community Sprint - 07 milestone May 12, 2016
@ruebot
Copy link
Member

ruebot commented May 12, 2016

This is great @nigelgbanks! I'll try and get all this tested and merged in the next day or so if everything goes well.

@ruebot ruebot self-assigned this May 17, 2016
@ruebot
Copy link
Member

ruebot commented May 18, 2016

@nigelgbanks tossed some comments on the associated PRs about updating the READMEs, and with that, I think we should be good.

@ruebot ruebot added the Docker label May 19, 2016
@nigelgbanks
Copy link
Member Author

Hmm I seen a message in my email that say syncing wasn't working for you, but it's not on the issue here, is that the case?

@ruebot
Copy link
Member

ruebot commented May 20, 2016

Nope. We're all good 😄

It was a premature comment on my part. I realized that I jumped the gun in testing again, and it hadn't finished building.

Just need the README updates, and we're all good to go.

@nigelgbanks
Copy link
Member Author

README files have been updated.

@ruebot ruebot closed this as completed May 22, 2016
@ruebot
Copy link
Member

ruebot commented May 26, 2016

Missed one 😢

islandora-deprecated/claw-docker-karaf@6e25d8c

@ruebot
Copy link
Member

ruebot commented Jun 7, 2016

@nigelgbanks what are the Docker Hub settings we need to tweak?

@ruebot
Copy link
Member

ruebot commented Jun 7, 2016

Getting: Build failed: Tag open-jdk not found in repository docker.io/islandora/claw-tomcat

@ruebot ruebot reopened this Jun 7, 2016
@ruebot
Copy link
Member

ruebot commented Jun 9, 2016

@nigelgbanks bump.

@nigelgbanks
Copy link
Member Author

I've updated all the settings in docker hub, also noticed the builds failing for a few other reasons (Solr mirror dropping old version / repository shuffle).

islandora-deprecated/claw-docker-all-in-one#8
islandora-deprecated/claw-docker-solr#5
islandora-deprecated/claw-docker-islandora-karaf-components#5

The builds won't work until these are merge. Even then they need to be updated to use the new services etc, but that's a separate ticket.

@ruebot
Copy link
Member

ruebot commented Jun 16, 2016

@nigelgbanks can you share here -- explicitly -- what you updated?

@nigelgbanks
Copy link
Member Author

screen shot 2016-06-16 at 14 45 29

Just set the location of the Dockerfiles for each of the tags.

@ruebot
Copy link
Member

ruebot commented Jun 16, 2016

@nigelgbanks is that on all of the repos, a select number, or just a single one?

@nigelgbanks
Copy link
Member Author

On all repos which use either of the java images, so most of them.

@ruebot
Copy link
Member

ruebot commented Jul 18, 2016

Fully resolved with islandora-deprecated/claw-docker@b04964e

@ruebot ruebot closed this as completed Jul 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants