-
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.
Ensured all necessary dependencies, including mysql-connector and pym…
…ysql, are listed in requirements.txt.
- Loading branch information
Showing
2 changed files
with
15 additions
and
8 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 | ||
|
||
# Create necessary directories and files | ||
RUN mkdir -p /var/log/esi-leap | ||
RUN touch /var/log/esi-leap/esi-leap-dbsync.log | ||
|
||
# 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 | ||
# Copy the remaining files of esi leap inside the container | ||
COPY run_services.sh run_services.sh | ||
|
||
# Command to run the services | ||
CMD ["bash", "./run_services.sh"] | ||
|
||
# Indicate that service listens on this port | ||
EXPOSE 7777 | ||
|
||
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