Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Conversation

@UsamaSadiq
Copy link
Contributor

@UsamaSadiq UsamaSadiq commented Mar 4, 2020

Issue: BOM-1194

Description

  • Updated make.dev.nfs.up targets.
  • Updated docker-compose-host-nfs.yml and docker-compose-themes-nfs.yml files.

Changed Commands

  • Renamed dev.provision.nfs.run to dev.nfs.provision.services.
  • Added dev.nfs.provision.services.% command.
@UsamaSadiq UsamaSadiq requested review from awais786 and jmbowman March 4, 2020 11:16
@UsamaSadiq UsamaSadiq force-pushed the usamasadiq/bom-1194 branch from 203e0cc to beb8a40 Compare March 6, 2020 14:26
- edx-nfs:/edx/app/edx-themes:cached

volumes:
edx-nfs:
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure it's safe to use the same volume name as in docker-compose-host-nfs.yml with a different directory; maybe use something like themes-nfs instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay, I'll update edx-nfs to themes-nfs for safety.

Makefile Outdated

dev.nfs.up: | check-memory ## Bring up all services with host volumes
docker-compose -f docker-compose.yml -f docker-compose-host-nfs.yml up -d
docker-compose -f docker-compose.yml -f docker-compose-host-nfs.yml -f docker-compose-themes-nfs.yml up -d
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you create a new variable like DOCKER_COMPOSE_FILES_NFS to capture these (similar to the existing DOCKER_COMPOSE_FILES) so we don't need to keep copying this list in different targets?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I was also thinking the same. I'll create another variable for the nfs arguments.

Makefile Outdated

dev.nfs.provision: | check-memory dev.clone dev.provision.nfs.run stop ## Provision dev environment with all services stopped

dev.provision.nfs.run: ## Provision all services with local mounted directories
Copy link
Contributor

Choose a reason for hiding this comment

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

The original target this was copied from has since been renamed from dev.provision.run to dev.provision.services, this should be updated to match, maybe to dev.nfs.provision.services. There should also be a dev.nfs.provision.services.% equivalent for dev.provision.services.% which limits which services are provisioned.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed dev.provision.nfs.run to dev.nfs.provision.services.
Added dev.nfs.provision.services.*.

@UsamaSadiq UsamaSadiq requested a review from jmbowman March 6, 2020 15:30
Makefile Outdated

dev.nfs.up.all: | dev.nfs.up dev.nfs.up.watchers ## Bring up all services with host volumes, including watchers

dev.nfs.provision: | check-memory dev.clone dev.provision.nfs.run stop ## Provision dev environment with all services stopped
Copy link
Contributor

Choose a reason for hiding this comment

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

Need to match the rename of the target below in the dependencies here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

renamed to NFS_COMPOSE_FILES.

Copy link
Contributor

Choose a reason for hiding this comment

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

What I meant was that this line includes "dev.provision.nfs.run", but that target has been renamed to "dev.nfs.provision.services"; it needs to be renamed here also.

Makefile Outdated

STANDARD_COMPOSE_FILES=-f docker-compose.yml -f docker-compose-host.yml -f docker-compose-themes.yml

NFS_COMPOSED_FILES=-f docker-compose.yml -f docker-compose-host-nfs.yml -f docker-compose-themes-nfs.yml
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor suggestion: could this be NFS_COMPOSE_FILES instead for consistency with the other variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed to NFS_COMPOSE_FILES.

Makefile Outdated
dev.nfs.provision.services: ## Provision all services with local mounted directories
DOCKER_COMPOSE_FILES=$(NFS_COMPOSED_FILES) ./provision.sh

dev.nfs.provision.services.*: ## Provision specified services with local mounted directories, separated by plus signs
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this needs to be .%, not .*

Copy link
Contributor Author

Choose a reason for hiding this comment

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

renamed to dev.nfs.provision.services.%.

@UsamaSadiq UsamaSadiq force-pushed the usamasadiq/bom-1194 branch from 2f87659 to 11c555e Compare March 9, 2020 11:16
@UsamaSadiq UsamaSadiq requested a review from jmbowman March 9, 2020 11:16
@UsamaSadiq UsamaSadiq self-assigned this Mar 9, 2020
@UsamaSadiq UsamaSadiq force-pushed the usamasadiq/bom-1194 branch from 11c555e to f3b694e Compare March 9, 2020 14:29
@UsamaSadiq UsamaSadiq merged commit e424ac7 into master Mar 9, 2020
@UsamaSadiq UsamaSadiq deleted the usamasadiq/bom-1194 branch March 9, 2020 15:54
@thraxil thraxil mentioned this pull request Jan 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants