Skip to content

Commit

Permalink
sorting files
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiaBarbo committed Aug 12, 2024
1 parent 23ea2f1 commit d5c8679
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 37 deletions.
30 changes: 13 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +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

# 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

# Install additional Python dependencies
RUN pip install requests pytest responses
# Installa le dipendenze del progetto, se necessario
RUN pip install --no-cache-dir -r requirements.txt

# Keep the container running with tail
CMD ["tail", "-f", "/dev/null"]
# Comando di default: esegue lo script 'tests.sh'
CMD ["/app/tests/tests.sh"]
24 changes: 24 additions & 0 deletions hpci-yprov:mocktest/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM python:3.9-slim

# Install dependencies
RUN apt-get update && apt-get install -y \
curl \
git \
docker.io

# 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

# Install additional Python dependencies
RUN pip install requests pytest responses

# Keep the container running with tail
CMD ["tail", "-f", "/dev/null"]
20 changes: 0 additions & 20 deletions tests/Dockerfile

This file was deleted.

0 comments on commit d5c8679

Please sign in to comment.