Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed venv statements from images #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions demos/01_license_plate/infra/Containerfile_cpu
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ FROM registry.access.redhat.com/ubi8/python-38

WORKDIR /opt/app-root/src

RUN python3 -m venv /tmp/.venv
RUN . /tmp/.venv/bin/activate && python -m pip install --upgrade pip
RUN python -m pip install --upgrade pip

RUN . /tmp/.venv/bin/activate && pip install -r https://raw.githubusercontent.com/sa-mw-dach/dev_demos/main/external/licence-plate-workshop/requirements.txt
RUN . /tmp/.venv/bin/activate && pip install requests
RUN pip install -r https://raw.githubusercontent.com/sa-mw-dach/dev_demos/main/external/licence-plate-workshop/requirements.txt
RUN pip install requests

ENTRYPOINT ["tail", "-f", "/dev/null"]
7 changes: 3 additions & 4 deletions demos/01_license_plate/infra/Containerfile_cpu_air-gapped
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ FROM registry.access.redhat.com/ubi8/python-38

WORKDIR /opt/app-root/src

RUN python3 -m venv /tmp/.venv
RUN . /tmp/.venv/bin/activate && python -m pip install --upgrade pip
RUN python -m pip install --upgrade pip

RUN git clone https://github.com/sa-mw-dach/dev_demos.git
RUN . /tmp/.venv/bin/activate && pip install -r dev_demos/external/licence-plate-workshop/requirements.txt
RUN . /tmp/.venv/bin/activate && pip install requests
RUN pip install -r dev_demos/external/licence-plate-workshop/requirements.txt
RUN pip install requests

ENTRYPOINT ["tail", "-f", "/dev/null"]
7 changes: 3 additions & 4 deletions demos/01_license_plate/infra/Containerfile_gpu
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ RUN dnf -y install git
RUN mkdir -p /opt/app-root/src
WORKDIR /opt/app-root/src

RUN python3 -m venv /tmp/.venv
RUN . /tmp/.venv/bin/activate && python -m pip install --upgrade pip
RUN python -m pip install --upgrade pip

RUN . /tmp/.venv/bin/activate && pip install -r https://raw.githubusercontent.com/sa-mw-dach/dev_demos/main/external/licence-plate-workshop/requirements.txt
RUN . /tmp/.venv/bin/activate && pip install requests
RUN pip install -r https://raw.githubusercontent.com/sa-mw-dach/dev_demos/main/external/licence-plate-workshop/requirements.txt
RUN pip install requests

ENTRYPOINT ["tail", "-f", "/dev/null"]
7 changes: 3 additions & 4 deletions demos/01_license_plate/infra/Containerfile_gpu_air-gapped
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ RUN dnf -y install git
RUN mkdir -p /opt/app-root/src
WORKDIR /opt/app-root/src

RUN python3 -m venv /tmp/.venv
RUN . /tmp/.venv/bin/activate && python -m pip install --upgrade pip
RUN python -m pip install --upgrade pip

RUN git clone https://github.com/sa-mw-dach/dev_demos.git
RUN . /tmp/.venv/bin/activate && pip install -r dev_demos/external/licence-plate-workshop/requirements.txt
RUN . /tmp/.venv/bin/activate && pip install requests
RUN pip install -r dev_demos/external/licence-plate-workshop/requirements.txt
RUN pip install requests

ENTRYPOINT ["tail", "-f", "/dev/null"]
4 changes: 2 additions & 2 deletions demos/01_license_plate/infra/workspace_ai_cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ commands:
actions:
- type: exec
component: python
command: '. /tmp/.venv/bin/activate && python demos/01_license_plate/test_ai_model.py'
command: 'python demos/01_license_plate/test_ai_model.py'
workdir: '${CHE_PROJECTS_ROOT}/dev_demos'
- name: 01_license_plate__3 Test GPU computation
actions:
- type: exec
component: python
command: '. /tmp/.venv/bin/activate && python demos/01_license_plate/test_gpu.py'
command: 'python demos/01_license_plate/test_gpu.py'
workdir: '${CHE_PROJECTS_ROOT}/dev_demos'
4 changes: 2 additions & 2 deletions demos/01_license_plate/infra/workspace_ai_cpu_air-gapped.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ commands:
actions:
- type: exec
component: python
command: '. /tmp/.venv/bin/activate && python dev_demos/demos/01_license_plate/test_ai_model.py'
command: 'python dev_demos/demos/01_license_plate/test_ai_model.py'
- name: 01_license_plate__3 Test GPU computation
actions:
- type: exec
component: python
command: '. /tmp/.venv/bin/activate && python dev_demos/demos/01_license_plate/test_gpu.py'
command: 'python dev_demos/demos/01_license_plate/test_gpu.py'
4 changes: 2 additions & 2 deletions demos/01_license_plate/infra/workspace_ai_gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ commands:
actions:
- type: exec
component: python/python
command: '. /tmp/.venv/bin/activate && python demos/01_license_plate/test_ai_model.py'
command: 'python demos/01_license_plate/test_ai_model.py'
workdir: '${CHE_PROJECTS_ROOT}/dev_demos'
- name: 01_license_plate__3 Test GPU computation
actions:
- type: exec
component: python/python
command: '. /tmp/.venv/bin/activate && python demos/01_license_plate/test_gpu.py'
command: 'python demos/01_license_plate/test_gpu.py'
workdir: '${CHE_PROJECTS_ROOT}/dev_demos'
4 changes: 2 additions & 2 deletions demos/01_license_plate/infra/workspace_ai_gpu_air-gapped.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ commands:
actions:
- type: exec
component: python/python
command: '. /tmp/.venv/bin/activate && python dev_demos/demos/01_license_plate/test_ai_model.py'
command: 'python dev_demos/demos/01_license_plate/test_ai_model.py'
- name: 01_license_plate__3 Test GPU computation
actions:
- type: exec
component: python/python
command: '. /tmp/.venv/bin/activate && python dev_demos/demos/01_license_plate/test_gpu.py'
command: 'python dev_demos/demos/01_license_plate/test_gpu.py'