Skip to content

Commit

Permalink
Merge pull request #38 from Vastra-Gotalandsregionen/21972-bump-images
Browse files Browse the repository at this point in the history
21972 bump images
  • Loading branch information
luksi1 authored Mar 27, 2024
2 parents c6c6130 + 0f920ba commit 8ff39a1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/test_pytorch_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def test_dockerfile(self):
lines = list(map(lambda x: x.strip(), fin.readlines()))
dockerfile_text = Path(dockerfile_path).read_text()

assert lines[0] == "FROM registry.git.vgregion.se/aiplattform/images/pytorch:0.3.2"
assert lines[0] == "FROM registry.git.vgregion.se/aiplattform/images/pytorch:1.1.1"
assert lines[-2] == 'WORKDIR /workspace'
assert "ADD http://aiav2.vgregion.se/VGC%20Root%20CA%20v2.crt /tmp/vgc_root.der" in lines
assert "ADD http://aiav2.vgregion.se/VGC%20Issuing%201%20CA%20v2.crt /tmp/vgc_issuing1.der" in lines
Expand Down
2 changes: 1 addition & 1 deletion tests/test_r_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_dockerfile(self):
lines = list(map(lambda x: x.strip(), fin.readlines()))
dockerfile_text = Path(dockerfile_path).read_text()

assert lines[0] == "FROM registry.git.vgregion.se/aiplattform/images/r:0.3.0"
assert lines[0] == "FROM registry.git.vgregion.se/aiplattform/images/r:0.4.1"
assert lines[-5] == 'RUN R -e \'renv::activate()\' && R -e \'renv::restore()\''
assert lines[-3] == 'USER root'
assert lines[-2] == 'EXPOSE 8787'
Expand Down
2 changes: 1 addition & 1 deletion tests/test_tensorflow_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def test_dockerfile(self):
lines = list(map(lambda x: x.strip(), fin.readlines()))
dockerfile_text = Path(dockerfile_path).read_text()

assert lines[0] == "FROM registry.git.vgregion.se/aiplattform/images/tensorflow:0.2.1"
assert lines[0] == "FROM registry.git.vgregion.se/aiplattform/images/tensorflow:0.3.1"
assert lines[-2] == 'WORKDIR /workspace'
assert "ADD http://aiav2.vgregion.se/VGC%20Root%20CA%20v2.crt /tmp/vgc_root.der" in lines
assert "ADD http://aiav2.vgregion.se/VGC%20Issuing%201%20CA%20v2.crt /tmp/vgc_issuing1.der" in lines
Expand Down
6 changes: 3 additions & 3 deletions {{ cookiecutter.repo_name }}/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% if cookiecutter.image == 'Tensorflow' -%}FROM registry.git.vgregion.se/aiplattform/images/tensorflow:0.2.1
{% elif cookiecutter.image == 'PyTorch' -%}FROM registry.git.vgregion.se/aiplattform/images/pytorch:0.3.2
{% elif cookiecutter.image == 'R' -%}FROM registry.git.vgregion.se/aiplattform/images/r:0.3.0{%- endif %}
{% if cookiecutter.image == 'Tensorflow' -%}FROM registry.git.vgregion.se/aiplattform/images/tensorflow:0.3.1
{% elif cookiecutter.image == 'PyTorch' -%}FROM registry.git.vgregion.se/aiplattform/images/pytorch:1.1.1
{% elif cookiecutter.image == 'R' -%}FROM registry.git.vgregion.se/aiplattform/images/r:0.4.1{%- endif %}
ENV GID=1000
ENV UID=1000
{% if cookiecutter.image == 'R' %}ENV EDITOR_FOCUS_DIR="/workspace"{% endif %}
Expand Down

0 comments on commit 8ff39a1

Please sign in to comment.