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

Create devcontainer.json #95

Merged
merged 7 commits into from
Nov 20, 2023
Merged
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
5 changes: 5 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"build": {
"dockerfile": "../Dockerfile"
}
}
13 changes: 9 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Docker image for HIV-TRACE
FROM ubuntu:20.04
# Docker image for an HIV-TRACE development environment
FROM oraclelinux:8

# Set up environment and install dependencies
RUN apt-get update && apt-get -y upgrade && \
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y cmake gcc g++ git libcurl4-openssl-dev libssl-dev make python3 python3-pip wget && \
RUN yum -y update && \
yum install -y bzip2-devel cmake gcc gcc-c++ gcc-toolset-10 git libcurl-devel make openssl-devel oracle-epel-release-el8 python3.11 python3.11-devel python3.11-pip wget xz-devel && \
echo 'source /opt/rh/gcc-toolset-10/enable' > ~/.bashrc && \
source ~/.bashrc && \

# Update pip and use it to install Python packages
python3 -m pip install --upgrade pip && \
Expand All @@ -19,3 +21,6 @@ RUN apt-get update && apt-get -y upgrade && \

# Clean up
rm -rf ~/.cache /tmp/* ~/.wget-hsts

# To compile HIV-TRACE within the development environment:
# python3 setup.py develop