amundsen: Bug Report error in Dockerfile.frontend.local file build

Expected Behavior

i playing this command docker-compose -f docker-amundsen-local.yml up i want make image using local dockerfile in my host

Current Behavior

i got error

#22 1.984 Obtaining file:///app
#22 4.968     ERROR: Command errored out with exit status 1:
#22 4.968      command: /usr/local/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/app/setup.py'"'"'; __file__='"'"'/app/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exi
sts(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info
-cdo5u_mq
#22 4.968          cwd: /app/
#22 4.968     Complete output (10 lines):
#22 4.968     /bin/sh: 1: npm: not found
#22 4.968     ERROR:root:npm must be available
#22 4.968     /bin/sh: 1: npm: not found
#22 4.968     /app/setup.py:30: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead
#22 4.968       logging.warn('Installation of npm dependencies failed')
#22 4.968     WARNING:root:Installation of npm dependencies failed
#22 4.968     /app/setup.py:31: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead
#22 4.968       logging.warn(str(e))
#22 4.968     WARNING:root:Command '['npm install']' returned non-zero exit status 127.
#22 4.968     error in amundsen-frontend setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
#22 4.968     ----------------------------------------
#22 4.968 WARNING: Discarding file:///app. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
#22 4.968 ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
------
executor failed running [/bin/sh -c pip3 install -e .]: exit code: 1
ERROR: Service 'amundsenfrontend' failed to build : Build failed

Possible Solution

Steps to Reproduce

  1. git clone https://github.com/amundsen-io/amundsen.git
  2. git checkout -t main 3.docker-compose -f docker-amundsen-local.yml up

Screenshots (if appropriate)

image

Context

Your Environment

  • Amunsen version used:
  • Data warehouse stores:
  • Deployment (k8s or native):
  • Link to your fork or repository:

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (2 by maintainers)

Most upvoted comments

I was having the same issue an after many attempts I’ve found this steps works for me

  • In the Dockerfile.frontend.local file:

    1. Replace FROM node:12-slim as node-stage with FROM node:12-alpine as node-stage
    2. Remove the istruction FROM python:3.7-slim
    3. Add the install of python right after the line COPY ./frontend /app with the following directives: ENV PYTHONUNBUFFERED=1 RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python RUN python3 -m ensurepip RUN pip3 install --no-cache --upgrade pip setuptools
    4. Remove the istruction COPY --from=node-stage /app /app
  • In docker-amundsen-local.yml:

    1. Change the ports of amundsearch service 5001:5001 with 5001:5000
    2. Change the ports of amundsenmetadata service 5002:5002 with 5002:5000

It can be improved for sure and I’m going to test other configurations in the meantime but for now it seems to work (i’m trying to follow a guide to make lineage visible and finally I can see it)