-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simulation scenarios, TLO CLI, interaction with Azure Batch (#249)
Co-authored-by: Mosè Giordano <[email protected]> Co-authored-by: Tim Hallett <[email protected]>
- Loading branch information
1 parent
03d96f2
commit 08fc13c
Showing
24 changed files
with
1,993 additions
and
17 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 |
---|---|---|
|
@@ -109,3 +109,7 @@ venv.bak/ | |
# TLO .rst files | ||
docs/reference/tlo*.rst | ||
|
||
# TLO configuration | ||
tlo.conf | ||
|
||
|
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
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 @@ | ||
/id_ed25519 |
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.8-slim-buster | ||
|
||
# Setup SSH | ||
RUN mkdir /root/.ssh | ||
COPY id_ed25519 /root/.ssh/id_ed25519 | ||
COPY known_hosts /root/.ssh/known_hosts | ||
RUN chmod -R 0600 /root/.ssh | ||
|
||
# Install Git, Git LFS. How to silence apt-get commands: | ||
# https://peteris.rocks/blog/quiet-and-unattended-installation-with-apt-get/ | ||
RUN apt-get update -qq | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -qq -y git git-lfs < /dev/null > /dev/null | ||
# Cleanup apt cache | ||
RUN rm -rf /var/lib/apt/lists/* | ||
# Configure git lfs | ||
RUN git lfs install | ||
|
||
# Clone the TLOModel repository and move in it | ||
ARG BRANCH_NAME="master" | ||
RUN git clone --branch "${BRANCH_NAME}" [email protected]:UCL/TLOmodel.git /TLOmodel | ||
WORKDIR /TLOmodel | ||
RUN git gc --aggressive | ||
|
||
# Install dependencies | ||
RUN pip3 install -r requirements/dev.txt | ||
RUN pip3 install -e . |
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,27 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
REGISTRY_NAME="tlomodel" | ||
REGISTRY_URL="${REGISTRY_NAME}.azurecr.io" | ||
IMAGE_NAME="tlo" | ||
IMAGE_TAG="1.0" | ||
IMAGE_FULL_NAME="${IMAGE_NAME}:${IMAGE_TAG}" | ||
|
||
# Documentation at | ||
# https://docs.microsoft.com/en-us/azure/container-registry/container-registry-get-started-docker-cli. | ||
|
||
# Login to Azure Container Registry | ||
echo -n "Logging into ${REGISTRY_NAME}..." | ||
az acr login --name "${REGISTRY_NAME}" | ||
echo "done" | ||
# Build the image | ||
echo "Building docker image ${IMAGE_FULL_NAME}..." | ||
docker build --tag "${IMAGE_FULL_NAME}" . | ||
# Tag the image | ||
echo -n "Tagging ${REGISTRY_URL}/${IMAGE_FULL_NAME}..." | ||
docker tag "${IMAGE_FULL_NAME}" "${REGISTRY_URL}/${IMAGE_FULL_NAME}" | ||
echo "done" | ||
# Push the image | ||
echo "Pushing ${REGISTRY_URL}/${IMAGE_FULL_NAME}..." | ||
docker push "${REGISTRY_URL}/${IMAGE_FULL_NAME}" |
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 @@ | ||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC+bU4n6EHIFRqTI1617bR9A54WLjawxGow+X7Rvb1M6 [email protected] |
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 @@ | ||
|1|/L/ftN7pdpk7XqhXWGqqXFDK9yQ=|0IcBIB1SvDcSoXcKhpsmvWRkHDw= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ== |
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,6 +1,14 @@ | ||
# Base requirements file - common packages we use directly | ||
|
||
GitPython | ||
click | ||
numpy | ||
pandas | ||
scipy | ||
openpyxl | ||
|
||
# To submit jobs to Azure Batch | ||
azure-batch | ||
azure-identity | ||
azure-keyvault | ||
azure-storage-file-share |
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
Oops, something went wrong.