Skip to content

Commit 13f9bc8

Browse files
Clean up.
1 parent 154dbaa commit 13f9bc8

File tree

6 files changed

+25
-56
lines changed

6 files changed

+25
-56
lines changed

.devcontainer/Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Note: You can use any Debian/Ubuntu based image you want.
22
FROM mcr.microsoft.com/devcontainers/base:bullseye
33

4-
# [Optional] Uncomment this section to install additional OS packages.
5-
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
6-
# && apt-get -y install --no-install-recommends <your-package-list-here>
7-
84
RUN \
95
apt update && \
106
apt-get install bash-completion graphviz -y

.devcontainer/devcontainer.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"ghcr.io/guiyomh/features/vim:0": {},
1717
"ghcr.io/devcontainers/features/python:1": {
1818
"version": "3.7"
19-
},
19+
}
2020
},
2121
"postCreateCommand": "pip install flake8 black faker ipykernel nose nose-cov && pip install -e . && MYSQL_VER=5.7 MINIO_VER=RELEASE.2022-08-11T04-37-28Z docker compose -f local-docker-compose.yml up --build -d",
2222
"customizations": {
@@ -26,10 +26,4 @@
2626
]
2727
}
2828
}
29-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
30-
// "forwardPorts": [80]
31-
// Use 'postCreateCommand' to run commands after the container is created.
32-
// "postCreateCommand": "docker --version",
33-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
34-
// "remoteUser": "root"
3529
}

.devcontainer/docker-compose.yaml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,8 @@
11
version: "3"
2-
32
services:
43
app:
5-
build:
6-
context: .
7-
dockerfile: Dockerfile
8-
4+
build: .
95
volumes:
10-
# Update this to wherever you want VS Code to mount the folder of your project
116
- ../..:/workspaces:cached
12-
13-
# Overrides default command so things don't shut down after the process ends.
147
entrypoint: /usr/local/share/docker-init.sh
158
command: tail -f /dev/null
16-
# Uncomment the next four lines if you will use a ptrace-based debuggers like C++, Go, and Rust.
17-
# cap_add:
18-
# - SYS_PTRACE
19-
# security_opt:
20-
# - seccomp:unconfined
21-
22-
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
23-
# (Adding the "ports" property to this file will not forward from a Codespace.)

.github/workflows/development.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@ name: Development
22
on:
33
push:
44
branches:
5-
- '**' # every branch
6-
- '!gh-pages' # exclude gh-pages branch
7-
- '!stage*' # exclude branches beginning with stage
5+
- "**" # every branch
6+
- "!gh-pages" # exclude gh-pages branch
7+
- "!stage*" # exclude branches beginning with stage
88
tags:
99
- '\d+\.\d+\.\d+' # only semver tags
1010
pull_request:
1111
branches:
12-
- '**' # every branch
13-
- '!gh-pages' # exclude gh-pages branch
14-
- '!stage*' # exclude branches beginning with stage
12+
- "**" # every branch
13+
- "!gh-pages" # exclude gh-pages branch
14+
- "!stage*" # exclude branches beginning with stage
1515
jobs:
1616
build:
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
2020
include:
21-
- py_ver: '3.9'
21+
- py_ver: "3.9"
2222
distro: debian
2323
image: djbase
2424
env:
@@ -77,6 +77,7 @@ jobs:
7777
- name: Run primary tests
7878
env:
7979
PY_VER: ${{matrix.py_ver}}
80+
DJ_PASS: simple
8081
MYSQL_VER: ${{matrix.mysql_ver}}
8182
DISTRO: alpine
8283
MINIO_VER: RELEASE.2021-09-03T03-56-13Z
@@ -119,7 +120,7 @@ jobs:
119120
strategy:
120121
matrix:
121122
include:
122-
- py_ver: '3.9'
123+
- py_ver: "3.9"
123124
distro: debian
124125
image: djbase
125126
env:

LNX-docker-compose.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# PY_VER=3.8 MYSQL_VER=5.7 DISTRO=alpine MINIO_VER=RELEASE.2022-08-11T04-37-28Z HOST_UID=$(id -u) docker compose -f LNX-docker-compose.yml up --exit-code-from app --build
2-
version: '2.4'
2+
version: "2.4"
33
x-net: &net
44
networks:
5-
- main
5+
- main
66
services:
77
db:
88
<<: *net
99
image: datajoint/mysql:${MYSQL_VER}
1010
environment:
11-
- MYSQL_ROOT_PASSWORD=simple
11+
- MYSQL_ROOT_PASSWORD=${DJ_PASS}
1212
# ports:
1313
# - "3306:3306"
1414
# volumes:
@@ -34,12 +34,12 @@ services:
3434
<<: *net
3535
image: datajoint/nginx:v0.2.4
3636
environment:
37-
- ADD_db_TYPE=DATABASE
38-
- ADD_db_ENDPOINT=db:3306
39-
- ADD_minio_TYPE=MINIO
40-
- ADD_minio_ENDPOINT=minio:9000
41-
- ADD_minio_PORT=80 # allow unencrypted connections
42-
- ADD_minio_PREFIX=/datajoint
37+
- ADD_db_TYPE=DATABASE
38+
- ADD_db_ENDPOINT=db:3306
39+
- ADD_minio_TYPE=MINIO
40+
- ADD_minio_ENDPOINT=minio:9000
41+
- ADD_minio_PORT=80 # allow unencrypted connections
42+
- ADD_minio_PREFIX=/datajoint
4343
# ports:
4444
# - "80:80"
4545
# - "443:443"
@@ -58,7 +58,7 @@ services:
5858
environment:
5959
- DJ_HOST=fakeservices.datajoint.io
6060
- DJ_USER=root
61-
- DJ_PASS=simple
61+
- DJ_PASS
6262
- DJ_TEST_HOST=fakeservices.datajoint.io
6363
- DJ_TEST_USER=datajoint
6464
- DJ_TEST_PASSWORD=datajoint

local-docker-compose.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
# MYSQL_VER=5.7 MINIO_VER=RELEASE.2022-08-11T04-37-28Z docker compose -f local-docker-compose.yml up --build
2-
version: '2.4'
3-
x-net:
4-
&net
2+
version: "2.4"
3+
x-net: &net
54
networks:
65
- main
76
services:
87
db:
98
<<: *net
109
image: datajoint/mysql:${MYSQL_VER}
1110
environment:
12-
- MYSQL_ROOT_PASSWORD=simple
11+
- MYSQL_ROOT_PASSWORD=${DJ_PASS}
1312
# ports:
1413
# - "3306:3306"
1514
# To persist MySQL data
@@ -29,13 +28,7 @@ services:
2928
# - ./minio/config:/root/.minio
3029
command: server --address ":9000" /data
3130
healthcheck:
32-
test:
33-
[
34-
"CMD",
35-
"curl",
36-
"--fail",
37-
"http://minio:9000/minio/health/live"
38-
]
31+
test: ["CMD", "curl", "--fail", "http://minio:9000/minio/health/live"]
3932
timeout: 5s
4033
retries: 60
4134
interval: 1s

0 commit comments

Comments
 (0)