Code Monkey home page Code Monkey logo

hipster's People

Contributors

adityabhairavkar avatar bowenlm avatar lalit-fgr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hipster's Issues

Docker containers do not run correctly on Mac M1

Following getting docker-compose to work via workaround the containers presents three faults.

Cartservice:
Attaching to hipster-main-ad-1, hipster-main-cart-1, hipster-main-checkout-1, hipster-main-currency-1, hipster-main-email-1, hipster-main-frontend-1, hipster-main-lmotel-1, hipster-main-payment-1, hipster-main-productcatlog-1, hipster-main-recommended-1, hipster-main-shipping-1
hipster-main-cart-1 | Failed to resolve full path of the current executable [/proc/self/exe]
hipster-main-cart-1 exited with code 133

Emailservice:
2023-01-31 11:28:54 E0131 11:28:54.418165543 26 ssl_transport_security.cc:1446] Handshake failed with fatal error SSL_ERROR_SSL: error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER.

Adservice:
2023-01-31 11:50:31 Caused by: io.opentelemetry.sdk.autoconfigure.spi.ConfigurationException: OTLP endpoint must be a valid URL: "http://host.docker.internal:4318/v1/traces"
2023-01-31 11:50:31 Caused by: java.net.MalformedURLException: no protocol: "http://host.docker.internal:4318/v1/traces"

Checking the "/proc/self/exe" fault suggest a docker platform level issue hitting Mac silicon so compatibility needs to be confirmed.

As a workaround attempted forcing docker to use the linux/amd64 platform flag on cartservice which can build yet doesn't resolve the issue.

docker-compose.yml file

cart:
build: ./cartservice
platform: linux/amd64
ports:
- 80:80
extra_hosts:
- "host.docker.internal:host-gateway"

Unable to complete docker-compose build on Apple silicon Mac

Hi there.

Having come to build the Hipster shop using the docker instructions I have found the process was unable to complete. On Apple silicon / ARM64 devices - node-gyp is unable to detect Python on the existing build and fails building currency or payment services.

[4/5] RUN npm install:
#0 6.898
#0 6.898 > [email protected] install /app/node_modules/grpc
#0 6.898 > node-pre-gyp install --fallback-to-build --library=static_library
#0 6.898
#0 7.047 node-pre-gyp WARN Using request for node-pre-gyp https download
#0 7.404 node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.24.4/node-v72-linux-arm64-musl.tar.gz
#0 7.404 node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v72 ABI, musl) (falling back to source compile with node-gyp)
#0 7.554 gyp ERR! find Python
#0 7.554 gyp ERR! find Python Python is not set from command line or npm configuration
#0 7.554 gyp ERR! find Python Python is not set from environment variable PYTHON
#0 7.554 gyp ERR! find Python checking if "python" can be used
#0 7.554 gyp ERR! find Python - "python" is not in PATH or produced an error
#0 7.554 gyp ERR! find Python checking if "python2" can be used
#0 7.554 gyp ERR! find Python - "python2" is not in PATH or produced an error
#0 7.554 gyp ERR! find Python checking if "python3" can be used
#0 7.554 gyp ERR! find Python - "python3" is not in PATH or produced an error
#0 7.554 gyp ERR! find Python
#0 7.554 gyp ERR! find Python **********************************************************
#0 7.554 gyp ERR! find Python You need to install the latest version of Python.
#0 7.554 gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
#0 7.554 gyp ERR! find Python you can try one of the following options:
#0 7.555 gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
#0 7.555 gyp ERR! find Python (accepted by both node-gyp and npm)
#0 7.555 gyp ERR! find Python - Set the environment variable PYTHON
#0 7.555 gyp ERR! find Python - Set the npm configuration variable python:
#0 7.555 gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
#0 7.555 gyp ERR! find Python For more information consult the documentation at:
#0 7.555 gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
#0 7.555 gyp ERR! find Python **********************************************************
#0 7.555 gyp ERR! find Python
#0 7.555 gyp ERR! configure error
#0 7.555 gyp ERR! stack Error: Could not find any Python installation to use

No local install/path changes could impact this.

I so far have found a workaround and can now successfully run docker-compose build after updating the dockerfile in each impacted service. Adding a line before NPM install:
Dockerfile.txt

RUN apk add --update --no-cache python3 build-base gcc && ln -sf /usr/bin/python3 /usr/bin/python

(see attached example dockerfile.txt from checkoutservice)

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.