Skip to content
This repository was archived by the owner on Apr 11, 2021. It is now read-only.

up.sh: warn on old version of docker-compose#69

Open
tynes wants to merge 1 commit intomasterfrom
feat/warning
Open

up.sh: warn on old version of docker-compose#69
tynes wants to merge 1 commit intomasterfrom
feat/warning

Conversation

@tynes
Copy link
Copy Markdown
Collaborator

@tynes tynes commented Feb 19, 2021

This adds a dependency on node but prints a warning if the docker-compose is too old

Copy link
Copy Markdown
Contributor

@karlfloersch karlfloersch left a comment

Choose a reason for hiding this comment

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

LGTM!

@karlfloersch
Copy link
Copy Markdown
Contributor

Oh actually how much work would it be to remove the node dependency?

Copy link
Copy Markdown
Contributor

@karlfloersch karlfloersch left a comment

Choose a reason for hiding this comment

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

Hmm

Copy link
Copy Markdown
Contributor

@karlfloersch karlfloersch left a comment

Choose a reason for hiding this comment

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

Hmm ok honestly I think it's probably worth removing node dependency but ughhh I don't want this to take a lot of time 😭

Just not great practice to introduce a node dep for something like this lol

# The `-l` flag will use mounted code.

VERSION=$(docker-compose --version)
node -e "
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

We should remove the dependency on node, this should be possible to do with sed or awk

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants