Skip to content

Commit

Permalink
Update to 0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
seanpmorgan committed Feb 10, 2020
1 parent 9930146 commit a457368
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Run python tests
run: |
docker pull twosixarmory/tf1:0.3.1
docker pull twosixarmory/tf1:0.3.2
pip install -r requirements.txt
pip install -r test-requirements.txt
pytest -s --disable-warnings
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Armory Containers v0.3.1
# Armory Containers v0.3.2

########## Base #################

Expand Down Expand Up @@ -27,14 +27,14 @@ WORKDIR /workspace

FROM armory-base AS armory-tf1
RUN /opt/conda/bin/conda install tensorflow==1.15.0
RUN /opt/conda/bin/pip install armory-testbed==0.3.1
RUN /opt/conda/bin/pip install armory-testbed==0.3.2
CMD tail -f /dev/null

########## TF 2.1 #################

FROM armory-base AS armory-tf2
RUN /opt/conda/bin/pip install tensorflow==2.1.0
RUN /opt/conda/bin/pip install armory-testbed==0.3.1
RUN /opt/conda/bin/pip install armory-testbed==0.3.2
CMD tail -f /dev/null

########## PyTorch 1.4 #################
Expand All @@ -43,7 +43,7 @@ CMD tail -f /dev/null
FROM armory-tf1 AS armory-pytorch

RUN /opt/conda/bin/conda install pytorch==1.4 torchvision cudatoolkit=10.1 -c pytorch
RUN /opt/conda/bin/pip install armory-testbed==0.3.1
RUN /opt/conda/bin/pip install armory-testbed==0.3.2
CMD tail -f /dev/null

#####################################
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ Armory is intended to be a lightweight python package which standardizes all eva
inside a docker container. Users are encouraged to use the available images on
dockerhub:
```
docker pull twosixarmory/tf1:0.3.1
docker pull twosixarmory/tf2:0.3.1
docker pull twosixarmory/pytorch:0.3.1
docker pull twosixarmory/tf1:0.3.2
docker pull twosixarmory/tf2:0.3.2
docker pull twosixarmory/pytorch:0.3.2
```

However if there are issues downloading the images (e.g. proxy) they can be built
within this repo:
```
docker build --target armory-tf1 -t twosixarmory/tf1:0.3.1 .
docker build --target armory-tf2 -t twosixarmory/tf2:0.3.1 .
docker build --target armory-pytorch -t twosixarmory/pytorch:0.3.1 .
docker build --target armory-tf1 -t twosixarmory/tf1:0.3.2 .
docker build --target armory-tf2 -t twosixarmory/tf2:0.3.2 .
docker build --target armory-pytorch -t twosixarmory/pytorch:0.3.2 .
```

### Docker Mounts
Expand Down
2 changes: 1 addition & 1 deletion armory/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
from armory import paths

# Semantic Version
__version__ = "0.3.1"
__version__ = "0.3.2"
8 changes: 4 additions & 4 deletions armory/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ def download_all_data(command_args, prog, description):
print("Downloading all docker images....")
docker_client = docker.from_env()
docker_images = [
"twosixarmory/tf1:0.3.1",
"twosixarmory/tf2:0.3.1",
"twosixarmory/pytorch:0.3.1",
"twosixarmory/tf1:0.3.2",
"twosixarmory/tf2:0.3.2",
"twosixarmory/pytorch:0.3.2",
]
for image in docker_images:
try:
Expand All @@ -135,7 +135,7 @@ def download_all_data(command_args, prog, description):
docker_client.images.pull(image)

print("Downloading all datasets and model weights...")
manager = ManagementInstance(image_name="twosixarmory/tf1:0.3.1")
manager = ManagementInstance(image_name="twosixarmory/tf1:0.3.2")
runner = manager.start_armory_instance()
cmd = "; ".join(
[
Expand Down
2 changes: 1 addition & 1 deletion examples/backdoor_poisoning.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"wrapper_kwargs": {}
},
"sysconfig": {
"docker_image": "twosixarmory/tf1:0.3.1",
"docker_image": "twosixarmory/tf1:0.3.2",
"external_github_repo": null,
"use_gpu": false
}
Expand Down
2 changes: 1 addition & 1 deletion examples/carlini_wagner_l2_targeted.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"wrapper_kwargs": {}
},
"sysconfig": {
"docker_image": "twosixarmory/tf1:0.3.1",
"docker_image": "twosixarmory/tf1:0.3.2",
"external_github_repo": null,
"use_gpu": false
}
Expand Down
2 changes: 1 addition & 1 deletion examples/carlini_wagner_linf_targeted.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"wrapper_kwargs": {}
},
"sysconfig": {
"docker_image": "twosixarmory/tf1:0.3.1",
"docker_image": "twosixarmory/tf1:0.3.2",
"external_github_repo": null,
"use_gpu": false
}
Expand Down
2 changes: 1 addition & 1 deletion examples/fgm_attack.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}
},
"sysconfig": {
"docker_image": "twosixarmory/tf1:0.3.1",
"docker_image": "twosixarmory/tf1:0.3.2",
"external_github_repo": null,
"use_gpu": false
}
Expand Down
2 changes: 1 addition & 1 deletion examples/fgm_attack_binary_search.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
}
},
"sysconfig": {
"docker_image": "twosixarmory/tf1:0.3.1",
"docker_image": "twosixarmory/tf1:0.3.2",
"external_github_repo": null,
"use_gpu": false
}
Expand Down
2 changes: 1 addition & 1 deletion examples/transfer_attack.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"wrapper_kwargs": {}
},
"sysconfig": {
"docker_image": "twosixarmory/tf1:0.3.1",
"docker_image": "twosixarmory/tf1:0.3.2",
"external_github_repo": null,
"use_gpu": false
}
Expand Down
2 changes: 1 addition & 1 deletion examples/transform_defense.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
}
},
"sysconfig": {
"docker_image": "twosixarmory/pytorch:0.3.1",
"docker_image": "twosixarmory/pytorch:0.3.2",
"external_github_repo": null,
"use_gpu": false
}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data/missing_eval.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"wrapper_kwargs": {}
},
"sysconfig": {
"docker_image": "twosixarmory/tf1:0.3.1",
"docker_image": "twosixarmory/tf1:0.3.2",
"external_github_repo": null,
"use_gpu": false
}
Expand Down
4 changes: 2 additions & 2 deletions tests/test_docker_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

class ContainerTest(unittest.TestCase):
def test_creation(self):
manager = ManagementInstance(image_name="twosixarmory/tf1:0.3.1")
manager = ManagementInstance(image_name="twosixarmory/tf1:0.3.2")
instance = manager.start_armory_instance()
self.assertIsInstance(instance.docker_container, Container)
self.assertIn(instance.docker_container.short_id, manager.instances)

def test_deletion(self):
manager = ManagementInstance(image_name="twosixarmory/tf1:0.3.1")
manager = ManagementInstance(image_name="twosixarmory/tf1:0.3.2")
instance = manager.start_armory_instance()
manager.stop_armory_instance(instance)
self.assertEqual(manager.instances, {})

0 comments on commit a457368

Please sign in to comment.