Skip to content

Commit

Permalink
💚 Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
unhappychoice committed Nov 6, 2024
1 parent 9dd53be commit 3e652cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,19 @@ RUN \
# faster-fifo is not supported on Windows: https://github.com/alex-petrenko/faster-fifo/issues/17
pip3 install --no-cache-dir faster-fifo && \
if [ -z "$FEATURE_BRANCH" ] || [ "$FEATURE_BRANCH" = "null" ]; then \
pip3 install --no-cache-dir "git+https://github.com/mage-ai/mage-ai.git#egg=mage-integrations&subdirectory=mage_integrations"; \
pip3 install --no-cache-dir "git+https://github.com/orderlyjp/mage-ai.git#egg=mage-integrations&subdirectory=mage_integrations"; \
else \
pip3 install --no-cache-dir "git+https://github.com/mage-ai/mage-ai.git@$FEATURE_BRANCH#egg=mage-integrations&subdirectory=mage_integrations"; \
pip3 install --no-cache-dir "git+https://github.com/orderlyjp/mage-ai.git@$FEATURE_BRANCH#egg=mage-integrations&subdirectory=mage_integrations"; \
fi

# Mage
COPY ./mage_ai/server/constants.py /tmp/constants.py
RUN if [ -z "$FEATURE_BRANCH" ] || [ "$FEATURE_BRANCH" = "null" ] ; then \
tag=$(tail -n 1 /tmp/constants.py) && \
VERSION=$(echo "$tag" | tr -d "'") && \
pip3 install --no-cache-dir "mage-ai[all]==$VERSION"; \
pip3 install --no-cache-dir "git+https://github.com/orderlyjp/mage-ai.git#egg=mage-ai[all]"; \
else \
pip3 install --no-cache-dir "git+https://github.com/mage-ai/mage-ai.git@$FEATURE_BRANCH#egg=mage-ai[all]"; \
pip3 install --no-cache-dir "git+https://github.com/orderlyjp/mage-ai.git@$FEATURE_BRANCH#egg=mage-ai[all]"; \
fi


Expand Down
2 changes: 1 addition & 1 deletion scripts/run_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ else
elif [[ ! -z "${MANAGE_INSTANCE}" ]]; then
mage start $PROJECT_PATH --manage-instance 1
else
mage start $PROJECT_PATH --project-type $MAGE_PROJECT_TYPE "${mage_args[@]}"
mage start $PROJECT_PATH --project-type $MAGE_PROJECT_TYPE "${mage_args[@]}" --port $PORT
fi
fi

0 comments on commit 3e652cd

Please sign in to comment.