-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #157 from skanthed/missing-dependencies
Ensured all necessary dependencies, including mysql-connector and pymysql, are listed in requirements.txt.
- Loading branch information
Showing
2 changed files
with
17 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,29 @@ | ||
# This file contains the configuration for containerized esi-leap | ||
|
||
# Use python as the parent image for esi-leap | ||
FROM python:3.11 | ||
FROM docker.io/python:3.11 | ||
|
||
LABEL description="ESI-LEAP -- ESI lease policy manager" | ||
|
||
# Indicate that service listens on this port | ||
EXPOSE 7777 | ||
|
||
# The working directory for esi-leap inside the container | ||
WORKDIR /esi-leap | ||
|
||
# Copy the files of esi leap inside the container | ||
COPY run_services.sh run_services.sh | ||
# Copy the requirements file and install dependencies | ||
COPY requirements.txt requirements.txt | ||
RUN pip install -r requirements.txt | ||
|
||
RUN mkdir -p /var/log/esi-leap | ||
RUN touch /var/log/esi-leap/esi-leap-dbsync.log | ||
# Copy the entire local directory contents to the container | ||
COPY . ./ | ||
|
||
# Run command to install dependencies for esi-leap | ||
RUN apt update -y && apt install -y python3-pymysql | ||
RUN pip3 install esi-leap mysql-connector pymysql | ||
# Install the local version of esi-leap | ||
RUN pip install . | ||
|
||
# Indicate that service listens on this port | ||
EXPOSE 7777 | ||
# Create necessary directories and files | ||
RUN mkdir -p /var/log/esi-leap | ||
RUN touch /var/log/esi-leap/esi-leap-dbsync.log | ||
|
||
# Command to run the services | ||
CMD ["bash", "./run_services.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters