Skip to content

Abandon ldc#1098

Merged
subdavis merged 1 commit into
mainfrom
housekeeping/abandon-ldc
Jan 3, 2022
Merged

Abandon ldc#1098
subdavis merged 1 commit into
mainfrom
housekeeping/abandon-ldc

Conversation

@subdavis
Copy link
Copy Markdown
Contributor

@subdavis subdavis commented Dec 28, 2021

While I still like LDC as an idea, and I would probably prefer to use it myself, everyone who gets started using this project seems confused by it. It also protects the user from having to learn certain things about how docker-compose works, which is a drawback.

@Erotemic recently made a PR Kitware/ldc#2 that sorta forced a decision here: Keep supporting LDC as a clever 50 line shell script or just do something more familiar to Girder 4 with an override file.

I think we should abandon ldc.

In order to make the transition nice and smooth, I recommend the following shell aliases. Once these are in place, you shouldn't notice much difference from ldc

alias dc="docker-compose";
alias ldc="docker-compose";

Migration guide

The behavior of ldc up -d has been removed. ldc dev up -d becomes the default because of the override file. The thing I really liked about ldc was that it allowed you to explicitly and conveniently differentiate between "run with the code bundled at build time" and "run with code mounted at runtime". This distinction has never been as clear with vanilla docker compose, but it's probably better for users to just understand how it works than to have LDC protecting you.

# before (run with code bundled at build time)
ldc up -d
# after (sorta no longer needed)
dc -f docker-compose.yml up -d
# or, to use published pre-built images
dc pull && dc up -d

# before (run with code mounted at runtime)
ldc dev up
# after
dc up -d


# before (run a single service and mount code)
ldc dev up girder
# after
dc up -d girder

@subdavis subdavis force-pushed the housekeeping/abandon-ldc branch 2 times, most recently from 3433922 to 8efcd43 Compare December 28, 2021 22:13
@subdavis subdavis force-pushed the housekeeping/abandon-ldc branch from 8efcd43 to 58badaa Compare December 28, 2021 22:14
Copy link
Copy Markdown
Collaborator

@BryonLewis BryonLewis left a comment

Choose a reason for hiding this comment

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

pulled, built, ran integration test, ran some development testing and all seems to work well. I just need to remind myself that ./server is hotload by default all the time so if I do an up -d and start messing around I can kill the container with errors during a save.

@subdavis subdavis merged commit 4d9851d into main Jan 3, 2022
@subdavis subdavis deleted the housekeeping/abandon-ldc branch January 3, 2022 16:10
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.

2 participants