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

Install profile #170

Closed
wants to merge 30 commits into from
Closed

Install profile #170

wants to merge 30 commits into from

Conversation

rosiel
Copy link
Contributor

@rosiel rosiel commented Dec 13, 2021

This PR updates the demo box to be built using islandora-sandbox, which uses the islandora_install_profile_demo. Part of Islandora-Devops/isle-dc#160

@rosiel
Copy link
Contributor Author

rosiel commented Dec 13, 2021

Once sandbox (Islandora-Devops/islandora-sandbox#5) gets merged, we could update the instructions for which commit to pull down. At the very least, I'd be in favour of updating it to pull from islandora-devops not dannylamb.

Copy link
Contributor

@nigelgbanks nigelgbanks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from the password concern, everything else looks good. I'll try doing some testing tomorrow.

@nigelgbanks
Copy link
Contributor

Once sandbox (Islandora-Devops/islandora-sandbox#5) gets merged, we could update the instructions for which commit to pull down. At the very least, I'd be in favour of updating it to pull from islandora-devops not dannylamb.

You can change it right now Dannys repo just forwards to Islandora-Devops atm.

@rosiel
Copy link
Contributor Author

rosiel commented Dec 14, 2021

Changed the repos...

I'm not sure why it's printing passwords... is it just letting you know that the password for the container you just built is the thing you set it as in the file in buildkit?

@nigelgbanks
Copy link
Contributor

Tried testing this today with isle-dc though it looks like some aspect of Drush has changed?

@nigelgbanks
Copy link
Contributor

I'm not sure why it's printing passwords... is it just letting you know that the password for the container you just built is the thing you set it as in the file in buildkit?

echo goes to stdout and that all gets captured by Docker logs, I'll just remove those lines as part of testing. The user of isle-dc can change the file on disk for the password, or there could be an isle-dc command or last step that prints passwords out. It's just that it's not only isle-dc that consumes these images some people are running in ECS/Kubernetes etc and for them they wouldn't want their administrative passwords going into a log aggregator.

@nigelgbanks
Copy link
Contributor

Sorry for taking a while to get around to this @rosiel, I've raised a pull request that fixes the merge conflict with main and brings in the changes from main into this branch. Also remove the spots where passwords would be printed out.

#177

I really tried to test it with isle-dc in particular with this branch: Islandora-Devops/isle-dc#160

But it was failing and I wasn't able to sort out why. So I've not actually been able to test the changes for the install profile.

* Fix logging errors with cantaloupe due to find/replace bug (#165)

* Adding max_input_vars to php.ini (#166)

* Explain how Docker Hub factors in the workflow. (#171)

* Updated the introduction to redirect users to better starting points in case they ended up at this repo by accident. (#164)

* [issue-172] Use explicit commits in URLs such that (#176)

Code can change when pulling from a master branch, which causes checksum
checks to fail.

This can changes master to instead refer to explicit commits hashes.

The output docker images is byte for byte the same though.

* Prevent passwords from being logged.

Co-authored-by: dannylamb <[email protected]>
Co-authored-by: Rosie Le Faive <[email protected]>
@rosiel
Copy link
Contributor Author

rosiel commented Jan 6, 2022

@nigelgbanks thanks for the review! The demo/Dockerfile is still conflicting, but we want to remove all those extra commands from that Dockerfile, right?

@nigelgbanks
Copy link
Contributor

@rosiel Yup, I just merged main to get rid of them. I tested with https://github.com/Islandora-Devops/isle-dc/tree/install-profile but it doesn't seem to work with make demo.

log.txt

I also tried make demo-install-profile which finished running but the site was missing content and kinda broken.

@rosiel
Copy link
Contributor Author

rosiel commented Jan 13, 2022

missing content: yes, that's the plan for the moment because we dont' have a way of putting default content in. @Natkeeran was working on a method using Workbench.
Kinda broken: yes. That's not buildkit's fault as far as I can see.

make demo doesn't work? oh dear. I'm not sure what to do about that. @dannylamb ?

jasonhildebrand and others added 2 commits January 13, 2022 23:07
…w reuse... (#179)

* Refactor how we set/restore ownership of drupal settings file to allow reuse in containers based on this one.

* Clarify comment.

* Adjustments.
jasonhildebrand and others added 13 commits February 1, 2022 16:18
* Fix logging errors with cantaloupe due to find/replace bug (#165)

* Adding max_input_vars to php.ini (#166)

* Explain how Docker Hub factors in the workflow. (#171)

* Updated the introduction to redirect users to better starting points in case they ended up at this repo by accident. (#164)

* [issue-172] Use explicit commits in URLs such that (#176)

Code can change when pulling from a master branch, which causes checksum
checks to fail.

This can changes master to instead refer to explicit commits hashes.

The output docker images is byte for byte the same though.

* Prevent passwords from being logged.

Co-authored-by: dannylamb <[email protected]>
Co-authored-by: Rosie Le Faive <[email protected]>
@nigelgbanks
Copy link
Contributor

Just to put a note here, I'm working on automating the deployment of the sandbox and will update this with the output of that work once complete.

@misilot
Copy link
Contributor

misilot commented Mar 24, 2022

With the merge of Islandora-Devops/isle-dc#160 does this need to be merged, and a new version released?

Or would we just reference TAG 211bfffb9679221dee76562b699d7ae61cbabc86 ?

@nigelgbanks
Copy link
Contributor

nigelgbanks commented Mar 27, 2022

@misilot you can reference 211bfffb9679221dee76562b699d7ae61cbabc86 for now, once this has been confirmed to work it will be merged.

@misilot
Copy link
Contributor

misilot commented Mar 30, 2022

@rosiel any chance you could rebase this PR again? We ran into an issue with our system, so looking to test this again and stand up a new system.

@misilot
Copy link
Contributor

misilot commented Mar 30, 2022

@nigelgbanks do we need to update the TAG in isle-dc with this version? Since it is referencing the old (before rebasing) version currently

@DonRichards
Copy link
Member

DonRichards commented Mar 31, 2022

I tested the tag 211bfffb9679221dee76562b699d7ae61cbabc86 and it fails with make up, make local and make demo-install-profile. I wasn't able to find the tag within the list on Docker hub. I'm probably looking at the wrong place.

What did work for me

Switching TAG to 1.0.0-alpha-15 and DRUPAL_INSTALL_PROFILE to standard or minimal.

Is this something we can fix quickly or should we kinda revert isle-dc's sample.env defaults so that this builds properly by default?

@misilot
Copy link
Contributor

misilot commented Apr 5, 2022

I am seeing the following when trying to build with TAG=211bfffb9679221dee76562b699d7ae61cbabc86

@DonRichards I see it here https://hub.docker.com/layers/drupal/islandora/drupal/211bfffb9679221dee76562b699d7ae61cbabc86/images/sha256-66d57d2bd486d8034d07d3b2ff9fc54e74ab4c455e3fa707cf668b61dfa7ee4e?context=explore (At least I assume this is the same?)

 [error]  Config search_api.server.default_solr_server does not exist
 [error]  Config search_api.server.default_solr_server does not exist
make[1]: [Makefile:155: update-config-from-environment] Error 1 (ignored)
WARNING: Some services (activemq, alpaca, blazegraph, cantaloupe, crayfits, drupal, fcrepo, fits, homarus, houdini, hypercube, mariadb, matomo, milliner, recast, solr, traefik) use the 'deploy' key, which will be ignored. Compose does not support 'deploy' configuration - use `docker stack deploy` to deploy to a swarm.

In SolrCommandHelper.php line 119:

  Unknown server default_solr_server




ERROR: Could not generate SOLR config.zip!
In Drupal, check Configuration -> Search API -> SOLR Server, and use the
+ Get config.zip option which should give you information into the actual error.


make[1]: *** [Makefile:167: solr-cores] Error 1
make[1]: Leaving directory '/klib/app/docker-compose/isle-dc'
make: *** [Makefile:390: local-install-profile] Error 2

@nigelgbanks
Copy link
Contributor

I've rebased and raised #209 using the latest commit from the sandbox in hopes to solve the make demo issues on Islandora-Devops/isle-dc#248 to get isle-dc into a working state.

@nigelgbanks nigelgbanks deleted the install-profile branch April 19, 2022 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants