Ryan
Ryan
RRunPod
Created by Ryan on 6/12/2024 in #⛅|pods
Pod Unable to Start Docker Container
ill come back to this thread if things change, but thanks for the help!
27 replies
RRunPod
Created by Ryan on 6/12/2024 in #⛅|pods
Pod Unable to Start Docker Container
hmmm i think runpod may actully not be the best choice, due to other circumstances on second thought
27 replies
RRunPod
Created by Ryan on 6/12/2024 in #⛅|pods
Pod Unable to Start Docker Container
its my understanding that the container start command is not requred if there's a dockerfile present?
27 replies
RRunPod
Created by Ryan on 6/12/2024 in #⛅|pods
Pod Unable to Start Docker Container
No description
27 replies
RRunPod
Created by Ryan on 6/12/2024 in #⛅|pods
Pod Unable to Start Docker Container
oh to note, this docker file is being specifed through templetes
27 replies
RRunPod
Created by Ryan on 6/12/2024 in #⛅|pods
Pod Unable to Start Docker Container
yeah ill give it a shot
27 replies
RRunPod
Created by Ryan on 6/12/2024 in #⛅|pods
Pod Unable to Start Docker Container
yep it should be
27 replies
RRunPod
Created by Ryan on 6/12/2024 in #⛅|pods
Pod Unable to Start Docker Container
i appreciate the help!
27 replies
RRunPod
Created by Ryan on 6/12/2024 in #⛅|pods
Pod Unable to Start Docker Container
# Use the official Python image from the Docker Hub
FROM python:3.9-slim

# Set the working directory in the container
WORKDIR /app

# Install required packages
RUN pip install requests pytube tqdm youtube-search-python

# Copy the rest of the working directory contents into the container at /app
COPY . .

# Define environment variables for default parameters
ENV SERVER_URL="[REDACTED]"
ENV NUM_ITERATIONS=500
ENV NUM_THREADS=30
ENV NUM_INSTANCES=5

# Function to run the main script
CMD ["sh", "-c", "\
echo Starting container... && \
SERVER_URL=${SERVER_URL:-[REDACTED]} && \
NUM_ITERATIONS=${NUM_ITERATIONS:-25} && \
NUM_THREADS=${NUM_THREADS:-30} && \
NUM_INSTANCES=${NUM_INSTANCES:-5} && \
for i in $(seq 1 $NUM_INSTANCES); do \
echo Starting instance $i... && \
python [REDACTED].py $SERVER_URL $NUM_ITERATIONS --threads $NUM_THREADS & \
done && \
wait"]
# Use the official Python image from the Docker Hub
FROM python:3.9-slim

# Set the working directory in the container
WORKDIR /app

# Install required packages
RUN pip install requests pytube tqdm youtube-search-python

# Copy the rest of the working directory contents into the container at /app
COPY . .

# Define environment variables for default parameters
ENV SERVER_URL="[REDACTED]"
ENV NUM_ITERATIONS=500
ENV NUM_THREADS=30
ENV NUM_INSTANCES=5

# Function to run the main script
CMD ["sh", "-c", "\
echo Starting container... && \
SERVER_URL=${SERVER_URL:-[REDACTED]} && \
NUM_ITERATIONS=${NUM_ITERATIONS:-25} && \
NUM_THREADS=${NUM_THREADS:-30} && \
NUM_INSTANCES=${NUM_INSTANCES:-5} && \
for i in $(seq 1 $NUM_INSTANCES); do \
echo Starting instance $i... && \
python [REDACTED].py $SERVER_URL $NUM_ITERATIONS --threads $NUM_THREADS & \
done && \
wait"]
27 replies