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

Refactor some of the root files, that are there for building #223

Merged

Conversation

misilot
Copy link
Contributor

@misilot misilot commented Feb 9, 2022

Refactor docker-compose files and demo-data to a build directory

This cleans up the root directory, with files that are utilized for building isle-dc but aren't used once the system is up and running, since docker-compose.yml is generated from all the smaller config files.

Resolves #221

I can squash any of the commits / remove them. Sorry if I got a little over zealous.

@misilot misilot force-pushed the refactor-docker-compose branch from 5f187fc to bc691b6 Compare February 9, 2022 19:23
@misilot misilot changed the title Refactor docker-compose files and demo-data to a build directory Refactor some of the root files, that are there for building Feb 9, 2022
@kstapelfeldt
Copy link

@DonRichards are you available to review this?

@misilot
Copy link
Contributor Author

misilot commented Feb 9, 2022

I did notice that when enabling the custom environment

the build context for drupal gets modifed with the make -B docker-compose.yml

  drupal:
    build:
      context: /Users/tmisilo/isle-dc/build/docker-compose

when it should just be /Users/tmisilo/isle-dc or even ./

I fixed this in the latest commit with context: ../../

@DonRichards DonRichards self-requested a review February 10, 2022 15:40
@DonRichards
Copy link
Member

I'm getting a "ERR_CERT_AUTHORITY_INVALID". This is something Firefox will ignore but not chrome.

@DonRichards
Copy link
Member

I see some stuff that gives a clue to the issue. The build/docker-compose/build/certs directory is empty. The a new folder "build/docker-compose/build/traefik-tls.yml/". The file build/docker-compose/docker-compose.traefik.yml is pointing to a relative file but the "build/" parent directory was added. I think dropping this might correct the issue.

@misilot misilot force-pushed the refactor-docker-compose branch from 3fa3c3b to cda6965 Compare February 10, 2022 17:49
@misilot
Copy link
Contributor Author

misilot commented Feb 10, 2022

@DonRichards I believe I fixed this, if you want to take a look.

Thanks!

@misilot misilot force-pushed the refactor-docker-compose branch 2 times, most recently from b2d71db to 5139c63 Compare February 11, 2022 16:07
DonRichards
DonRichards previously approved these changes Feb 23, 2022
Copy link
Member

@DonRichards DonRichards left a comment

Choose a reason for hiding this comment

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

Tested this

build/docker-compose/docker-compose.traefik.yml Outdated Show resolved Hide resolved
@@ -1,15 +1,20 @@
# syntax=docker/dockerfile:experimental
ARG REPOSITORY=islandora
ARG TAG=latest
FROM ${REPOSITORY}/drupal:${TAG}
ARG TAG=ff1c469cce4227755298b7c98144b4af697363b4
Copy link
Member

Choose a reason for hiding this comment

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

Why was this specified?

Copy link
Member

Choose a reason for hiding this comment

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

OK, no need to have this hold up the merge.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think I intended for this, other than latest is not a tag that is available on the containers, so I had to specify it. I will revert that change.

@DonRichards
Copy link
Member

Because of the nature of this I'm going to wait 24 hours for feedback before I merge.

@misilot misilot force-pushed the refactor-docker-compose branch 2 times, most recently from bf6a7ed to 737d8d1 Compare February 23, 2022 20:39
@misilot
Copy link
Contributor Author

misilot commented Feb 23, 2022

I rebased to the development branch.

@misilot misilot force-pushed the refactor-docker-compose branch from 737d8d1 to c1fbbdb Compare February 23, 2022 20:45
@DonRichards
Copy link
Member

Let me test again with that rebase and those changes

@misilot misilot force-pushed the refactor-docker-compose branch 2 times, most recently from 25fbd22 to 234cc54 Compare March 11, 2022 20:15
@misilot
Copy link
Contributor Author

misilot commented Mar 11, 2022

I just rebased with the latest changes in development

@misilot misilot force-pushed the refactor-docker-compose branch from 234cc54 to a62583b Compare March 24, 2022 19:57
@misilot
Copy link
Contributor Author

misilot commented Mar 24, 2022

I just rebased everything with the latest merge :)

@misilot misilot force-pushed the refactor-docker-compose branch 2 times, most recently from b568f71 to 59c2b6a Compare April 5, 2022 16:05
@misilot misilot requested a review from DonRichards April 5, 2022 16:06
@DonRichards
Copy link
Member

@misilot I hate to ask but would you rebase again? There's been no response from others so I'll test and merge it as soon as it's rebased.

@misilot misilot force-pushed the refactor-docker-compose branch from 59c2b6a to 45a5704 Compare April 13, 2022 13:13
@misilot
Copy link
Contributor Author

misilot commented Apr 13, 2022

@DonRichards rebased :) Thanks!

@misilot
Copy link
Contributor Author

misilot commented May 4, 2022

@DonRichards just checking in, if you ran into any issues.

Thanks!
Tom

@misilot misilot force-pushed the refactor-docker-compose branch from 45a5704 to bd0183f Compare May 11, 2022 18:55
@misilot
Copy link
Contributor Author

misilot commented May 11, 2022

rebased with latest changes

@misilot misilot force-pushed the refactor-docker-compose branch from bd0183f to af14185 Compare May 17, 2022 21:43
@misilot
Copy link
Contributor Author

misilot commented May 17, 2022

Rebased with latest changes.

@misilot misilot force-pushed the refactor-docker-compose branch from af14185 to 458cabf Compare May 20, 2022 13:57
@misilot misilot force-pushed the refactor-docker-compose branch from 458cabf to cf4a553 Compare June 2, 2022 15:45
@DonRichards
Copy link
Member

@misilot I just checked this. It's introducing a new issue with generating secrets. check-secrets.sh didn't get updated with the "/build/" to the paths needed. Line #79 & #161. Also, the "find" command needs a leading "../" on line #28 example find ../secrets/template/*
Once this is pushed I'll approve it to be merged.

@DonRichards
Copy link
Member

Hoping this will help.
Screen Shot 2022-06-06 at 2 46 16 PM
Screen Shot 2022-06-06 at 2 46 05 PM

@DonRichards DonRichards dismissed their stale review June 6, 2022 18:48

Waiting on another change

@misilot misilot force-pushed the refactor-docker-compose branch 2 times, most recently from 595dd7c to 75b6a86 Compare June 6, 2022 19:37
misilot added 4 commits June 6, 2022 14:37
Fixes Islandora-Devops#221

 - Update context to the new locations in docker-compose.*.yml files
 - Move tls.yml to `build` directory and rename file to traefik-tls.yml.
   Since this file is in SCM, it isn't expected to be modified.
I couldn't get the RUN command to run on Mac OS, it kept seeing `/build`
as a directory that didn't exist.

This commit changes it to be a mutlistage build and copies the codebase
directory into the container, after all the runtime configuration is
removed as before.
`docker-compose.override.yml` is the standard file for overriding
docker-compose.yml for specific system usage.
@misilot misilot force-pushed the refactor-docker-compose branch from 75b6a86 to 46f7621 Compare June 6, 2022 19:38
@misilot
Copy link
Contributor Author

misilot commented Jun 6, 2022

@DonRichards I believe I made the requested changes. Thanks!

Copy link
Member

@DonRichards DonRichards left a comment

Choose a reason for hiding this comment

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

Tested, ready to merge

@DonRichards DonRichards merged commit 606a321 into Islandora-Devops:development Jun 7, 2022
@misilot misilot deleted the refactor-docker-compose branch June 7, 2022 15:57
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

Successfully merging this pull request may close these issues.

Refactor Idea
3 participants