-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
004de7b
commit b0287e8
Showing
5 changed files
with
40 additions
and
42 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,26 +1,20 @@ | ||
# Usa l'immagine ufficiale di Python come base | ||
FROM python:3.9-slim | ||
|
||
# Install dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
curl \ | ||
git \ | ||
docker.io \ | ||
docker-compose | ||
|
||
# Work Directory | ||
# Imposta la directory di lavoro nel container | ||
WORKDIR /app | ||
|
||
# Clean and clone updated GitHub repo | ||
RUN rm -rf /app/* && \ | ||
git clone --branch sqa https://github.com/HPCI-Lab/yProv.git . | ||
# Installa curl | ||
RUN apt-get update && apt-get install -y curl | ||
|
||
# Copia l'intero contenuto della directory del progetto nella directory di lavoro del container | ||
COPY . . | ||
|
||
# Install requirements | ||
COPY requirements.txt /app/requirements.txt | ||
RUN pip install -r requirements.txt | ||
# Assegna i permessi di esecuzione allo script 'tests.sh' | ||
RUN chmod +x /app/tests/tests.sh | ||
|
||
# Make the script_dockerfile.sh script executable and run it | ||
COPY tests.sh /app/tests.sh | ||
RUN chmod +x /app/tests.sh | ||
# Installa le dipendenze del progetto, se necessario | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
# Default command to keep the container running | ||
CMD ["/app/tests.sh test"] | ||
# Comando di default: esegue lo script 'tests.sh' | ||
CMD ["/app/tests/tests.sh"] |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM python:3.9-slim | ||
|
||
# Install dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
curl \ | ||
git \ | ||
docker.io \ | ||
docker-compose | ||
|
||
# Work Directory | ||
WORKDIR /app | ||
|
||
# Clean and clone updated GitHub repo | ||
RUN rm -rf /app/* && \ | ||
git clone --branch sqa https://github.com/HPCI-Lab/yProv.git . | ||
|
||
# Install requirements | ||
COPY requirements.txt /app/requirements.txt | ||
RUN pip install -r requirements.txt | ||
|
||
# Make the script_dockerfile.sh script executable and run it | ||
COPY tests.sh /app/tests.sh | ||
RUN chmod +x /app/tests.sh | ||
|
||
# Default command to keep the container running | ||
CMD ["/app/tests.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,6 +90,4 @@ for i in {1..15}; do | |
sleep 10 | ||
done | ||
|
||
if [[ "$1" == "test" ]]; then | ||
python3 -m pytest -v | ||
fi | ||
python3 -m pytest -v |
This file was deleted.
Oops, something went wrong.