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

ERROR: Invalid interpolation format for "crapi-identity" option in service "services": "crapi/crapi-identity:${VERSION:-latest}" #77

Closed
re4sonzy opened this issue Jun 18, 2022 · 13 comments
Assignees
Labels
bug Something isn't working hacktoberfest

Comments

@re4sonzy
Copy link

ERROR: Invalid interpolation format for "crapi-identity" option in service "services": "crapi/crapi-identity:${VERSION:-latest}"

curl -o docker-compose.yml https://raw.githubusercontent.com/OWASP/crAPI/main/deploy/docker/docker-compose.yml

docker-compose pull

docker-compose -f docker-compose.yml --compatibility up -d
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  6013  100  6013    0     0   6919      0 --:--:-- --:--:-- --:--:--  6911
/home/hunter/.local/lib/python3.9/site-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.9) or chardet (3.0.4) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
ERROR: Invalid interpolation format for "crapi-identity" option in service "services": "crapi/crapi-identity:${VERSION:-latest}"
/home/hunter/.local/lib/python3.9/site-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.9) or chardet (3.0.4) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
ERROR: Invalid interpolation format for "crapi-identity" option in service "services": "crapi/crapi-identity:${VERSION:-latest}"
@re4sonzy re4sonzy added the bug Something isn't working label Jun 18, 2022
@piyushroshan
Copy link
Collaborator

Could you provide you os and shell info?

@piyushroshan
Copy link
Collaborator

To simply unblock you please replace the ${VERSION:-latest} with latest

@re4sonzy
Copy link
Author

Hello, my os is Parrot Sec, shell is the default MATE terminator

@csestrada
Copy link

csestrada commented Jun 28, 2022

OS: Ubuntu 5.13.0-51-generic
Shell: Standard one that comes with ubuntu, just called terminal.

Replacing the version with latest led to a port error on a similar line.

@Acheson7
Copy link

The docker compose is still having issues, it looks like another person (possibly a teacher) found a solution. the video is the following https://www.youtube.com/watch?v=ByW_yobA2aM.
Is there a way to have it not rely on Ubuntu 18 as the base operating system for docker?

@MarkMorow
Copy link

Same issue.
OS: Ubuntu 20.04.4 LTS
Shell: 5.15.0-41-generic

@piyushroshan
Copy link
Collaborator

Its a docker compose issue. It can be fixed by upgrading docker-compose to latest. As I fix I will add docker compose compatibility version.

@MarkMorow
Copy link

I was on the latest version from the package manager, 1.25.0. After removing it and pulling directly from docker I was then on v2.8.0. crAPI did then start as expected. For anyone else running into this I used the following commands.

sudo apt-get remove docker-compose

VERSION=$(curl --silent https://api.github.com/repos/docker/compose/releases/latest | grep -Po '"tag_name": "\K.*\d')

DESTINATION=/usr/local/bin/docker-compose

sudo curl -L https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-$(uname -s)-$(uname -m) -o $DESTINATION

sudo chmod 755 $DESTINATION

This was taken from https://stackoverflow.com/questions/49839028/how-to-upgrade-docker-compose-to-latest-version

@janibashamd
Copy link

Faced same issue and able to pull repo with above resolution steps.
Note: Even after above steps if docker-compose -v is not giving you output, then you have to copy docker-compose binary from /usr/local/bin /usr/bin/

@Sim4n6
Copy link

Sim4n6 commented Aug 19, 2022

The problem arises from the fact that the repository version of docker-compose is old.

@dmdhrumilmistry
Copy link

The problem arises from the fact that the repository version of docker-compose is old.

Might be, But even after upgrading to the latest version of docker referring documentation it didn't work for me on Debian 11.

@Apollo9999
Copy link
Contributor

Apollo9999 commented Oct 8, 2022

@sanket-mundra
Copy link
Contributor

Can you please assign it to me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hacktoberfest
Projects
None yet
Development

No branches or pull requests