Skip to content

Commit 9b01eab

Browse files
meged a commit
1 parent e6663cd commit 9b01eab

File tree

5 files changed

+34
-91
lines changed

5 files changed

+34
-91
lines changed

.devcontainer/devcontainer.json

+28-16
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// The .devcontainer/docker-compose.yml file contains any overrides you need/want to make.
99
"dockerComposeFile": [
1010
"../docker-compose.yml",
11+
"../docker-compose.dev.yml",
1112
"docker-compose.yml"
1213
],
1314

@@ -17,27 +18,31 @@
1718

1819
// The optional 'workspaceFolder' property is the path VS Code should open by default when
1920
// connected. This is typically a file mount in .devcontainer/docker-compose.yml
20-
"workspaceFolder": "/app",
21+
"workspaceFolder": "/workspace",
2122

2223
// Set *default* container specific settings.json values on container create.
2324
"settings": {
24-
// "python.analysis.extraPaths": [
25-
// "${workspaceFolder}/svip_api"
26-
// ],
27-
// "python.testing.unittestArgs": [
28-
// "-v",
29-
// "-s",
30-
// "./svip_api/api/tests",
31-
// "-p",
32-
// "test*.py"
33-
// ],
34-
"python.testing.unittestEnabled": false,
25+
"remote.autoForwardPorts": false,
26+
"python.analysis.extraPaths": ["${workspaceFolder}/svip_api/api"],
27+
"editor.tabSize": 2,
28+
"editor.insertSpaces": true,
29+
"editor.formatOnSave": true,
30+
"editor.formatOnPaste": false,
31+
"eslint.validate": ["javascript"],
32+
"python.formatting.provider": "autopep8",
3533
"python.testing.pytestArgs": [
36-
"./api/tests/",
34+
"./svip_api/api/tests/",
3735
"--exitfirst",
3836
"--verbose"
3937
],
40-
"python.testing.pytestEnabled": true
38+
"python.testing.pytestEnabled": true,
39+
"python.testing.unittestEnabled": false,
40+
"[vue]": {
41+
"editor.defaultFormatter": "esbenp.prettier-vscode",
42+
"editor.codeActionsOnSave": {
43+
"source.fixAll.eslint": true
44+
}
45+
},
4146
},
4247

4348
// Add the IDs of extensions you want installed when the container is created.
@@ -49,9 +54,16 @@
4954
"editorconfig.editorconfig",
5055
"hbenl.vscode-test-explorer",
5156
"ms-vscode.test-adapter-converter",
52-
"littlefoxteam.vscode-python-test-adapter"
57+
"littlefoxteam.vscode-python-test-adapter",
58+
"ms-azuretools.vscode-docker"
5359
],
5460

61+
"features": {
62+
"github-cli": "latest",
63+
"git-lfs": "latest"
64+
// "docker": "latest"
65+
},
66+
5567
// Use 'forwardPorts' to make a list of ports inside the container available locally.
5668
// "forwardPorts": [],
5769

@@ -63,7 +75,7 @@
6375

6476
// Uncomment the next line to run commands after the container is created - for example installing curl.
6577
// "postCreateCommand": "apt-get update && apt-get install -y curl",
66-
"postCreateCommand": "pip install -r ./requirements.dev.txt"
78+
"postCreateCommand": "pip install -r ./svip_api/requirements.dev.txt"
6779

6880
// Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root.
6981
// "remoteUser": "vscode"

.devcontainer/docker-compose.yml

+4-34
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,8 @@
11
version: '3.5'
22
services:
3-
# Update this to the name of the service you want to work with in your docker-compose.yml file
43
api:
5-
# If you want add a non-root user to your Dockerfile, you can use the "remoteUser"
6-
# property in devcontainer.json to cause VS Code its sub-processes (terminals, tasks,
7-
# debugging) to execute as the user. Uncomment the next line if you want the entire
8-
# container to run as this user instead. Note that, on Linux, you may need to
9-
# ensure the UID and GID of the container user you create matches your local user.
10-
# See https://aka.ms/vscode-remote/containers/non-root for details.
11-
#
12-
# user: vscode
13-
14-
# Uncomment if you want to override the service's Dockerfile to one in the .devcontainer
15-
# folder. Note that the path of the Dockerfile and context is relative to the *primary*
16-
# docker-compose.yml file (the first in the devcontainer.json "dockerComposeFile"
17-
# array). The sample below assumes your primary file is in the root of your project.
18-
#
19-
# build:
20-
# context: .
21-
# dockerfile: .devcontainer/Dockerfile
22-
234
volumes:
24-
# Update this to wherever you want VS Code to mount the folder of your project
25-
# - .:/workspace:cached
26-
27-
# Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker-compose for details.
28-
- /var/run/docker.sock:/var/run/docker.sock
29-
30-
# Uncomment the next four lines if you will use a ptrace-based debugger like C++, Go, and Rust.
31-
# cap_add:
32-
# - SYS_PTRACE
33-
# security_opt:
34-
# - seccomp:unconfined
35-
36-
# Overrides default command so things don't shut down after the process ends.
37-
command: /bin/sh -c "while sleep 1000; do :; done"
38-
5+
- .:/workspace:cached
6+
- ${HOME}/.gitconfig:/root/.gitconfig
7+
- ${HOME}/.ssh:/root/.ssh
8+
- /var/run/docker.sock:/var/run/docker.sock

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.history
44
.venv
55
__pycache__
6+
.pytest_cache
67
/.ipynb_checkpoints
78
.vscode
89
/svip_db_backups/**/*.dump
@@ -18,12 +19,11 @@ TODO.md
1819
/scratch
1920

2021
svip_api/api/views/beacon_v2.py
21-
# docker-compose.override.yml
2222

2323
# support folder containing project organization files
2424
.0
2525
svip-o-vue/src/components/help/json/convert.py
2626

2727
svip_api/docs/site
2828

29-
/node_modules
29+
/node_modules

docker-compose.override.yml

-36
This file was deleted.

svip_db_backups/svip_api_2020-02-12.dump

-3
This file was deleted.

0 commit comments

Comments
 (0)