Skip to content

Commit

Permalink
dev container
Browse files Browse the repository at this point in the history
  • Loading branch information
yindaheng98 committed Dec 16, 2023
1 parent e5517db commit f5e9be4
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM python:3.9
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
WORKDIR /volume
14 changes: 14 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "dblp-crawler Dev Container",
"dockerComposeFile": "docker-compose.yml",
"service": "dblp-crawler",
"workspaceFolder": "/volume",
"shutdownAction": "stopCompose",
"extensions": [
"ms-vscode.cpptools",
"ms-vscode.cmake-tools",
"mutantdino.resourcemonitor",
"ms-azuretools.vscode-docker",
"nvidia.nsight-vscode-edition"
]
}
16 changes: 16 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: "3.8"

services:
dblp-crawler:
image: dblp-crawler:latest
build:
context: ..
dockerfile: ./.devcontainer/Dockerfile

stdin_open: true
tty: true
volumes:
- ../:/volume
working_dir: /volume
command: /bin/bash

3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
networkx==2.*
aiofile>=3.8.1
aiohttp>=3.8.1
neo4j>=5.5.0
neo4j>=5.5.0
tqdm>=4.66.1
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@
'aiofile>=3.8.1',
'aiohttp>=3.8.1',
'neo4j>=5.5.0',
'tqdm>=4.66.1',
],
)

0 comments on commit f5e9be4

Please sign in to comment.