mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
feat: updated dependency management
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM ubuntu:22.04
|
||||
FROM ubuntu:24.04
|
||||
|
||||
# Non-interactive mode
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Fail on error
|
||||
set -e
|
||||
|
||||
# Ensure directory mode of /tmp is world-writable (readable, writable, executable by all users)
|
||||
# This is important for temporary file operations in containerized environments
|
||||
chmod 777 /tmp
|
||||
@@ -21,4 +24,7 @@ apt-get install -y \
|
||||
nginx \
|
||||
unzip \
|
||||
gnupg2 \
|
||||
libc6
|
||||
libc6
|
||||
|
||||
# Add source /etc/profile to ~/.bashrc
|
||||
echo "source /etc/profile" >> ~/.bashrc
|
||||
@@ -1,6 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
version="3.12"
|
||||
# Fail on error
|
||||
set -e
|
||||
|
||||
# Get version from first argument
|
||||
version="${1}"
|
||||
|
||||
# Check if version is provided
|
||||
if [ -z "$version" ]; then
|
||||
echo "Please provide a version number"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Install build dependencies
|
||||
apt-get install -y \
|
||||
@@ -64,6 +74,7 @@ pip install -r /app/install/python/requirements.txt
|
||||
|
||||
# Create symbolic links
|
||||
ln -sf $(pyenv which python) /usr/local/bin/python
|
||||
ln -sf $(pyenv which python3) /usr/local/bin/python3
|
||||
ln -sf $(pyenv which pip) /usr/local/bin/pip
|
||||
|
||||
# After pip install
|
||||
|
||||
Reference in New Issue
Block a user