Giter Club home page Giter Club logo

Comments (5)

gorbak25 avatar gorbak25 commented on July 24, 2024 1

@regner Thank you for suggesting a fix! --ignore-buildable is only needed when building the containers locally. After #120 got merged that flag is not needed when pulling the agent/ui/setup images from quay. Will make a PR today which will remove the flag when using prebuild images, otherwise it will do a docker-compose version check.

from hocus.

regner avatar regner commented on July 24, 2024

See this issue: #11

Running sudo apt install --only-upgrade docker-compose-plugin may fix your issue.

from hocus.

regner avatar regner commented on July 24, 2024

It might be a good idea for the ops/bin/local-up.sh script to check the version of Docker compose, rather than just if it is installed.

https://github.com/hocus-dev/hocus/blob/main/ops/bin/local-up.sh#L76

from hocus.

regner avatar regner commented on July 24, 2024

It appears that --ignore-buildable was added with v2.15.0, released Jan. 5th: https://github.com/docker/compose/releases/tag/v2.15.0

from hocus.

regner avatar regner commented on July 24, 2024

A possible solution:

# Check minimum version of docker compose
# We require docker compose of at least version 2.15.0 which introduced --ignore-buildable
COMPOSE_VERSION="$(docker compose version | grep -o -E '[0-9]+(\.[0-9]+){2}$')"
COMPOSE_REQUIRED_VERSION="2.15.0"
if ! [ "$(printf '%s\n' "$COMPOSE_REQUIRED_VERSION" "$COMPOSE_VERSION" | sort -V | head -n1)" = "$COMPOSE_REQUIRED_VERSION" ]; then
  # Some better explination...
  echo "Less than ${COMPOSE_REQUIRED_VERSION}"
  exit 1
fi

from hocus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.